Re: [iText-questions] Can I use iTextSharp for commercial purpose?
Version 2 you can use without payment (standard library open source license). For version 5 you need to pay iText. thanks - dave From: Chandramouli P [mouli...@gmail.com] Sent: Monday, May 07, 2012 8:07 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Can I use iTextSharp for commercial purpose? Hi, I am developing one application and planning to release commercially and found that iTextSharp will fulfill my needs to complete my application. Can I use iTextSharp for commercial purpose? I found that iTextSharp is released under Affero GNU Public License. I have gone through the documentation about this license and didn't find the answer for my question. Thanks in advance. Regards, Mouli -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Looking for an iText expert we can hire for a day
To do a code review of our iText code? What's driving this is I think we are not handling fonts perfectly. But I would like to walk through the entire set of code (~ 3,000 lines) where we explain to you what we're doing and you then tell us what we have wrong and how to do it right. I think we can do it using GoToMeeting so no need to fly out or anything. Are you available? Note - we use iText 2.0. ??? - thanks - dave David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windward.nethttp://www.windward.net World's coolest blog - Windward Wrocks!http://blogs.windward.net/davidt Follow me on Twitter - David At Windwardhttp://twitter.com/DavidAtWindward Proud sponsors of the International Collegiate Programming Championshipshttp://www.windward.net/Windward_International_Collegiate_Programming_Championships.php -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Hyphenator kills numbers
That may be correct behavior. After all, what is the proper hyphenation for a word like someone123? From: Balder VC [li...@redlab.be] Sent: Sunday, November 27, 2011 2:19 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Hyphenator kills numbers I took a look at the Hyphenators source code, I think it's not build to handle numbers at all. So it's not a bug, it's a feature or rather an abscent feature. You could write a wrapper for it that checks for numbers strip them off and paste them onto the last part. On 25/11/2011 15:42, Martin Reichl wrote: Dear iText Team, we tried your library and are very happy with the Hyphenator class. But we found out that words ending with numbers are causing the hyphenator to silently 'kill' the trailing numbers. Is this a bug? com.itextpdf.text.pdf.hyphenation.Hyphenator hyphenator = new com.itextpdf.text.pdf.hyphenation.Hyphenator(language,country,2,2); Hyphenation hyphenized = hyphenator.hyphenate(testword2); We tested the following inputs resulting in the following outputs ( .toString() method) Beratungsmappe2 -- Be-ra-tungs-map-pe Bedienungsanleitungen800 -- Be-die-nungs-an-lei-tun-gen Konverter255 -- Kon-ver-ter Parabelverzerrung -- Pa-ra-bel-ver-zer-rung Kind regards Martin Reichl Regards Balder -- twitterhttp://twitter.com/redlabbe redlab-loghttp://www.redlab.be/blog/ -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Is it a good thing to always set a color profile?
Or should it only be done if creating a PDF/A file? Thanks - dave David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windward.nethttp://www.windward.net World's coolest blog - Windward Wrocks!http://blogs.windward.net/davidt Follow me on Twitter - David At Windwardhttp://twitter.com/DavidAtWindward Check out The Programming Olympicshttp://www.huffingtonpost.com/david-thielen/the-programming-olympics_b_972273.html -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Is it a good thing to always set a color profile?
For my question PDF/A - thank you. From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, November 23, 2011 9:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Is it a good thing to always set a color profile? If you mean as an OutputIntent - then only when doing PDF/A and PDF/X. If you mean as the source profile for untagged color - if the profile is non-standard, then use it! Leonard From: David Thielen [da...@windward.net] Sent: Wednesday, November 23, 2011 11:38 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Is it a good thing to always set a color profile? Or should it only be done if creating a PDF/A file? Thanks - dave David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windward.nethttp://www.windward.net World's coolest blog - Windward Wrocks!http://blogs.windward.net/davidt Follow me on Twitter - David At Windwardhttp://twitter.com/DavidAtWindward Check out The Programming Olympicshttp://www.huffingtonpost.com/david-thielen/the-programming-olympics_b_972273.html -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] What is required to make a file PDF/A?
Thank you - this is getting me a lot further. Now I'm getting an exception saying that the RGB colorspace is not allowed. It looks like we have to convert to CMYK for the colorspace. So question, is it better to always use CMYK or should we stick with RGB and only use CMYK if we need PDF/A output? Thanks - dave -Original Message- From: TvT [mailto:tvtre...@nepatec.de] Sent: Monday, November 21, 2011 3:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? Hi, here's an example: http://itextpdf.com/examples/iia.php?id=226 And you are right, the method to use is called 'setPDFXConformance': (Probably historical reasons?) writer.setPDFXConformance(PdfWriter.PDFX1A2001); You should better upgrade to the latest version. If you can't do that try to use at least 2.1.7. I checked the history of iText since 2.1.7 and didn't find (major) changes in the PDF/A area. But maybe i overlooked it. Best you check for yourself again: http://itextpdf.com/history/ Also try to run your code in the current version and verify the output... 2011/11/18 David Thielen da...@windward.net The javadoc for 5.1.3 is the same - just setPDFXConformance(). I think that is how it's set. But maybe version 2 didn't fully implement it. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 11:08 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? Then I am guessing whatever version of iText you are using is too old :(. From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 09:48:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I understand that. However PdfWriter only has setPDFXConformance(), no setConformance() or setPDFAConformance(). And the documentation for setPDFXConformance says: Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document. I'm clearly missing something but going through the javadoc I can't find anything else that discusses PDF/A. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 9:49 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? PDFAConformance. PDF/X is a completely separate standard! From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 08:12:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: · Author mismatch between Document Info and XMP Metadata · Creation date mismatch between Document Info and XMP Metadata · Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) · Last Modification Date mismatch between Document Info and XMP Metadata · Metadata missing (XMP) · PDF/A entry missing · Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet. Leonard From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: · Convert to PDF/A-1a (sRGB) · Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: · Author mismatch between Document Info and XMP Metadata · CIDset in subset font missing (238 matches on 4 pages) · Creation date
Re: [iText-questions] What is required to make a file PDF/A?
I just want to add thank you - have it all working great now. Thanks - dave -Original Message- From: TvT [mailto:tvtre...@nepatec.de] Sent: Monday, November 21, 2011 3:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? Hi, here's an example: http://itextpdf.com/examples/iia.php?id=226 And you are right, the method to use is called 'setPDFXConformance': (Probably historical reasons?) writer.setPDFXConformance(PdfWriter.PDFX1A2001); You should better upgrade to the latest version. If you can't do that try to use at least 2.1.7. I checked the history of iText since 2.1.7 and didn't find (major) changes in the PDF/A area. But maybe i overlooked it. Best you check for yourself again: http://itextpdf.com/history/ Also try to run your code in the current version and verify the output... 2011/11/18 David Thielen da...@windward.net The javadoc for 5.1.3 is the same - just setPDFXConformance(). I think that is how it's set. But maybe version 2 didn't fully implement it. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 11:08 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? Then I am guessing whatever version of iText you are using is too old :(. From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 09:48:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I understand that. However PdfWriter only has setPDFXConformance(), no setConformance() or setPDFAConformance(). And the documentation for setPDFXConformance says: Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document. I'm clearly missing something but going through the javadoc I can't find anything else that discusses PDF/A. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 9:49 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? PDFAConformance. PDF/X is a completely separate standard! From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 08:12:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: · Author mismatch between Document Info and XMP Metadata · Creation date mismatch between Document Info and XMP Metadata · Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) · Last Modification Date mismatch between Document Info and XMP Metadata · Metadata missing (XMP) · PDF/A entry missing · Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet. Leonard From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: · Convert to PDF/A-1a (sRGB) · Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: · Author mismatch between Document Info and XMP Metadata · CIDset in subset font missing (238 matches on 4 pages) · Creation date mismatch between Document Info and XMP Metadata · Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) · Last Modification Date mismatch between Document Info and XMP Metadata · MarkInfo
Re: [iText-questions] What is required to make a file PDF/A?
Ok - thanks. Got it working with RGB so I'll stick with that. -Original Message- From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Monday, November 21, 2011 12:10 PM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? Depends on what ICC profile you specify for the output intent. If you use a CMYK profile, then you can't use RGB data. If you use an RGB profile, then you can't have CMYK data. Your choice. Leonard On 11/21/11 11:02 AM, David Thielen da...@windward.net wrote: Thank you - this is getting me a lot further. Now I'm getting an exception saying that the RGB colorspace is not allowed. It looks like we have to convert to CMYK for the colorspace. So question, is it better to always use CMYK or should we stick with RGB and only use CMYK if we need PDF/A output? Thanks - dave -Original Message- From: TvT [mailto:tvtre...@nepatec.de] Sent: Monday, November 21, 2011 3:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? Hi, here's an example: http://itextpdf.com/examples/iia.php?id=226 And you are right, the method to use is called 'setPDFXConformance': (Probably historical reasons?) writer.setPDFXConformance(PdfWriter.PDFX1A2001); You should better upgrade to the latest version. If you can't do that try to use at least 2.1.7. I checked the history of iText since 2.1.7 and didn't find (major) changes in the PDF/A area. But maybe i overlooked it. Best you check for yourself again: http://itextpdf.com/history/ Also try to run your code in the current version and verify the output... 2011/11/18 David Thielen da...@windward.net The javadoc for 5.1.3 is the same - just setPDFXConformance(). I think that is how it's set. But maybe version 2 didn't fully implement it. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 11:08 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? Then I am guessing whatever version of iText you are using is too old :(. From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 09:48:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I understand that. However PdfWriter only has setPDFXConformance(), no setConformance() or setPDFAConformance(). And the documentation for setPDFXConformance says: Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document. I'm clearly missing something but going through the javadoc I can't find anything else that discusses PDF/A. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 9:49 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? PDFAConformance. PDF/X is a completely separate standard! From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 08:12:16 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: * Author mismatch between Document Info and XMP Metadata * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet. Leonard From: David Thielen da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.net
Re: [iText-questions] What is required to make a file PDF/A?
I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: * Author mismatch between Document Info and XMP Metadata * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet... Leonard From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: * Convert to PDF/A-1a (sRGB) * Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: * Author mismatch between Document Info and XMP Metadata * CIDset in subset font missing (238 matches on 4 pages) * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * MarkInfo missing * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata * Structured PDF: Structure tree root entry missing The biggies seem to be the CIDset for the fonts and colors stored correctly. I'm guessing this is not a simple couple of hours to add in. Is there a setting in iText to set these values or does this require a 3rd party app? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 8:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? no external referencing Careful with that phrase as it's led to misunderstanding by non-technical people. What you really mean to say is no externally referenced resources/assets. Leonard From: TvT [mailto:tvtre...@nepatec.de] Sent: Thursday, November 17, 2011 7:12 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? 1. That depends which PDF/A you mean: PDF/A-1a or PDF/A-1b or PDF/A-2? 2. Even if you take the simplest PDF/A-1b there is lots of stuff to consider. Best you read the PDF/A spec. (ISO 19005-1:2005 or ISO 19005-2:2011) No javascript, no external referencing, colors etc etc. 3. What probably acrobat is looking at is the PDF/A tag in the meta information. Probably if you set that one acrobat will say its PDF/A. A better check is the PDF/A preflight check acrobat professional is offering. It shows you which part of the spec you are missing. If all tests pass then you probably have a 95% compliant PDF/A document. Regards, ToM 2011/11/17 David Thielen da...@windward.netmailto:da...@windward.net I thought it was just embedding fonts but when we do that Acrobat says it is not PDF/A. thanks - dave -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ iText-questions mailing list iText-questions@lists.sourceforge.netmailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can
Re: [iText-questions] What is required to make a file PDF/A?
I understand that. However PdfWriter only has setPDFXConformance(), no setConformance() or setPDFAConformance(). And the documentation for setPDFXConformance says: Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document. I'm clearly missing something but going through the javadoc I can't find anything else that discusses PDF/A. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 9:49 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? PDFAConformance. PDF/X is a completely separate standard! From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 08:12:16 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: * Author mismatch between Document Info and XMP Metadata * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet... Leonard From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: * Convert to PDF/A-1a (sRGB) * Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: * Author mismatch between Document Info and XMP Metadata * CIDset in subset font missing (238 matches on 4 pages) * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * MarkInfo missing * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata * Structured PDF: Structure tree root entry missing The biggies seem to be the CIDset for the fonts and colors stored correctly. I'm guessing this is not a simple couple of hours to add in. Is there a setting in iText to set these values or does this require a 3rd party app? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 8:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? no external referencing Careful with that phrase as it's led to misunderstanding by non-technical people. What you really mean to say is no externally referenced resources/assets. Leonard From: TvT [mailto:tvtre...@nepatec.de] Sent: Thursday, November 17, 2011 7:12 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? 1. That depends which PDF/A you mean: PDF/A-1a or PDF/A-1b or PDF/A-2? 2. Even if you take the simplest PDF/A-1b there is lots of stuff to consider. Best you read the PDF/A spec. (ISO 19005-1:2005 or ISO 19005-2:2011) No javascript, no external referencing, colors etc etc. 3. What probably acrobat is looking at is the PDF/A tag in the meta information. Probably if you set that one acrobat will say its PDF/A. A better check is the PDF
Re: [iText-questions] What is required to make a file PDF/A?
The javadoc for 5.1.3 is the same - just setPDFXConformance(). I think that is how it's set. But maybe version 2 didn't fully implement it. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 11:08 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? Then I am guessing whatever version of iText you are using is too old :(. From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 09:48:16 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I understand that. However PdfWriter only has setPDFXConformance(), no setConformance() or setPDFAConformance(). And the documentation for setPDFXConformance says: Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document. I'm clearly missing something but going through the javadoc I can't find anything else that discusses PDF/A. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Friday, November 18, 2011 9:49 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? PDFAConformance. PDF/X is a completely separate standard! From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 18 Nov 2011 08:12:16 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I set it using PdfWriter. setPDFXConformance(PdfWriter.PDFA1B); It's a lot closer now but I still get: * Author mismatch between Document Info and XMP Metadata * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata Are these expected? Or do I need to set something else also? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet... Leonard From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: * Convert to PDF/A-1a (sRGB) * Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: * Author mismatch between Document Info and XMP Metadata * CIDset in subset font missing (238 matches on 4 pages) * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * MarkInfo missing * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata * Structured PDF: Structure tree root entry missing The biggies seem to be the CIDset for the fonts and colors stored correctly. I'm guessing this is not a simple couple of hours to add in. Is there a setting in iText to set these values or does this require a 3rd party app? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 8:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? no external referencing Careful with that phrase as it's
[iText-questions] What is required to make a file PDF/A?
I thought it was just embedding fonts but when we do that Acrobat says it is not PDF/A. thanks - dave -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] What is required to make a file PDF/A?
I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: * Convert to PDF/A-1a (sRGB) * Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: * Author mismatch between Document Info and XMP Metadata * CIDset in subset font missing (238 matches on 4 pages) * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * MarkInfo missing * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata * Structured PDF: Structure tree root entry missing The biggies seem to be the CIDset for the fonts and colors stored correctly. I'm guessing this is not a simple couple of hours to add in. Is there a setting in iText to set these values or does this require a 3rd party app? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 8:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? no external referencing Careful with that phrase as it's led to misunderstanding by non-technical people. What you really mean to say is no externally referenced resources/assets. Leonard From: TvT [mailto:tvtre...@nepatec.de] Sent: Thursday, November 17, 2011 7:12 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? 1. That depends which PDF/A you mean: PDF/A-1a or PDF/A-1b or PDF/A-2? 2. Even if you take the simplest PDF/A-1b there is lots of stuff to consider. Best you read the PDF/A spec. (ISO 19005-1:2005 or ISO 19005-2:2011) No javascript, no external referencing, colors etc etc. 3. What probably acrobat is looking at is the PDF/A tag in the meta information. Probably if you set that one acrobat will say its PDF/A. A better check is the PDF/A preflight check acrobat professional is offering. It shows you which part of the spec you are missing. If all tests pass then you probably have a 95% compliant PDF/A document. Regards, ToM 2011/11/17 David Thielen da...@windward.netmailto:da...@windward.net I thought it was just embedding fonts but when we do that Acrobat says it is not PDF/A. thanks - dave -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ iText-questions mailing list iText-questions@lists.sourceforge.netmailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] What is required to make a file PDF/A?
Hi; Is setConformance() in iText 5 only? We're on iText 2 and I can't find it anywhere. We do use iText to create the PDF so we should be ok on that part. Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 9:20 AM To: Post here Subject: Re: [iText-questions] What is required to make a file PDF/A? If you are creating the PDF ENTIRELY with iText - then you can just use the setConformance() API and it will take care of the details for you. If you are starting with an existing PDF - then there aren't any options for iText at this time. But that will ONLY get you PDF/A-1b. PDF/A-1a requires that you properly structure tag your content - something that iText will not (currently) do for you. So you will need to do all that work yourself if you want full conformance. And then there's PDF/A-2, which iText doesn't currently support either - but most folks aren't there just yet... Leonard From: David Thielen da...@windward.netmailto:da...@windward.net Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Thu, 17 Nov 2011 08:12:38 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What is required to make a file PDF/A? I didn't know about pre-flight, that's cool. Ok, ran my iText generated document through it and got the following: * Convert to PDF/A-1a (sRGB) * Convert to PDF/A-1b (sRGB) I then double clicked on Verify compliance with PDF/A-1a and got a lot: * Author mismatch between Document Info and XMP Metadata * CIDset in subset font missing (238 matches on 4 pages) * Creation date mismatch between Document Info and XMP Metadata * Device process color used but no PDF/A OutputIntent (253 matches on 4 pages) * Last Modification Date mismatch between Document Info and XMP Metadata * MarkInfo missing * Metadata missing (XMP) * PDF/A entry missing * Producer mismatch between Document Info and XMP Metadata * Structured PDF: Structure tree root entry missing The biggies seem to be the CIDset for the fonts and colors stored correctly. I'm guessing this is not a simple couple of hours to add in. Is there a setting in iText to set these values or does this require a 3rd party app? Thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thursday, November 17, 2011 8:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? no external referencing Careful with that phrase as it's led to misunderstanding by non-technical people. What you really mean to say is no externally referenced resources/assets. Leonard From: TvT [mailto:tvtre...@nepatec.de] Sent: Thursday, November 17, 2011 7:12 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What is required to make a file PDF/A? 1. That depends which PDF/A you mean: PDF/A-1a or PDF/A-1b or PDF/A-2? 2. Even if you take the simplest PDF/A-1b there is lots of stuff to consider. Best you read the PDF/A spec. (ISO 19005-1:2005 or ISO 19005-2:2011) No javascript, no external referencing, colors etc etc. 3. What probably acrobat is looking at is the PDF/A tag in the meta information. Probably if you set that one acrobat will say its PDF/A. A better check is the PDF/A preflight check acrobat professional is offering. It shows you which part of the spec you are missing. If all tests pass then you probably have a 95% compliant PDF/A document. Regards, ToM 2011/11/17 David Thielen da...@windward.netmailto:da...@windward.net I thought it was just embedding fonts but when we do that Acrobat says it is not PDF/A. thanks - dave -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ iText-questions mailing list iText-questions@lists.sourceforge.netmailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes
[iText-questions] Determining Java font mapping
Hi all; This is not an iText question but it's Java fonts and so I figure someone here is likely to know the answer. When I request a font under Java, if that font does not exist, I need to determine what font it maps to (so I can log the mapping in use). Under Java 1.6 I could use: Font logicalFont = new java.awt.Font(fontname, java.awt.Font.PLAIN, 12); for (int i = 0; i FontManager.getRegisteredFonts().length; i++) { Font2D font2D = FontManager.getRegisteredFonts()[i]; if (font2D instanceof CompositeFont font2D.getFontName(Locale.getDefault()).equals(logicalFont.getFontName())) { PhysicalFont physicalFont = ((CompositeFont) font2D).getSlotFont(0); log.warn(The requested font ' + fontname + ' does not exist on this system. Substituting the font ' + physicalFont.getFamilyName(Locale.getDefault()) + '); return; } } But in Java 1.7 FontManager has no getRegisteredFonts() static member (I think it's actually an interface now). So how can I get the mapping? thanks - dave -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Two small issues in iTextSharp only
Version 4.1.6.0 Item 1: The code below creates a bad PDF unless the add paragraph is uncommented. static void Main(string[] args) { Document document = new Document(new Rectangle(0, 0, 8.5f * 72.0f, 11 * 72)); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(test_dotnet.pdf, FileMode.OpenOrCreate, FileAccess.ReadWrite)); document.Open(); document.Add(new Paragraph(JPG test)); Image img = Image.GetInstance(c:\\test\\AmPro_logo_bw_HR.jpg); img.SetAbsolutePosition(72, 72 * 5); writer.DirectContent.AddImage(img); document.Close(); Console.Out.WriteLine(all done); } Item 2: Image.GetInstance(AmPro_logo_bw_HR.jpg) looks in c:\ instead of the default directory. Java version is fine on both issues. - dave David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ World's coolest blog - Windward Wrocks!http://blogs.windwardreports.com/davidt/ Follow me on Twitter - David At Windwardhttp://twitter.com/DavidAtWindward -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] [SPAM] How to convert Ms office documents to PDF
iTextSharp cannot do this. However, www.WindwardReports.comhttp://www.WindwardReports.com will do exactly what you want - it converts full formatting (and uses iTextSharp). Thanks - dave David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ World's coolest blog - Windward Wrocks!http://blogs.windwardreports.com/davidt/ Follow me on Twitter - David At Windwardhttp://twitter.com/DavidAtWindward From: Balajiprasad [mailto:balajipra...@maxval-soft.com] Sent: Thursday, June 16, 2011 3:00 AM To: i...@1t3xt.info; 'Post all your questions about iText here' Subject: [SPAM] [iText-questions] How to convert Ms office documents to PDF Hi, How to convert MS office Documents (Word/Excel/PP etc) to PDF. Need to convert Entire document including objects with colors. Is there any way to do with iTextsharp??. Regards, R.Balajiprasad -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] PDF - PNG
Hi all; Is there a way to generate a bitmap of each PDF page? thanks - dave -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Arabic slightly off
Hi; I am generating Arabic using ColumnText.setSimpleColumn(...). It is working fine about 99% of the time. But as shown in the attached, it is not seperating 2 glyphs on one word. The text for that line is passed in as a single chunk and the phrase passed in is just that single text chunk. setArabicOptions(0), setRunDirection(PdfWriter.RUN_DIRECTION_RTL). The correct render is as shown on the right and is how that text is displayed in Word and in IntelliJ. What's also weird is copy/paste between Word and Acrobat gets the text really screwed up. Any idea why it might not be displaying this wrong? Do I need to add somethign to Acrobat to properly handle Arabic? thanks - dave attachment: Arabic.png arabic_test.pdf Description: arabic_test.pdf -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Arabic slightly off
Ok - thanks. From: Paulo Soares [psoa...@glintt.com] Sent: Sunday, April 03, 2011 3:45 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Arabic slightly off Word provides the glyphs in GSUB that may not be the same as the ones described in the CMAP (that's what iText uses). I tried with a couple more arabic fonts and they all did ok. It looks that the problem is really with the simplified arabic font. Paulo - Original Message - From: David Thielenmailto:da...@windward.net To: Post all your questions about iText heremailto:itext-questions@lists.sourceforge.net Sent: Sunday, April 03, 2011 10:14 PM Subject: Re: [iText-questions] Arabic slightly off Hi; When I have Word print to Adobe PDF (using Acrobat), then it does look correct and is using the Simplified Arabic. Is it possible that Word tells Acrobat to use the OTF tables also when it creates the file? (The attached is generated from Word.) thanks - dave From: Paulo Soares [psoa...@glintt.com] Sent: Sunday, April 03, 2011 2:10 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Arabic slightly off Looks like a bug with the Simplified Arabic font as it works correctly with Arial Unicode. It may work in Word because Word uses the OTF tables and iText doesn't and it will all depend on what's in the GSUB table. Paulo - Original Message - From: David Thielenmailto:da...@windward.net To: Post all your questions about iText heremailto:itext-questions@lists.sourceforge.net Sent: Sunday, April 03, 2011 8:33 PM Subject: Re: [iText-questions] Arabic slightly off Hi Paulo; Here you go, thank you for looking at it. The problem appears to be how it's rendering two of the glyphs, or how it's treating their being adjacent. I also included the word document which displays them correctly according to the person in the AUE who flagged this as wrong (I do not know Arabic). thanks - dave From: Paulo Soares [psoa...@glintt.com] Sent: Sunday, April 03, 2011 1:09 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Arabic slightly off I need the code to generate the pdf and a word doc with the same words. Paulo - Original Message - From: David Thielenmailto:da...@windward.net To: itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Sent: Sunday, April 03, 2011 5:53 PM Subject: [iText-questions] Arabic slightly off Hi; I am generating Arabic using ColumnText.setSimpleColumn(...). It is working fine about 99% of the time. But as shown in the attached, it is not seperating 2 glyphs on one word. The text for that line is passed in as a single chunk and the phrase passed in is just that single text chunk. setArabicOptions(0), setRunDirection(PdfWriter.RUN_DIRECTION_RTL). The correct render is as shown on the right and is how that text is displayed in Word and in IntelliJ. What's also weird is copy/paste between Word and Acrobat gets the text really screwed up. Any idea why it might not be displaying this wrong? Do I need to add somethign to Acrobat to properly handle Arabic? thanks - dave -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] How to display Arabic
That was it – thank you David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ World's coolest blog - Windward Wrocks!http://blogs.windwardreports.com/davidt/ From: Mark Storer [mailto:msto...@autonomy.com] Sent: Wednesday, March 23, 2011 12:10 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How to display Arabic What version of iText are you using? What OS are you using (I'm gonna guess some version of windows from your file path). Examine the return value of getFont() in a debugger. What font is being returned? I suspect it's not what you're asking for. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: David Thielen [mailto:da...@windward.net] Sent: Wednesday, March 23, 2011 10:33 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] How to display Arabic I would swear this has worked in the past – but I can’t get it to display Arabic or Hebrew. I’ve gone back to the sample in the book – and it doesn’t work. Any ideas? Thanks – dave public static void main(String[] args) throws Exception { FontFactory.registerDirectories(); Rectangle pagesize = new Rectangle(8.5f * 72, 11 * 72); Document document = new Document (pagesize, 72, 72, 72, 72); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(c:\\test\\report.pdf)); document.open(); //Font font = FontFactory.getFont(Simplified Arabic, BaseFont.IDENTITY_H, true, 22, Font.BOLD); Font font = FontFactory.getFont(arialuni, BaseFont.IDENTITY_H, true, 22, Font.BOLD); ColumnText column = new ColumnText(writer.getDirectContent()); column.setSimpleColumn(36, 770, 569, 36); column.setRunDirection(PdfWriter.RUN_DIRECTION_RTL); column.addElement(new Paragraph(Arabic, font)); column.addElement(new Paragraph(اليوم يوم خميث , font)); column.addElement(new Paragraph(Hebrew, font)); column.addElement(new Paragraph(אחת שתיים , font)); column.go(); document.close(); } -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] How to display Arabic
Close out for anyone Google-ing this in the future. When you request a font from iText, if it cannot find that font it returns a different font. And that different font generally does not include Arabic Hebrew glyphs. From: Mark Storer [mailto:msto...@autonomy.com] Sent: Wednesday, March 23, 2011 12:10 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How to display Arabic What version of iText are you using? What OS are you using (I'm gonna guess some version of windows from your file path). Examine the return value of getFont() in a debugger. What font is being returned? I suspect it's not what you're asking for. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: David Thielen [mailto:da...@windward.net] Sent: Wednesday, March 23, 2011 10:33 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] How to display Arabic I would swear this has worked in the past – but I can’t get it to display Arabic or Hebrew. I’ve gone back to the sample in the book – and it doesn’t work. Any ideas? Thanks – dave public static void main(String[] args) throws Exception { FontFactory.registerDirectories(); Rectangle pagesize = new Rectangle(8.5f * 72, 11 * 72); Document document = new Document (pagesize, 72, 72, 72, 72); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(c:\\test\\report.pdf)); document.open(); //Font font = FontFactory.getFont(Simplified Arabic, BaseFont.IDENTITY_H, true, 22, Font.BOLD); Font font = FontFactory.getFont(arialuni, BaseFont.IDENTITY_H, true, 22, Font.BOLD); ColumnText column = new ColumnText(writer.getDirectContent()); column.setSimpleColumn(36, 770, 569, 36); column.setRunDirection(PdfWriter.RUN_DIRECTION_RTL); column.addElement(new Paragraph(Arabic, font)); column.addElement(new Paragraph(اليوم يوم خميث , font)); column.addElement(new Paragraph(Hebrew, font)); column.addElement(new Paragraph(אחת שתיים , font)); column.go(); document.close(); } -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] BaseFont.isFontSpecific() == true; text uses 0xF0xx form
Hi all; Found an interesting issue - posted so others can find via Google. If a font is set to BaseFont.isFontSpecific() then the string passed in must have the chars on the range 0x00 - 0xFF. If the text is in the form 0xF0__ then it will not display them (Word uses this approach). So if it's isFontSpecific then 0xF012 must be changed to 0x0012. Thanks - dave -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Why does this draw the text outside of ColumnText.setSimpleColumn()?
Asking again, anyone know why text is drawn outside the boundaries of ColumnText.setSimpleColumn() as demonstrated in the code below? thanks - dave From: David Thielen [da...@windward.net] Sent: Tuesday, December 07, 2010 5:44 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Why does this draw the text outside of ColumnText.setSimpleColumn()? Hi all; And a follow-up to this (still trying to figure it out). If I call textToWrite.setLeading(24f); then nothing is displayed. Shouldn’t the first line still be displayed no matter how large the leading? And reading the iText book about setLeading, I think when passing a single float it’s the full height of the line plus leading, not just the leading – correct? Thanks – dave From: David Thielen Sent: Tuesday, December 07, 2010 3:58 PM To: 'itext-questions@lists.sourceforge.net' Subject: Why does this draw the text outside of ColumnText.setSimpleColumn()? Code: FontFactory.registerDirectories(); Document document = new Document(new com.lowagie.text.Rectangle(0, 0, 8.5f * 72.0f, 11 * 72)); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(test.pdf)); document.open(); PdfContentByte pdfContByte = writer.getDirectContent(); String str = This is a ; Font fnt = FontFactory.getFont(Calibri, BaseFont.IDENTITY_H, true, 11, 0); ColumnText textToWrite = new ColumnText(pdfContByte); textToWrite.setAlignment(0); textToWrite.setLeading(2.4f); float xLeft = 72.0f; float xRight = 1600.0f; float yTop = 713.2f; float yBottom = 702.25f; textToWrite.setSimpleColumn(xLeft, yBottom, xRight, yTop); Chunk chunk = new Chunk(str, fnt); textToWrite.addText(chunk); // write the text textToWrite.go(); // draw the rectangle pdfContByte.moveTo(xLeft, yTop); pdfContByte.lineTo(xRight, yTop); pdfContByte.lineTo(xRight, yBottom); pdfContByte.lineTo(xLeft, yBottom); pdfContByte.lineTo(xLeft, yTop); pdfContByte.stroke(); document.close(); David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ World's coolest blog - Windward Wrocks!http://blogs.windwardreports.com/davidt/ -- This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] ColumnText.setSimpleColumn() Y values in rectangle
Note: I'm posting this so it's in the email archives for anyone searching on this in the future. In the call ColumnText.setSimpleColumn(), while the X parameters passed in are the left and right limits of the text to be rendered, the Y parameter is the baseline for the text, not a boundary. The values used internally by iText in ColumnText.showTextAligned are Y - 1 and Y + 2 where Y is the baseline. The baseline is the location of the bottom of a character that has no descender such as A. Tags: ColumnText setSimpleColumn Y -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Why does this draw the text outside of ColumnText.setSimpleColumn()?
Hi all; And a follow-up to this (still trying to figure it out). If I call textToWrite.setLeading(24f); then nothing is displayed. Shouldn't the first line still be displayed no matter how large the leading? And reading the iText book about setLeading, I think when passing a single float it's the full height of the line plus leading, not just the leading - correct? Thanks - dave From: David Thielen Sent: Tuesday, December 07, 2010 3:58 PM To: 'itext-questions@lists.sourceforge.net' Subject: Why does this draw the text outside of ColumnText.setSimpleColumn()? Code: FontFactory.registerDirectories(); Document document = new Document(new com.lowagie.text.Rectangle(0, 0, 8.5f * 72.0f, 11 * 72)); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(test.pdf)); document.open(); PdfContentByte pdfContByte = writer.getDirectContent(); String str = This is a ; Font fnt = FontFactory.getFont(Calibri, BaseFont.IDENTITY_H, true, 11, 0); ColumnText textToWrite = new ColumnText(pdfContByte); textToWrite.setAlignment(0); textToWrite.setLeading(2.4f); float xLeft = 72.0f; float xRight = 1600.0f; float yTop = 713.2f; float yBottom = 702.25f; textToWrite.setSimpleColumn(xLeft, yBottom, xRight, yTop); Chunk chunk = new Chunk(str, fnt); textToWrite.addText(chunk); // write the text textToWrite.go(); // draw the rectangle pdfContByte.moveTo(xLeft, yTop); pdfContByte.lineTo(xRight, yTop); pdfContByte.lineTo(xRight, yBottom); pdfContByte.lineTo(xLeft, yBottom); pdfContByte.lineTo(xLeft, yTop); pdfContByte.stroke(); document.close(); David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ World's coolest blog - Windward Wrocks!http://blogs.windwardreports.com/davidt/ -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] bye all
We've got a superb programmer here who has been handling all the iText stuff in our code for some time. So I am leaving the list. I want to say thank you to everyone who has been so much help over the years with my questions. This is the best open source community ever. thanks - dave www.windwardreports.comhttp://www.windwardreports.com -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] Clear out font cache?
Hi; To list out all fonts, including all their properties, I do the following: String[] arr = new String[FontFactory.getRegisteredFonts().size()]; for (int ind=0; indarr.length; ind++) { BaseFont bf = FontFactory.getFont(arr[ind]).getBaseFont(); This eats up a ton of memory if there are lots of fonts on a system. I assume this is loading up an internal cache. I call System.gc() every 10 fonts, but it still will run out of memory on some systems. Is there a way to flush the font cache? thanks - dave -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Clear out font cache?
Hi; Our mail server burped this morning so if anyone posted an answer to this, can you please re-post? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.comhttp://www.windwardreports.com/ From: David Thielen [mailto:da...@windward.net] Sent: Wednesday, July 15, 2009 11:58 PM To: itext Subject: [iText-questions] Clear out font cache? Hi; To list out all fonts, including all their properties, I do the following: String[] arr = new String[FontFactory.getRegisteredFonts().size()]; for (int ind=0; indarr.length; ind++) { BaseFont bf = FontFactory.getFont(arr[ind]).getBaseFont(); This eats up a ton of memory if there are lots of fonts on a system. I assume this is loading up an internal cache. I call System.gc() every 10 fonts, but it still will run out of memory on some systems. Is there a way to flush the font cache? thanks - dave -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Clear out font cache?
Hi; I'm looking at http://www.1t3xt.info/api/ and don't see a getFont() where one of the params is cached. Is this done by passing Properties to getFont() and if so, what are the name/value pairs for that? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.com -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Thursday, July 16, 2009 11:50 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Clear out font cache? Use the getFont() that has the 'cached' parameter. Paulo -Original Message- From: David Thielen [mailto:da...@windward.net] Sent: Thursday, July 16, 2009 6:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Clear out font cache? Hi; Our mail server burped this morning so if anyone posted an answer to this, can you please re-post? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.com http://www.windwardreports.com/ From: David Thielen [mailto:da...@windward.net] Sent: Wednesday, July 15, 2009 11:58 PM To: itext Subject: [iText-questions] Clear out font cache? Hi; To list out all fonts, including all their properties, I do the following: String[] arr = new String[FontFactory.getRegisteredFonts().size()]; for (int ind=0; indarr.length; ind++) { BaseFont bf = FontFactory.getFont(arr[ind]).getBaseFont(); This eats up a ton of memory if there are lots of fonts on a system. I assume this is loading up an internal cache. I call System.gc() every 10 fonts, but it still will run out of memory on some systems. Is there a way to flush the font cache? thanks - dave Aviso Legal: Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Clear out font cache?
I'm an idiot. Now I do see it. Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.com -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Thursday, July 16, 2009 2:43 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Clear out font cache? getFont public static Font getFont(String fontname, String encoding, boolean embedded, float size, int style, Color color, boolean cached)Constructs a Font-object. Parameters: fontname - the name of the font encoding - the encoding of the font embedded - true if the font is to be embedded in the PDF size - the size of this font style - the style of this font color - the Color of this font. cached - true if the font comes from the cache or is added to the cache if new, false if the font is always created new Returns: the Font constructed based on the parameters Paulo - Original Message - From: David Thielen da...@windward.net To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Thursday, July 16, 2009 8:08 PM Subject: Re: [iText-questions] Clear out font cache? Hi; I'm looking at http://www.1t3xt.info/api/ and don't see a getFont() where one of the params is cached. Is this done by passing Properties to getFont() and if so, what are the name/value pairs for that? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.com -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Thursday, July 16, 2009 11:50 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Clear out font cache? Use the getFont() that has the 'cached' parameter. Paulo -Original Message- From: David Thielen [mailto:da...@windward.net] Sent: Thursday, July 16, 2009 6:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Clear out font cache? Hi; Our mail server burped this morning so if anyone posted an answer to this, can you please re-post? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) www.windwardreports.com http://www.windwardreports.com/ From: David Thielen [mailto:da...@windward.net] Sent: Wednesday, July 15, 2009 11:58 PM To: itext Subject: [iText-questions] Clear out font cache? Hi; To list out all fonts, including all their properties, I do the following: String[] arr = new String[FontFactory.getRegisteredFonts().size()]; for (int ind=0; indarr.length; ind++) { BaseFont bf = FontFactory.getFont(arr[ind]).getBaseFont(); This eats up a ton of memory if there are lots of fonts on a system. I assume this is loading up an internal cache. I call System.gc() every 10 fonts, but it still will run out of memory on some systems. Is there a way to flush the font cache? thanks - dave -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] For those that need reporting
Hi; This is my quarterly plug for Windward Reports. If you need a reporting system, we have one where you design in Microsoft Office. And the PDF output is via iText. Details at http://www.windwardreports.com/?source=tdivadid=Putm_source={source}utm_campaign=tdivad (the params in the link are because we have a contest where the person bringing in the most visitors wins a Kindle). So come take a look (and help me win a Kindle). thanks - dave -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://www.creativitycat.com ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] MsWord to Pdf
Yes - www.windwardreports.com thanks - dave From: deep4u [mailto:deepuv...@gmail.com] Sent: Wed 5/6/2009 6:40 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] MsWord to Pdf Hello, I have a requirement is conversion of word document to pdf in java. It is posible using itext please share me the information. Thanks, 1T3XT info wrote: deep4u wrote: Hello, How to write own (X)HTML handler. For this you have any sample code or any related links please share me. I repeat: Go to the keywords page: http://1t3xt.be/?X0004c8 Do Ctrl+F to search for the words writing your own Handler. Click on those words and you'll find: http://1t3xt.be/?X0004ec There you will find 8 examples. How many times have I already referred to the keywords page in the last week? Certainly enough for you to find it! -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info http://www.1t3xt.info/ -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- View this message in context: http://www.nabble.com/Html-to-Pdf-tp23295842p23405856.html Sent from the iText - General mailing list archive at Nabble.com. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ winmail.dat-- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] [SPAM] iText# in conjunction with Windows print driver
www.windwardreports.com has it - but it's commercial. David Thielen 303-499-2544 x1185 720-352-0676 (cell) From: Paul Swift [mailto:paulswift1...@hotmail.com] Sent: Thursday, April 16, 2009 2:07 PM To: iText mailinglist Subject: [SPAM] [iText-questions] iText# in conjunction with Windows print driver Does anyone have any experience of using iText# in conjunction with a Windows print driver? I have a new requirement where producing PDF files via a print driver is the ideal solution. As a long time user and advocate of iText#, I was hoping to include iText code already developed as part of the solution. Anyone? TIA, Paul -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How can I get the font in my PDF to be Arial
thank you From: Leonard Rosenthol [mailto:leona...@pdfsages.com] Sent: Sun 2/22/2009 6:31 AM To: Post all your questions about iText here Subject: Re: [iText-questions] How can I get the font in my PDF to be Arial Yes, spaces in names are no fun! On Sat, Feb 21, 2009 at 6:02 PM, David Thielen da...@windward.net wrote: Hi; With some experimentation it appears that Acrobat prefers Arial,Bold to Arial Bold or Arial-Bold in setPostscriptFontName() for a bold style. Is this correct? thanks - dave From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Thu 2/19/2009 4:20 AM To: Post all your questions about iText here Subject: Re: [iText-questions] How can I get the font in my PDF to be Arial David Thielen wrote: Hi; Ok, I've read through Chapter 8 again. And I've come up with the following 2 approaches to get a font for text I write to the PDF: FontFactory.getFont(Arial, BaseFont.IDENTITY_H, false, 12.0, 0); FontFactory.getFont(Arial, BaseFont.IDENTITY_H, true, 12.0, 0); FontFactory.getFont(Arial, Cp1252, false, 12.0, 0); FontFactory.getFont(Arial, Cp1252, true, 12.0, 0); And in each case the underlying BaseFont has a name of ArialMT. How can I get it to create a font with the name Arial? See page 273: fonts[5].getBaseFont().setPostscriptFontName(Computer Modern); I did an extra trick in the last line of the code snippet. In the previous chapter, the font is listed in the Fonts tab as CMR10 (see figure 8.5). Instead of this acronym, I want a readable name to show up, so I changed it to Computer Modern. The font appears in the Fonts tab with this name (see figure 9.10). This is an issue for one of our customers because when they use the text touch-up tool afterwards it tells them that it cannot find the font ArialMT on their system, although they do have Arial. If the answer was helpful, please consider becoming a customer of iText Software LLC ;-) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info http://www.1t3xt.info/ http://www.1t3xt.info/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php winmail.dat-- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How can I get the font in my PDF to be Arial
Hi; With some experimentation it appears that Acrobat prefers Arial,Bold to Arial Bold or Arial-Bold in setPostscriptFontName() for a bold style. Is this correct? thanks - dave From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Thu 2/19/2009 4:20 AM To: Post all your questions about iText here Subject: Re: [iText-questions] How can I get the font in my PDF to be Arial David Thielen wrote: Hi; Ok, I've read through Chapter 8 again. And I've come up with the following 2 approaches to get a font for text I write to the PDF: FontFactory.getFont(Arial, BaseFont.IDENTITY_H, false, 12.0, 0); FontFactory.getFont(Arial, BaseFont.IDENTITY_H, true, 12.0, 0); FontFactory.getFont(Arial, Cp1252, false, 12.0, 0); FontFactory.getFont(Arial, Cp1252, true, 12.0, 0); And in each case the underlying BaseFont has a name of ArialMT. How can I get it to create a font with the name Arial? See page 273: fonts[5].getBaseFont().setPostscriptFontName(Computer Modern); I did an extra trick in the last line of the code snippet. In the previous chapter, the font is listed in the Fonts tab as CMR10 (see figure 8.5). Instead of this acronym, I want a readable name to show up, so I changed it to Computer Modern. The font appears in the Fonts tab with this name (see figure 9.10). This is an issue for one of our customers because when they use the text touch-up tool afterwards it tells them that it cannot find the font ArialMT on their system, although they do have Arial. If the answer was helpful, please consider becoming a customer of iText Software LLC ;-) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info http://www.1t3xt.info/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php winmail.dat-- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] How can I get the font in my PDF to be Arial
Hi; Ok, I've read through Chapter 8 again. And I've come up with the following 2 approaches to get a font for text I write to the PDF: FontFactory.getFont(Arial, BaseFont.IDENTITY_H, false, 12.0, 0); FontFactory.getFont(Arial, BaseFont.IDENTITY_H, true, 12.0, 0); FontFactory.getFont(Arial, Cp1252, false, 12.0, 0); FontFactory.getFont(Arial, Cp1252, true, 12.0, 0); And in each case the underlying BaseFont has a name of ArialMT. How can I get it to create a font with the name Arial? This is an issue for one of our customers because when they use the text touch-up tool afterwards it tells them that it cannot find the font ArialMT on their system, although they do have Arial. Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF
Here you go. Acrobat ver 9 running on XP w/ SP-3. thank you - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Mon 2/16/2009 11:14 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Please provide a sample PDF the demonstrates the problem. Also, what version of Acrobat is being used on what OS platform? Leonard From: David Thielen [mailto:da...@windward.net] Sent: Monday, February 16, 2009 12:00 PM To: itext Subject: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Hi; We're getting this issue from one of our customers. The PDFs we create use unicode for all text so all fonts are embedded. We build the PDF from a Word document. I open new document in Word. Add some text, choose Arial in the fonts dropdown list. Add an other line of text, choose Arial in the fonts dropdown list and select the bold button. Save the document as an RTF Create a PDF. Open the PDF in Acrobat Reader. The font types are now Arial-MT and Arial-BoldMT. And it are embedded subsets. When I open the PDF in Adobe Acrobat Professional, I can perfectly add some text to the default Arial text. When I want to add some text to the bold Arial text, I get an error message that the font is a subset and that no compatible system font can be found. Which is strange because I have ARIALBD.TTF in my Fonts folder. Any ideas? thanks - dave winmail.dat-- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Can't edit bold arial in Acrobatafter creating PDF
Hi; I understand that. The two probelems we are having are: We call FontFactory.getFont(Arial, baseFont.IDENTITY_H, true, 12.0, Font.BOLD); and the BaseFont it returns has a fontName of Arial-BoldMT. So the first question is how can we set the font to Arial rather than ArialMT and Arial,Bold rather than Arial-BoldMT? Second, when I use the text touch up tool on my system, the same system that did the above conversion to ArialMT - it tells me it cannot find ArialMT and will use Arial instead. Si it's like iText does a name mapping that Acrobat cannot do? Third, when our customer goes to use the text touchup tool, she gets a message saying Acrobat cannot find a substitute font for the bold. It does do ok for the non-bold. ??? - thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Tuesday, February 17, 2009 4:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobatafter creating PDF Because the font specified in the PDF is Arial-BoldMT NOT Arial Bold - two different fonts... Leonard From: David Thielen [mailto:da...@windward.net] Sent: Tuesday, February 17, 2009 3:29 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Here you go. Acrobat ver 9 running on XP w/ SP-3. thank you - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Mon 2/16/2009 11:14 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Please provide a sample PDF the demonstrates the problem. Also, what version of Acrobat is being used on what OS platform? Leonard From: David Thielen [mailto:da...@windward.net] Sent: Monday, February 16, 2009 12:00 PM To: itext Subject: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Hi; We're getting this issue from one of our customers. The PDFs we create use unicode for all text so all fonts are embedded. We build the PDF from a Word document. I open new document in Word. Add some text, choose Arial in the fonts dropdown list. Add an other line of text, choose Arial in the fonts dropdown list and select the bold button. Save the document as an RTF Create a PDF. Open the PDF in Acrobat Reader. The font types are now Arial-MT and Arial-BoldMT. And it are embedded subsets. When I open the PDF in Adobe Acrobat Professional, I can perfectly add some text to the default Arial text. When I want to add some text to the bold Arial text, I get an error message that the font is a subset and that no compatible system font can be found. Which is strange because I have ARIALBD.TTF in my Fonts folder. Any ideas? thanks - dave -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Can't edit bold arial in Acrobatafter creating PDF
Ok, I know this is a dumb question but how do I do that under iText? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Tuesday, February 17, 2009 1:17 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobatafter creating PDF Don't use Font.BOLD - instead, pick the font manually. Leonard On 2/17/09 2:52 PM, David Thielen da...@windward.net wrote: Hi; I understand that. The two probelems we are having are: We call FontFactory.getFont(Arial, baseFont.IDENTITY_H, true, 12.0, Font.BOLD); and the BaseFont it returns has a fontName of Arial-BoldMT. So the first question is how can we set the font to Arial rather than ArialMT and Arial,Bold rather than Arial-BoldMT? Second, when I use the text touch up tool on my system, the same system that did the above conversion to ArialMT - it tells me it cannot find ArialMT and will use Arial instead. Si it's like iText does a name mapping that Acrobat cannot do? Third, when our customer goes to use the text touchup tool, she gets a message saying Acrobat cannot find a substitute font for the bold. It does do ok for the non-bold. ??? - thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Tuesday, February 17, 2009 4:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobatafter creating PDF Because the font specified in the PDF is Arial-BoldMT NOT Arial Bold - two different fonts... Leonard From: David Thielen [mailto:da...@windward.net] Sent: Tuesday, February 17, 2009 3:29 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Here you go. Acrobat ver 9 running on XP w/ SP-3. thank you - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Mon 2/16/2009 11:14 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Please provide a sample PDF the demonstrates the problem. Also, what version of Acrobat is being used on what OS platform? Leonard From: David Thielen [mailto:da...@windward.net] Sent: Monday, February 16, 2009 12:00 PM To: itext Subject: [iText-questions] Can't edit bold arial in Acrobat after creating PDF Hi; We're getting this issue from one of our customers. The PDFs we create use unicode for all text so all fonts are embedded. We build the PDF from a Word document. I open new document in Word. Add some text, choose Arial in the fonts dropdown list. Add an other line of text, choose Arial in the fonts dropdown list and select the bold button. Save the document as an RTF Create a PDF. Open the PDF in Acrobat Reader. The font types are now Arial-MT and Arial-BoldMT. And it are embedded subsets. When I open the PDF in Adobe Acrobat Professional, I can perfectly add some text to the default Arial text. When I want to add some text to the bold Arial text, I get an error message that the font is a subset and that no compatible system font can be found. Which is strange because I have ARIALBD.TTF in my Fonts folder. Any ideas? thanks - dave -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Can't edit bold arial in Acrobat after creating PDF
Hi; We're getting this issue from one of our customers. The PDFs we create use unicode for all text so all fonts are embedded. We build the PDF from a Word document. I open new document in Word. Add some text, choose Arial in the fonts dropdown list. Add an other line of text, choose Arial in the fonts dropdown list and select the bold button. Save the document as an RTF Create a PDF. Open the PDF in Acrobat Reader. The font types are now Arial-MT and Arial-BoldMT. And it are embedded subsets. When I open the PDF in Adobe Acrobat Professional, I can perfectly add some text to the default Arial text. When I want to add some text to the bold Arial text, I get an error message that the font is a subset and that no compatible system font can be found. Which is strange because I have ARIALBD.TTF in my Fonts folder. Any ideas? thanks - dave -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Students only - free copy of Windward Reports
Windward is offering a free copy of their reporting system to students. Please go to http://www.windwardreports.com/student.htm to get a copy. thanks - dave -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] iTextDotNet FIPS
Hi; The government has a new security standard called FIPS. One of our customers turned on their implementation of FIPS and with iTextDotNet (not the Java version) we now get the following - and we do not do any encryption of the PDF. It runs fine if FIPS is not turned on. Any ideas - thanks - dave Exception: Error serializing value 'ExceptionConverter: java.security.NoSuchAlgorithmException: java.lang.InstantiationException: com.ms.vjsharp.security.provider.MD5' of type 'com.lowagie.text.ExceptionConverter.' Inner Exception: System.Runtime.Serialization.SerializationException: Type 'com.lowagie.text.ExceptionConverter' in Assembly 'iText, Version=1.4.1.2, Culture=neutral, PublicKeyToken=82be440d6061a22f' is not marked as serializable. at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] iTextDotNet FIPS
Any idea why the variant they are using would cause this problem? thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thu 1/22/2009 7:51 AM To: Post all your questions about iText here Subject: Re: [iText-questions] iTextDotNet FIPS FWIW: FIPS isn't new - it's been around for MANY years. In addition, there are multiple variants of FIPS... Leonard On 1/22/09 3:31 PM, David Thielen da...@windward.net wrote: Hi; The government has a new security standard called FIPS. One of our customers turned on their implementation of FIPS and with iTextDotNet (not the Java version) we now get the following - and we do not do any encryption of the PDF. It runs fine if FIPS is not turned on. Any ideas - thanks - dave Exception: Error serializing value 'ExceptionConverter: java.security.NoSuchAlgorithmException: java.lang.InstantiationException: com.ms.vjsharp.security.provider.MD5' of type 'com.lowagie.text.ExceptionConverter.' Inner Exception: System.Runtime.Serialization.SerializationException: Type 'com.lowagie.text.ExceptionConverter' in Assembly 'iText, Version=1.4.1.2, Culture=neutral, PublicKeyToken=82be440d6061a22f' is not marked as serializable. at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Marked Content
Hi; I am very sorry - we had our internet connection go down for 2 days and I lost the emails coming in answering my question below. So could anyone who answered this answer again? Thanks I'm diving into the Marked Content and have a couple of questions. 1) Does it work with ColumnText? It looks like it should but better to ask. 2) It looks like what we do is pass in the formatting via html commands. Is there any restriction on this or is it pretty much all html? 3) Do we need to pass in character formatting like b or can Acrobat figure that out based on the settings of the text we render? 4) Is there a way to tell it the lines we draw are for a table? Or do we just specify that in the table part and it will ignore the lines? Thanks - dave -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Marked Content
Hi; I'm diving into the Marked Content and have a couple of questions. 1) Does it work with ColumnText? It looks like it should but better to ask. 2) It looks like what we do is pass in the formatting via html commands. Is there any restriction on this or is it pretty much all html? 3) Do we need to pass in character formatting like b or can Acrobat figure that out based on the settings of the text we render? 4) Is there a way to tell it the lines we draw are for a table? Or do we just specify that in the table part and it will ignore the lines? Thanks - dave David Thielen 303-499-2544 x1185 720-352-0676 (cell) Must watch - Cubicle War http://www.youtube.com/watch?v=8RBPvX9FadU -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Merry Christmas all
Here's wishing you all a very Merry Christmas. And especially to Bruno and his family that his son is doing well under the cancer treatment. It is a brutal brutal disease and it makes you treasure every day you still have your son. - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Background for the next couple of questions
Hi; We use an older version of iText, that matches iTextDotNet. We do this because we also build our code using J# for our .NET version. We are now going to write a layer of our code that has a common API that we call, and underneath it will call the latest iText on the Java side and the new C# iText on the .net side. Our code handles the page layout so we use iText to draw to the page, but we do not use it for line breaks, table layout, etc. We do use it to handle ligatures, etc so we don't have to redo the work involved in handling Arabic. So that brings me to asking questions, most on things that have been added, a couple on questions we are not sure we used the best approach on. I've just been through all the relevant parts of Bruno's book and am left with the questions following. Questions to follow. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] WMF/EMF support
Hi; Does iText now support Enhanced Meta Files and positioned Windows Meta Files? The version we are using only supported standard Windows Meta Files and for the others it became a bitmap. If it does not, it strikes me as easy to add and I am happy to add that functionality. Is there any reason that it might be harder than I think it would be to add it? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] z-order
Hi; I understand that iText has the 4 layers. Is there any way to set a specific z-order for each item to have a larger number of layers? I ask because we get elements in page order and they can come in any z order. Theoretically, we could have 5 strings, each on top of the other, with each having a unique z-order. If this cannot be done, if 2 items are drawn on the same level, does the second always get placed above the first? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] PDF/X, PDF/A, tagged PDF, etc.
Hi; Please correct me if I'm wrong, PDF/X and PDF/A are basically restrictions on what can be written to the PDF file. So we do the same thing as before, except there are some calls that are not allowed and all colors are set in CMYK. For PDF/X that's it - correct? For PDF/A there is the metadata that is added, but is there any specific metadata we are supposed to add or is what is added up to each individual? If there is a set of properties we are supposed to put in the metadata, is there a link to it somewhere? And for tagged PDF, this is where we can let Acrobat know the true formatting of the document so when a user does copy and paste from Acrobat, they get the true formatted document displayed in the PDF - correct? Is there a link showing what of this is supported in iText, how to call it, and what more will be added? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Joining lines that change properties
Hi; When we draw a table, the top and bottom borders can be different widths/colors/patterns from the left right borders (width change is the most common). Is there a way to get PDF to join the corners of each line when they are dissimilar? We have tried numerous approaches but if the line width changes, Acrobat usually will not join the lines. Same for the internal lines in the table, is there a way to join them to the outside borders where they stub in to them? This is a problem because setting the lines to start and stop at specific positions with the next line lined up against them, is not drawn that way by Acrobat. It seems to start/stop lines a bit off at the ends. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] z-order
Fantastic - thanks Ps - this is perfect for us because it's rare that the z-order is not 0 and so we only have to do this for those unusual cases. -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:11 PM To: Post all your questions about iText here Subject: Re: [iText-questions] z-order Several PdfContentByte objects will also work well as layers as long as you keep track of save/restore state. The order that you copy this objects to the master PdfContentByte will determine the z-order. This is what happens with the original 4 layers. Paulo -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 5:06 PM To: Post all your questions about iText here Subject: Re: [iText-questions] z-order David Thielen wrote: Hi; I understand that iText has the 4 layers. Is there any way to set a specific z-order for each item to have a larger number of layers? Larger number of layers: you could create several PdfTemplate objects; add content to these templates/layers using ColumnText. Then add the layers to a page in the preferred order. If this cannot be done, if 2 items are drawn on the same level, does the second always get placed above the first? When in the same layer: yes. Also: when you add the templates/layers, the one added last, will be the one on top. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] WMF/EMF support
Hi; I have the full EMF spec from Microsoft and got it with no restrictions on its use. I'll try to add that to iText. And positioned WMF if it's not supported (that is a very small change). Thanks - dave -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] WMF/EMF support EMF is not that much more difficult that WMF, it just has more commands and not that well documented. We must not forget that EMF is little more than a replay of Windows gdi commands. Paulo -Original Message- From: David Thielen [mailto:da...@windward.net] Sent: Monday, December 22, 2008 4:56 PM To: itext Subject: [iText-questions] WMF/EMF support Hi; Does iText now support Enhanced Meta Files and positioned Windows Meta Files? The version we are using only supported standard Windows Meta Files and for the others it became a bitmap. If it does not, it strikes me as easy to add and I am happy to add that functionality. Is there any reason that it might be harder than I think it would be to add it? Thanks - dave Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Code page or unicode
Hi; We have been using Unicode for all of our output. Works great in that we don't need to worry about what characters are in a string. But it means we always have embedded fonts - which is not good. We do not know up front what characters are in the text we get and while I think it's rare, it would not surprise me that both Russian and Polish or Chinese and Thai are both in a document. We can easily add the code to determine the codepage for each string and separate out strings using different codepages. What's the best practices in this case? I prefer the concept of keeping everything Unicode but we do need to offer PDF files that are smaller (ie don't have embedded fonts). Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] How should we write text to the PDF file?
Hi; At present we write to the document using ColumnText.showTextAligned(). We pass in the X, Y of the start of the text and in the case of justified text, call it word by word. We then also draw underlines ourselves afterwards. I would prefer that we could call an iText method a line at a time and give it the start end of the line, if it's left, center, right, or justified aligned, and if it's underlined. But it would not word wrap - it would put everything on that one line. Is there a way to do this? And if not, is our present approach using ColumnText.showTextAligned() setting the left of each string the best approach? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
All the tags are supported but it's up to you to find the right place to use them. If you do your own layout you have the job facilitated but you must still know where to place the tags. Is there an example of this somewhere? Thanks - dave -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:17 PM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc. -Original Message- From: David Thielen [mailto:da...@windward.net] Sent: Monday, December 22, 2008 5:08 PM To: itext Subject: [iText-questions] PDF/X, PDF/A, tagged PDF, etc. Hi; Please correct me if I'm wrong, PDF/X and PDF/A are basically restrictions on what can be written to the PDF file. So we do the same thing as before, except there are some calls that are not allowed and all colors are set in CMYK. For PDF/X that's it - correct? No, you may have RGB images too, it depends on how you define the colorspace. For PDF/A there is the metadata that is added, but is there any specific metadata we are supposed to add or is what is added up to each individual? If there is a set of properties we are supposed to put in the metadata, is there a link to it somewhere? Some properties must be there, and are included by default when the the pdf is marked as PDF/A, but you may add others. And for tagged PDF, this is where we can let Acrobat know the true formatting of the document so when a user does copy and paste from Acrobat, they get the true formatted document displayed in the PDF - correct? Is there a link showing what of this is supported in iText, how to call it, and what more will be added? All the tags are supported but it's up to you to find the right place to use them. If you do your own layout you have the job facilitated but you must still know wher to place the tags. Paulo Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Christmas game
Hi all; First, thank you for the answers to me giant list of questions. Second, for anyone who wants a fun game to play over Christmas (or anytime) - http://www.enemynations.com/ (I wrote it) is free. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Code page or unicode
We build our documents from a Word document. So the customer has already selected the fonts in Word - and we must use those fonts. So I don't think that approach will work. And if it's Russian Polish using Verdana, don't we then have to get 2 different Verdana fonts, one for each code page? Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:47 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Code page or unicode David Thielen wrote: What's the best practices in this case? I prefer the concept of keeping everything Unicode but we do need to offer PDF files that are smaller (ie don't have embedded fonts). What about running all the text through FontSelector? Add a font that isn't embedded first in row (one of the Standard Type 1 Fonts). Add a font like arialuni.ttf as last in row. If a character is encountered for which there isn't a glyph in the Standard Type 1 font, it will look for that glyph in arialuni.ttf. (See the example in chapter 9 and experiment with it.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
We do all of the page formatting - and have to for setting text in things like the page on number of pages field - which we then convert to text on the output. Plus we've put in a gigantic effort to match Word and there is a boatload of small weird rules that impact layout, and iText does not have that level of control. So when we say the text must fit on a line - it all must go on that line. The output we produce is clean so the text we select for a line does fit - but I can't use an iText call that may decide that the last word should go on the next line. Also, for centered/right/justified text - it has to know that this is all the text for this line. And for justified text, needs to know if it is the last line of the paragraph (no justify) or a line before the last. Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:53 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? David Thielen wrote: At present we write to the document using ColumnText.showTextAligned(). We pass in the X, Y of the start of the text and in the case of justified text, call it word by word. We then also draw underlines ourselves afterwards. Wow, that's a lot of work. I would prefer that we could call an iText method a line at a time and give it the start end of the line, if it's left, center, right, or justified aligned, and if it's underlined. But it would not word wrap - it would put everything on that one line. If you dropped the requirement it would not word wrap, I'd say: that's easy. Please explain why you want to avoid word wrap. For instance: what happens when the text doesn't fit the line? (How) do you know the text will only take one line? Depending on your answers to this question, the solution could already be present, but I don't know. Is there a way to do this? And if not, is our present approach using ColumnText.showTextAligned() setting the left of each string the best approach? I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use setSimpleColumn to define a Rectangle that takes one line. Then I'd call ColumnText.go(). If the text doesn't fit the line, the remaining part is still in the ColumnText object for you to use in another Rectangle. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] SVG and iText
Are you converting the SVG to a bitmap or to a set of graphics primitives? If one is the bitmap and the other is the primitives you will see a very large difference in file size. As to the performance, YourKit has a great java profiler. Thanks- dave -Original Message- From: slaisne [mailto:s.lai...@lectra.com] Sent: Monday, December 22, 2008 1:04 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] SVG and iText Hi all, Sorry for the delay... I'm using iText through JasperReports. In JasperReports, I develop a custom svg renderer based on batik. iText needs 30 min to export to pdf this image, and the resulted pdf weight is 2.2Mo and the image is correctly displayed in the pdf. I'm a Mac user, and I export the svg to pdf by using the native pdf driver in mac os x. The result is immediately and the quelity is better than iText: pdf weight 200Ko. So, my conclusion is arround pdf keywords used by iText's PdfGraphics2D to draw the image. Mark Storer-3 wrote: Laisne Stéphane S.Laisne at lectra.com writes: In order to display SVG file in PDF, I create a specific renderer, using batik, and I’ve a big problem with the Itext PdfGraphics2D. I've done the same thing recently in Cardiff's LiquidOffice. We rewrote the entire PDF exporter in Java using iText, and one of the things we do is render SVG for our more complex field backgrounds (comb fields, rounded edges, and more importantly: pattern fills). When I want to display a SVG with vector-based pattern, the PdfGraphics2D can’t render it with good instruction and the process time is too long (30min for a simple svg). Java's Graphics2D system forces all patterns into a raster image format to be tiled. That's not up to iText, it's one of Sun's design decisions. This results in some rather painful looking patterns in iText and, it would appear, rendering time issues. If you can find a way to remove the pattern and replace it with repeated vector art, I think you'll find the problem solved. I also wonder at the size of the pattern itself. I'd think a smaller tile wouldn't take so long to render the pattern, leading me to believe your pattern may be the size of your entire background... or even larger. I was looking into subclassing Graphics2D's java.awt.PaintContext and java.awt.image.Raster classes to pass around iText's PdfPatternPainter and using that within the bounds of PdfGraphics2D, but abandoned it as not worth the effort. Patterns are used very rarely within our product, and I hadn't run into your 30 minute rendering time problem. Best regards Stéphane LAISNE FIP Tools Research and Development Lectra / Cestas Tel.: +33 (0)5 57 97 35 44 --Mark Storer PDF Guy Cardiff.com #include disclaimer typedef std::disclaimerCardiff Discard; -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- View this message in context: http://www.nabble.com/SVG-and-iText-tp21036090p21132198.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Merry Christmas all
Oops - sorry I meant Christmas as in Santa Claus, not the Christian holiday. (I'm agnostic - but do believe in Santa.) So Happy Christmas/Chanukah/Kwanzaa/Winter Solstice/Flying Spaghetti Monster day. Thanks - dave From: Leonard Rosenthol [mailto:leona...@pdfsages.com] Sent: Monday, December 22, 2008 3:42 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Merry Christmas all And a Happy Chanukah to you, David ;). Leonard On Dec 22, 2008, at 11:46 AM, David Thielen wrote: Here's wishing you all a very Merry Christmas. And especially to Bruno and his family that his son is doing well under the cancer treatment. It is a brutal brutal disease and it makes you treasure every day you still have your son. - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
Ok - thanks -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 1:21 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? As Bruno said use ColumnText. If the text fits in that line (you already checked it) no word wrap will be attempted. Use ALIGN_JUSTIFIED_ALL to justify that line to the end. Paulo -Original Message- From: David Thielen [mailto:da...@windward.net] Sent: Monday, December 22, 2008 6:07 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? We do all of the page formatting - and have to for setting text in things like the page on number of pages field - which we then convert to text on the output. Plus we've put in a gigantic effort to match Word and there is a boatload of small weird rules that impact layout, and iText does not have that level of control. So when we say the text must fit on a line - it all must go on that line. The output we produce is clean so the text we select for a line does fit - but I can't use an iText call that may decide that the last word should go on the next line. Also, for centered/right/justified text - it has to know that this is all the text for this line. And for justified text, needs to know if it is the last line of the paragraph (no justify) or a line before the last. Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:53 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? David Thielen wrote: At present we write to the document using ColumnText.showTextAligned(). We pass in the X, Y of the start of the text and in the case of justified text, call it word by word. We then also draw underlines ourselves afterwards. Wow, that's a lot of work. I would prefer that we could call an iText method a line at a time and give it the start end of the line, if it's left, center, right, or justified aligned, and if it's underlined. But it would not word wrap - it would put everything on that one line. If you dropped the requirement it would not word wrap, I'd say: that's easy. Please explain why you want to avoid word wrap. For instance: what happens when the text doesn't fit the line? (How) do you know the text will only take one line? Depending on your answers to this question, the solution could already be present, but I don't know. Is there a way to do this? And if not, is our present approach using ColumnText.showTextAligned() setting the left of each string the best approach? I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use setSimpleColumn to define a Rectangle that takes one line. Then I'd call ColumnText.go(). If the text doesn't fit the line, the remaining part is still in the ColumnText object for you to use in another Rectangle. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Is iTextSharp kept up to date with iText?
It looks like it is but I figure better to check. thanks - dave -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] font Arabic Transparent - get ??? for text
Hi; I have a case where I am using Arabic Transparent as my font. It cannot create a Font that is Identity-H and so I have to create it using CP1256. When I write text if the text is Arabic I get instead of the arabic characters. I tried converting the chars in the String I write to the codepage values but then I get the standard high-ansi chars from 0x80-0xff. What do I need to do different? thanks - dave - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
Re: [iText-questions] font Arabic Transparent - get ??? for text
Hi; I thought we could have fonts that use a codepage? It allows me to create one passing in a codepage to create it. ??? - thanks - dave From: [EMAIL PROTECTED] on behalf of Paulo Soares Sent: Sat 4/26/2008 2:12 PM To: Post all your questions about iText here Subject: Re: [iText-questions] font Arabic Transparent - get ??? for text That font doesn't allow embedding and iText requires Identity-H and embedding. You can't use that font with iText (and I suspect with any pdf tool). Paulo - Original Message - From: David Thielen [EMAIL PROTECTED] To: itext itext-questions@lists.sourceforge.net Sent: Saturday, April 26, 2008 5:37 PM Subject: [iText-questions] font Arabic Transparent - get ??? for text Hi; I have a case where I am using Arabic Transparent as my font. It cannot create a Font that is Identity-H and so I have to create it using CP1256. When I write text if the text is Arabic I get instead of the arabic characters. I tried converting the chars in the String I write to the codepage values but then I get the standard high-ansi chars from 0x80-0xff. What do I need to do different? thanks - dave - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar winmail.dat- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
[iText-questions] SVG - EMF or PNG?
Hi; Is there a program out there that can convert SVG to EMF and/or PNG? thanks - dave - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
[iText-questions] Could not find the XObject named 'Xf1'
Hi; We encounter a bug when we try to merge more than 53 PDF documents using iText and get: Could not find the XObject named 'Xf1' any ideas? thanks - dave - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
Re: [iText-questions] I thought Arial Times New Roman had all unicode chars
Bingo! Not only that, I've used the all-locale version of Windows at times too... Ok, for the US version, is there any standard font that has all of CJK in it? thanks - dave From: [EMAIL PROTECTED] on behalf of Bruno Lowagie Sent: Fri 1/18/2008 7:52 AM To: Post all your questions about iText here Subject: Re: [iText-questions] I thought Arial Times New Roman had all unicode chars David Thielen wrote: But on my XP system I looked in character map and they seem to not have any Asian characters. Do I remember wrong? Maybe you remember arialuni.ttf instead of arial.ttf. Or you are used to non-US distributions of MS Windows. If I recall correctly, MS distributes different font packs in the US versus in Europe. I think one of the reviewers of my book mentioned this when I wrote about fonts: I was talking about a font (I don't remember which one) that had some special characters and he explained that the corresponding glyphs were not present in the US version of the font. br, Bruno winmail.dat- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] isCJK(), isBIDI() calls?
Hi all; Is there a call in Java to pass it a char and get back if that character is a CJK or BIDI character? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Must watch - Cubicle Wars - http://www.youtube.com/watch?v=8RBPvX9FadU - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Design reports in Word or Excel
We just added support for designing in Excel - details below: Windward Reports, the leader in enterprise report generation, has released the world's first enterprise reporting software that enables use of Excel as a design tool. The Windward Reports Server Engine is perfect for users creating both java reports and .net reports alike, and now allows users to design reports in both Microsoft Word and Microsoft Excel as well. Windward, a leader in with its design-in-Word reporting software because of its ease of use, now adds the advantages of Excel to its portfolio of simple-to-use, superior reporting products. Windward's new AutoTag 6.0 reporting software uniquely uses Excel to intelligently figure out sums and number formatting, and allows users to build a table which supports calculations. AutoTag 6.0 still outputs to Word, or any other output format, to produce reporting documents. Why is this Excel release so important? Simply put: Freedom. By creating an easy-to-use design tool which allows users to design their reports in Excel (in addition to word), Windward is freeing up thousands of IT man-hours normally allocated to report design, and including Excel business users in their 'power-to the people' philosophy. Now, non-technical business users who prefer Excel, can design their own reports and stay within their comfort zone while doing so. Windward Reports AutoTag for Excel doesn't just look like Excel, it IS Excel. How Does It Work? Begin with a worksheet. Using the AutoTag pull-down menu, select a data source such as an SQL database or XML file. (AutoTag works in conjunction with the Windward Reports Standard Server Engine, which gives your PC the ability to communicate with your organization's data sources, such as its SQL databases and XML files.) You use standard Excel commands to format and edit the report, and you assign tags to the data fields using the AutoTag pull-down menu. When finished, you save your template and, if you wish, verify that tags are correct with AutoTag's validate function. What makes this unique? With AutoTag for Excel, your number formatting always carries through - it doesn't matter if you output to RTF, PDF, or any other type. And, by using Excel templates you have a way to easily, and automatically generate reports that perform calculations on a collection of values! For instance, you might use Excel to sum all of the line-item amounts that are generated by an AutoTag. While AutoTag was always easy to use, this additional capability offers functions not available in a word-designed template, allowing the software to be used by more people, in more ways. When you generate the report Windward Reports merges this template with the data you have selected. The finished report, with all of your formatting, positioning and design, is available in minutes instead of hours or even days. Download a demo or check out a sample report at http://www.windwardreports.com. For more information on how you can use Excel or Word to design your reports, call 303-499-2544. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Anyone else notice the large decline in questions
I think the iText book has drastically reduced the volume of questions here. David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Feature suggestion
Note: - this code is from the iTextDotNet version so it is a bit out of date from the latest Java version. But the version of iText I have has this same issue. When you use the font Arial for example, it first looks for Arial and when that fails, it throws a DocumentException. It then looks for arial.ttf, finds that, and returns the font. On .NET at least the throw/catch of the exception was taking a lot of time - about 80% of the PDF generation time in the sample we were running. I changed it to the attached code and our PDF generation is now 5 times faster on .NET. The attachment is a zip file. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm tweaks.dave Description: tweaks.dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Second attempt - how should I get a font
Hi; When I write blocks of text using ColumnText.showTextAligned(). When calling this I need to pass it a new Phrase(someText, font) where font is a com.lowagie.text.Font. All of the text I get from parsing a rtf file. For each block of text I know the font name, family, and codepage as rtf has that set for each run of text. Generally all of the text is in the codepage such as a block that is hi there with codepage 1252 and font Arial. However, a block could be this is Chinese \u6FC9 and still be marked codepage 1252. If the font is Arial the glyph is in the font so everything needed is there to display that string. My questions is how best to create the Font I need for new Phrase(). At present my code is: // fontName is the name of the font - like Arial // internalName is the closest embedded Acrobat font like Helvitica // embed is true if the font should be embedded // codepage is the codepage of the text BaseFont getBaseFont(String fontName, String internalName, float size, boolean embed, int codepage) { Font font = FontFactory.getFont(fontName, BaseFont.IDENTITY_H, embed, size, 0); if ((font != null) (font.getBaseFont() == null)) return font.getBaseFont() font = FontFactory.getFont(fontname, codepage, embed, 24, 0); if ((font != null) (font.getBaseFont() != null)) font.getBaseFont() return FontFactory.getFont(internalName, codepage, BaseFont.NOT_EMBEDDED); } ... // Get BaseFont as that method is used in other places as we go Font-BaseFont-Font here BaseFont bf = getBaseFont(Arial, Helvetica, 12, true, 1252); Font fnt = new Font(bf, 12); Is the above the best way to get the fonts I need? The IDENTITY_H is causing me problems in the iTextDotNet version - but I need to use the same code in both Java and J#. I also would like to have embedding be an option. I also have to handle the case where the font could be something like Wingdings2 where there is no unicode value for the glyphs. In this case all characters have a value of 0x00 - 0xFF and the font has glyphs for that same range. In that case I presently or an 0x8000 to each char so they are then in the range if 0x8000 - 0x80ff which tells the font system to take the low byte and map it direct to the glyph. For this case how should I generate my font? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
Re: [iText-questions] Second attempt - how should I get a font
Hi; Thanks for the answer. I wouldn't say I don't trust the rtf codepage - it is correct for SBCS and DBCS characters. But rtf allows a \u1234 command and that is a unicode character. So you can have any character in a set from any codepage. The codepage is really just a way to translate the SBCS and DBCS chars. Two follow-on question please: 1) How would you do this? Would you stick with IDENTITY or would you scan each string and use the codepage if possible? 2) Why are INDENTITY fonts always embedded? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, April 12, 2007 10:55 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Second attempt - how should I get a font -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Thursday, April 12, 2007 4:44 PM To: itext Subject: [iText-questions] Second attempt - how should I get a font Hi; When I write blocks of text using ColumnText.showTextAligned(). When calling this I need to pass it a new Phrase(someText, font) where font is a com.lowagie.text.Font. All of the text I get from parsing a rtf file. For each block of text I know the font name, family, and codepage as rtf has that set for each run of text. Generally all of the text is in the codepage such as a block that is hi there with codepage 1252 and font Arial. However, a block could be this is Chinese \u6FC9 and still be marked codepage 1252. If the font is Arial the glyph is in the font so everything needed is there to display that string. In other words, don't believe in the rtf codepage. My questions is how best to create the Font I need for new Phrase(). At present my code is: // fontName is the name of the font - like Arial // internalName is the closest embedded Acrobat font like Helvitica // embed is true if the font should be embedded // codepage is the codepage of the text BaseFont getBaseFont(String fontName, String internalName, float size, boolean embed, int codepage) { Font font = FontFactory.getFont(fontName, BaseFont.IDENTITY_H, embed, size, 0); if ((font != null) (font.getBaseFont() == null)) return font.getBaseFont() font = FontFactory.getFont(fontname, codepage, embed, 24, 0); if ((font != null) (font.getBaseFont() != null)) font.getBaseFont() return FontFactory.getFont(internalName, codepage, BaseFont.NOT_EMBEDDED); } ... // Get BaseFont as that method is used in other places as we go Font-BaseFont-Font here BaseFont bf = getBaseFont(Arial, Helvetica, 12, true, 1252); Font fnt = new Font(bf, 12); Is the above the best way to get the fonts I need? The I don't know if that's the best way, it's a matter of choice. Identity-H will always work with TTF fonts and will access all the characters, on the other hand you could check all the text and find that cp1252 could be enough. Your choice. IDENTITY_H is causing me problems in the iTextDotNet version - but I need to use the same code in both Java and J#. I also You should talk with Kazuya Ujihara about that, not us. It works well in iText and iTextSharp. would like to have embedding be an option. Identity-H will always embedd. I also have to handle the case where the font could be something like Wingdings2 where there is no unicode value for the glyphs. In this case all characters have a value of 0x00 - 0xFF and the font has glyphs for that same range. In that case I presently or an 0x8000 to each char so they are then in the range if 0x8000 - 0x80ff which tells the font system to take the low byte and map it direct to the glyph. For this case how should I generate my font? cp1252 should work or better yet Identity-H. Paulo Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message
[iText-questions] How to set fonts, write text
Hi; I think I may be doing this wrong (or at least sub-optimally). I am converting Word documents to PDF and so I parse the rtf file converting every block of text to a String. The original rtf is composed mostly of ASCII text but documents can have DBCS, unicode, and literal byte values that map to a specific glyph in a font like Wingdings2. I convert everything to unicode, using the 0x80## value for the literal byte values. And this all works fine. But I noticed that when I write out a block of text using Arial for example, it executes code to handle CJK text and is using encoding/decoding for this. Which makes sense as there could be a CJK character in there - but there usually isn't. Under how I do this I also cannot embed fonts in the PDF as it is using IDENTITY mapping. What I do is (using Arial as an example - could be any font): Font font = FontFactory.getFont(Arial, BaseFont.IDENTITY_H, true, 24, 0); if ((font != null) (font.getBaseFont() == null)) font.getBaseFont() font = FontFactory.getFont(Arial, codepage, true, 24, 0); if ((font != null) (font.getBaseFont() != null)) font.getBaseFont() return FontFactory.getFont(internalName, codepage, BaseFont.NOT_EMBEDDED); And the second problem I have is that in iTextDotNet each time it needs to encode the text to a byte array, the code throws an exception trying to get an encoder. It catches it and then does create an encoder - but that's an exception per block of text and that burns up a lot of clock cycles. Any suggestions? thanks - dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
Re: [iText-questions] Rtf question about IText
Try www.windwardreports.com http://www.windwardreports.com/ - makes it trivial David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris O'Connell Sent: Wednesday, January 03, 2007 7:04 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Rtf question about IText I'm new to IText and I think it is a great tool. I wish I had discovered it 6 months ago before I started using Apache FOP to create PDF's. Ugh... Anyway, I now have to create a (what I thought was) a fairly simple report in word. I figured I could use IText to generate a .rtf file and stream it down to the browser with a content type of application/vnd.ms-word, causing the browser to pop open Word and my problems are solved... Well, I can't quite figure out how to lay out the information that I need to display. I'm close, but not quite there. I will simplify it, but this is essentially what I want to put on the report: 4 List Header 4.1 First List Item Header text here. more stuff. description of the first list item [table] {page break] 4.2 Second List Item Header text here. stuff and stuff. description of the second list item. [table] [page break] And just repeat that pattern for a while. The way I'm trying to do this is first create a Document and an RtfWriter2. Then, I create what I call the 'outerList' and then create a ListItem which is a Paragraph with the text List Header. Then add that item to the outerList. Then, I create another List, calling it innerList. I then add ListItems to the inner list. After I'm done adding the items to the innerList, I add the innerList to the outerList. Then, finally, add the outerList to the Document and close the Document. What happens is that first, I can't seem to get the {List Header} item to start with number 4. It always wants to start at number 1, despite calling setFirst(4). Next, I was hoping that the List Items would be numbered 4.1 and 4.2 etc. Instead, they just start out being numbered as 1, 2 etc. So, first, am I just way off base here? Am I trying to be too clever by using rtf to fake Word into displaying a Word doc? Second, it is possible to do what I want to do, which is have all that arbitrary content show up in between the list items? I haven't seen any examples of that, and no matter how I play around with things the items from 2 on down are no longer list items. They show up in my word document numbered correctly, but Word doesn't think they are list items, instead it just thinks that it is some text on a line that happens to start with the character 2, 3 etc. Any help you could give would be greatly appreciated. I've been playing around with this for a couple days and I'm starting to get bug-eyed and now I think that I am so surrounded by my confusion that I just need a push in the right direction from an outside source Thanks, Chris image001.gif Description: image001.gif - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Merry Christmas all
- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Amazon delivered a present today
I haven't read it yet but a quick look at the iText book - WOW David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] iText and JavaME
Hi; Will iText run under JavaME? Any limitations? thanks - dave- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] very weird background color on 1 printer
Hi; One of our customers gets this problem and has only tried 1 printer so far. They emailed us the PDF with the problem and it prints fine on all of our printers. The problem is that we draw a background, both for a rectangle under the text and as the background color for the text. On this one printer it draws very fine lines around each chunk of text and has fine linse across the page between lines of text. And no background except for the lines. The lines also gently fade in and out as they go across the page. Has anyone ever seen this before? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] very weird background color on 1 printer
Sure http://www.windward.net/PrintProblem.zip - it has the bad PDFs and a bitmap which is a scanned image of the printed PDF. I think both PDFs are a problem the customer is in Australia and so I asked to confirm that both were a problem but wont get an answer until tomorrow. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Ensley Sent: Tuesday, August 29, 2006 10:34 AM To: 'Post all your questions about iText here' Subject: Re: [iText-questions] very weird background color on 1 printer Are you able to post the PDF? -Bill Ensley Bear Printing From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Tuesday, August 29, 2006 9:20 AM To: itext Subject: [iText-questions] very weird background color on 1 printer Hi; One of our customers gets this problem and has only tried 1 printer so far. They emailed us the PDF with the problem and it prints fine on all of our printers. The problem is that we draw a background, both for a rectangle under the text and as the background color for the text. On this one printer it draws very fine lines around each chunk of text and has fine linse across the page between lines of text. And no background except for the lines. The lines also gently fade in and out as they go across the page. Has anyone ever seen this before? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] very weird background color on 1 printer
Thats my guess too. But I figured it never hurts to ask in case someone else has seen this and had a work-around. Its a Brother printer and their drivers generally are bad. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Ensley Sent: Tuesday, August 29, 2006 11:39 AM To: 'Post all your questions about iText here' Subject: Re: [iText-questions] very weird background color on 1 printer Do you have any specs on the printer causing the error? I too have no problems getting this document to print correctly. I think your PDF is fine. It seems that the printer is re-interpreting the data and doing something else with it. Bad print driver perhaps? -Bill Ensley Bear Printing From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Tuesday, August 29, 2006 9:48 AM To: Post all your questions about iText here Subject: Re: [iText-questions] very weird background color on 1 printer Sure http://www.windward.net/PrintProblem.zip - it has the bad PDFs and a bitmap which is a scanned image of the printed PDF. I think both PDFs are a problem the customer is in Australia and so I asked to confirm that both were a problem but wont get an answer until tomorrow. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Ensley Sent: Tuesday, August 29, 2006 10:34 AM To: 'Post all your questions about iText here' Subject: Re: [iText-questions] very weird background color on 1 printer Are you able to post the PDF? -Bill Ensley Bear Printing From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Tuesday, August 29, 2006 9:20 AM To: itext Subject: [iText-questions] very weird background color on 1 printer Hi; One of our customers gets this problem and has only tried 1 printer so far. They emailed us the PDF with the problem and it prints fine on all of our printers. The problem is that we draw a background, both for a rectangle under the text and as the background color for the text. On this one printer it draws very fine lines around each chunk of text and has fine linse across the page between lines of text. And no background except for the lines. The lines also gently fade in and out as they go across the page. Has anyone ever seen this before? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 Cubicle Wars - http://www.windwardreports.com/film.htm - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Very funny programmer video
I couldn't stop laughing in a couple of parts http://www.windwardreports.com/film.htm - dave David Thielen www.windwardreports.com 303-499-2544 x1185 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Wants a CD in the drive sometimes
Is there a way in Java to tell if a drive is removable? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, July 20, 2006 4:22 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Wants a CD in the drive sometimes - Original Message - From: David Thielen [EMAIL PROTECTED] To: itext itext-questions@lists.sourceforge.net Sent: Thursday, July 20, 2006 9:53 PM Subject: [iText-questions] Wants a CD in the drive sometimes Hi; When I call registerDirectories() and I am running a command line unit test - java prompts me with trying to read drive D: and gives me a continue/cancel/retry choice. I am pretty sure this is coming from registerDirectories where it checks to see if the file/directory d:\windows\fonts exists. Any idea how to handle this? Call registerDirectory() just for your directories. Paulo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Wants a CD in the drive sometimes
Hi; When I call registerDirectories() and I am running a command line unit test - java prompts me with trying to read drive D: and gives me a continue/cancel/retry choice. I am pretty sure this is coming from registerDirectories where it checks to see if the file/directory d:\windows\fonts exists. Any idea how to handle this? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] IText doesn't seem to be thread safe?
We run 20 threads at once as part of our unit test with no problems. My guess is that somehow it is using the same Document object in each thread (whihc is wrong). thanks - dave David Thielen www.windwardreports.com 303-499-2544 x1185 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter WilkinsonSent: Wednesday, July 19, 2006 9:36 PMTo: itext-questions@lists.sourceforge.netSubject: [iText-questions] IText doesn't seem to be thread safe? I've written a jsp page that produces a PDF using iText and it work great until 2 people try and run the report at the same time. I get a variety of errors including DocumentException : Document is closed. ConcurrentModficationException NullPointerException as well as pdf's that are corrupt. I haven't declared a single thing on the page as being static. All the exceptions are generated when trying to call a Document method so I'm wondering if maybe the document object isn't thread safe? This is my document creation code. document = new Document(PageSize.A4.rotate()); baseFont = BaseFont.createFont("Helvetica", BaseFont.WINANSI, false);font = new Font(baseFont, defaultFontSize);totalFont = new Font(baseFont, 9);totalFont.setStyle(Font.BOLD);heading1Font = new Font(baseFont, 20, Font.BOLDITALIC, new Color(0, 0, 0));heading2Font = new Font(baseFont, 17, Font.BOLDITALIC, new Color(0, 0, 0));heading3Font = new Font(baseFont, 14, Font.BOLDITALIC, new Color(0, 0, 0));defaultLayoutCell = new Cell();defaultLayoutCell.setBorder(Rectangle.NO_BORDER); ByteArrayOutputStream baos = new ByteArrayOutputStream();writer = PdfWriter.getInstance(document, baos);//writer.setEncryption(false, "", "", PdfWriter.AllowCopy | PdfWriter.AllowPrinting); PageEventHandler pageEventHandler = new PageEventHandler(); writer.setPageEvent(pageEventHandler);writer.setViewerPreferences(PdfWriter.PageModeUseOutlines); // step 3: we open the documentdocument.open(); Regards Peter Wilkinson System Developer Mantel Solutions Pty Ltd PO Box 98, 35 Hamilton Road Moorooka QLD 4105 P: +61 7 3848 0001 F: +61 7 3392 9923 W:www.mantel.com.au The information contained in this electronic message (e-mail) and any files transmitted with it, is intended for the named recipients only. It may contain privileged and or confidential information and if you are not the intended recipient you must not copy distribute or take any action in reliance on it. If you have received this electronic message (e-mail) and any files transmitted with it in error please delete immediately and advise Mantel Solutions on 07 3848 0001. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] 'iText in Action' on Manning's 'Coming Soon' list
Finally David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bruno Sent: Thursday, June 29, 2006 3:17 AM To: 'itext-questions@lists.sourceforge.net' Subject: [iText-questions] 'iText in Action' on Manning's 'Coming Soon' list See http://www.manning.com/lowagie/ for more info! Note that the page count isn't entirely correct. The book will have about 600 pages. br, Bruno Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Running on a cluster - all on 1 machine
Hi; We have a customer that is running iText on a cluster but the cluster is all on one physical machine (no idea why). On one of the clusters they get: [6/16/06 9:32:19:785 CEST] 039e ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method generateReport on bean BeanId(idjreportug#idjreportugEJB.jar#es.bcn.idj.reportug.ejb.IdjReportUg, null). Exception data: java.lang.VerifyError: (class: com/lowagie/text/pdf/PdfReader, method: FlateDecode signature: ([BZ)[B) Accessing value from uninitialized localvariable 8 at com.lowagie.text.pdf.PdfResources.add(Unknown Source) at com.lowagie.text.pdf.PageResources.getResources(Unknown Source) at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source) at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at com.lowagie.text.Document.close(Unknown Source) Any ideas? Thanks - dave David Thielen www.windwardreports.com http://www.windwardreports.com/ 303-499-2544 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Word wrap on slash would be nice
So you would like 1/2 to be 1/ 2? - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Jay Gould Sent: Thursday, June 15, 2006 9:48 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Word wrap on slash would be nice Word wrapping occurs on spaces and dashes, but it would be nice to also wrap on slashes. Is this settable anywhere? ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Need linux/itext consultant for 4 - 8 hours of work
Hi; I need someone who can write up a knowledgebase article for us on each of the following topics: 1. Installing Windward Reports on Linux (should be trivial). 2. Adding fonts to Linux - where to buy them, how to install them, how to test that they are installed correctly. 3. Running Windward Reports in headless mode. The optimum way to do this is to write up how to do it and have a video of the actions being done. If that is not easily done, lots of screenshots in the article showing each step. If you are interested available, please email me. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Need phrase in Arabic, any Baltic, any Central European, Thai, Turkish
Hi; If anyone can do this please, could you give me the phrase Windward Reports can process *** replacing *** with your language in: Turkish Thai Arabic Any baltic alpahbet Any central european alphabet This will go on http://www.windwardreports.com/languages.htm http://www.windwardreports.com/languages.htm thanks - dave ps - I tried one of the translation programs but for Japanese it translated as Windward Reports can process Japanese people - not exactly what we are looking for g. thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] iTextDotNet - getResourceStream(RESOURCE_PATH + cjkfonts.properties); problem sometimes
Hi; I have a problem where sometimes (usually it works fine) the line: InputStream is = getResourceStream(RESOURCE_PATH + cjkfonts.properties); In com.lowagie.text.pdf.CJKFont returns null when called. The call to is.close() then throws an exception as is is null. Any idea why this sometimes does not work? This is uncer .NET 2.0 and uses the version for .NET 2.0 only. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Is there a problem with the list, or is it just me?
Its George Bushs fault g. David Thielen www.windwardreports.com 303-499-2544 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Ensley Sent: Friday, March 31, 2006 3:51 PM To: iText Mail Group Subject: [iText-questions] Is there a problem with the list, or is it just me? HelloAll, I am not receiving any iText list mails today, anyone else having a problem??? If anyone has any info, please email me directly as I am not getting the iText ones. Sincerely, Bill Ensley Phone: 503.244.4738 Fax: 503.244.5235 P.S. If you aren't able to open the photo proof, you may not have Adobe Acrobat Reader. You can download it for free from: http://www.adobe.com/products/acrobat/readstep2.html
RE: [iText-questions] Re: iText in Action
And if you're going to buy, offer to pre-order. This book would be a big help to anyone using iText David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Saturday, March 04, 2006 3:25 AM To: 'itext-questions@lists.sourceforge.net' Subject: [iText-questions] Re: iText in Action bruno wrote: I got a contract with five milestones. - Chapter 1 (4 reviewers) - 1/3 of the book (15 reviewers) - 2/3 of the book (10 reviewers) - 3/3 of the book (?) - production version I have now reached the fourth milestone. I am expecting a GO or a NO GO tonight. Or maybe a 'GO, on condition that...'. I didn't get a GO; I didn't get a NO GO. I didn't get a 'GO, on condition that...' The publisher is undecided. We had a three hour phone call, but it comes to this: the manuscript is good, but there are some doubts if the book will sell well enough... I won't discuss further details on this list (nor anywhere else for the moment), please do not start a discussion here, instead I would like to invite you to post a message on this blog page: http://jroller.com/page/blowagie I'm not asking for a complete list of arguments, just post YES or NO, and add your first name, your function (Java developer, .NET developer,...) and your country/state. This last piece of information is very important, because if we continue with the 3/3 review the publisher wants to have a better geographical distribution of the reviewers. I remember turning down quite some people who asked me to review the book. This was because the publisher told me he had enough people to review the book. Now the list of reviewers is open again ;-) Thanks, Bruno --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] iText is the exception to the rule
Have you every perused the projects in sourceforge? I think it is possible that the majority of ones over a year old (to give them time to complete) are abandoned without ever working. And most of the rest no one will touch. Yes the apache/jakarta stuff is good. I put tomcat up there with itext as two very well designed and written programs. (JUnit too, and given time I could list 5 - 10 more.) But even from your list I would say some, while definitely not crap, is not best of breed. I pay for IntelliJ instead of using Eclipse because I tried Eclipse and found it far inferior to IntelliJ. And CVS while good at what it does, is a pretty basic system. My point with itext (and tomcat) is I think they are arguably the best solution for what they do. Not the best open source, or the best in some situations, but basically the best solution period. Anyways, my point was not to talk down other open source (I didn't think anyone would disagree with that) but to talk up itext - I think it is very well designed and implemented and just wanted to say that to those who worked on it. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Richard Braman [mailto:[EMAIL PROTECTED] Sent: Saturday, February 25, 2006 12:24 AM To: 'David Thielen' Cc: itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] iText is the exception to the rule most open source software is utter crap - which is unfortunately true. This may well be the most rediculous thing I have ever seen written. Did you really just say that dude? What about Linux, Apache, Open Office, Eclipse, CVS, the list could go on for miles? Whoever wrote that article must have thought Windows was already open source ; Not Yet. I think iText is possibly the best open source software out there. OK, Don't think too hard. It is scaring me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Friday, February 24, 2006 4:55 PM To: itext Subject: [iText-questions] iText is the exception to the rule There was an article awhile ago about how most open source software is utter crap - which is unfortunately true. I just added PDF copy to my code and it was unbelievably easy. I think iText is possibly the best open source software out there when measured by how well it is architected, designed, written, and documented. Once again to Bruno, Paulo, etc - thank you David Thielen www.windwardreports.com 303-499-2544 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] How to tell if imported page is landscape
Hi; I am using writer.getImportedPage() and contentByte.addTemplate(page, 0, 0) to add pages from an existing pdf in the middle of the pdf I am generating. I have one problem. If the pdf I am inserting was created in landscape mode, it shows up rotated. I check the size of the imported pdf pages, but they show 8-1/2x11 so it appears to look like it is in portrait mode. I assume the file I am importing is rotated. But I can't find any method that tells me if that is the case. How do I tell if the page is rotated and then how do I insert it in my non-rotated output pdf? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] iText is the exception to the rule
There was an article awhile ago about how most open source software is utter crap - which is unfortunately true. I just added PDF copy to my code and it was unbelievably easy. I think iText is possibly the best open source software out there when measured by how well it is architected, designed, written, and documented. Once again to Bruno, Paulo, etc - thank you David Thielen www.windwardreports.com 303-499-2544 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] WMF, SVG, iText
Hi; A couple of questions. 1. Can svg images be placed in iText? 2. For wmf (and svg if supported), is it converted to a bitmap or does it remain a set of vectors (and is therefore infinitely zoomable)? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] WMF, SVG, iText
Hi; I was afraid it required Batik - we run on .NET too (iTextDotNet is fantastic) and I have a bad feeling that Batik would be a mess to convert. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Bill Ensley [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 3:00 PM To: 'David Thielen'; iText Mail Group Subject: RE: [iText-questions] WMF, SVG, iText 1) Yes, SVG can be placed into iText in a roundabout way. The Apache Batik project is fully compliant with the current SVG spec. What you do is load the SVG using Batik and then paint it into a PdfGraphics2D Object. I am working on a wrapper that will let and SVG file be used as simply and Image in iText, but not Done yet. I believe if you search the iText mail archives, there is a rather large example. 2) Yes, WMF files keep their vector information. Actually, it is one of the Best WMF parsers I have seen, I actually reused some of it to parse WMF's into Another format. -Bill Ensley Bear Printing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Thielen Sent: Thursday, February 09, 2006 1:04 PM To: itext Subject: [iText-questions] WMF, SVG, iText Hi; A couple of questions. 1. Can svg images be placed in iText? 2. For wmf (and svg if supported), is it converted to a bitmap or does it remain a set of vectors (and is therefore infinitely zoomable)? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions