[iText-questions] mixed A3/A3 Pdf documents
Hi, I'm using iText to generate Pdf documents from a java program. These documents have only one image per page. The images are stored in jpg files in the HD after they were scanned from an acquisition device. The format of the paper scanner can be A4 (or less) or A3, so I need to generate Pdf documents that have some pages in A4 format and some pages in A3 format, also alternated. I have two Vector: one for the path+filename of the image files and one for the format of each image of the files. I tried to do like this: com.lowagie.text.Document document = new com.lowagie.text.Document(); File filePDF = new File(pathAndFilename); FileOutputStream fos = new FileOutputStream(filePDF); PdfWriter pdfWriter = PdfWriter.getInstance(document, fos); document.open(); for (int i=0; iimages.size(); i++) { byte[] imageByte = jpegEncoder.jpegToByte(images.elementAt(i)); com.lowagie.text.Image image = com.lowagie.text.Image.getInstance(imageByte); if (imageFormat(i).equals(A4)) { image.scaleToFit(PageSize.A4.width(), PageSize.A4.height()); document.setPageSize(PageSize.A4); } else { image.scaleToFit(PageSize.A3.width(), PageSize.A3.height()); document.setPageSize(PageSize.A3); } image.setAlignment(com.lowagie.text.Image.TOP); document.add(image); } document.close(); In fact, if I run this, the Pdf file is generated but the page sizes are always fixed to the first page size, although the image sizes are properly scaled to the right format. If I try to add a document.newPage() after each format-change passage, the dimensions are setted correctly but an empty page is added between the groups of pages in the same format. Any ideas? Thanks a lot Giacomo --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] language support question
Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din
RE: [iText-questions] language support question
Arabic text will only work in ColumnText and PdfPTable. Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ayman Nour El DinSent: Wednesday, September 15, 2004 7:25 AMTo: [EMAIL PROTECTED]Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din
RE: [iText-questions] language support question
Dear Ayman Please clarify how you write arabic pdf . thank you -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: 15/09/2004 09:24 To: [EMAIL PROTECTED] Cc: Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din NHS^X'u-zh yYB$ Dp5CjQj`+u,)zIr.z.(ZW{4]ybrI%];M]6mzh{j-x%bMm*'X(~zwilqzlX){j-
RE: [iText-questions] mixed A3/A3 Pdf documents
That won't work. You are making the image the same size as the page without taking into account the margins. If you want both to be the same size: boolean open = false; for (int i=0; iimages.size(); i++) { byte[] imageByte = jpegEncoder.jpegToByte(images.elementAt(i)); com.lowagie.text.Image image = com.lowagie.text.Image.getInstance(imageByte); if (imageFormat(i).equals(A4)) { image.scaleToFit(PageSize.A4.width(), PageSize.A4.height()); document.setPageSize(PageSize.A4); } else { image.scaleToFit(PageSize.A3.width(), PageSize.A3.height()); document.setPageSize(PageSize.A3); } if (!open) { document.open(); open = true; } image.setAbsolutePosition(0, 0); document.add(image); } document.close(); Best Regards, Paulo Soares -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giacomo Galletto Sent: Wednesday, September 15, 2004 7:55 AM To: [EMAIL PROTECTED] Subject: [iText-questions] mixed A3/A3 Pdf documents Hi, I'm using iText to generate Pdf documents from a java program. These documents have only one image per page. The images are stored in jpg files in the HD after they were scanned from an acquisition device. The format of the paper scanner can be A4 (or less) or A3, so I need to generate Pdf documents that have some pages in A4 format and some pages in A3 format, also alternated. I have two Vector: one for the path+filename of the image files and one for the format of each image of the files. I tried to do like this: com.lowagie.text.Document document = new com.lowagie.text.Document(); File filePDF = new File(pathAndFilename); FileOutputStream fos = new FileOutputStream(filePDF); PdfWriter pdfWriter = PdfWriter.getInstance(document, fos); document.open(); for (int i=0; iimages.size(); i++) { byte[] imageByte = jpegEncoder.jpegToByte(images.elementAt(i)); com.lowagie.text.Image image = com.lowagie.text.Image.getInstance(imageByte); if (imageFormat(i).equals(A4)) { image.scaleToFit(PageSize.A4.width(), PageSize.A4.height()); document.setPageSize(PageSize.A4); } else { image.scaleToFit(PageSize.A3.width(), PageSize.A3.height()); document.setPageSize(PageSize.A3); } image.setAlignment(com.lowagie.text.Image.TOP); document.add(image); } document.close(); In fact, if I run this, the Pdf file is generated but the page sizes are always fixed to the first page size, although the image sizes are properly scaled to the right format. If I try to add a document.newPage() after each format-change passage, the dimensions are setted correctly but an empty page is added between the groups of pages in the same format. Any ideas? Thanks a lot Giacomo --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] language support question
See the example arabic_hebrew.java at itextpdf.sf.net. Best Regards, Paulo Soares -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohamed Ramadan Sent: Wednesday, September 15, 2004 9:46 AM To: Ayman Nour El Din; [EMAIL PROTECTED] Subject: RE: [iText-questions] language support question Dear Ayman Please clarify how you write arabic pdf . thank you -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: 15/09/2004 09:24 To: [EMAIL PROTECTED] Cc: Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din NHS^X'u-zh yYB$ Dp5CjQj`+u,)zIr.z.(ZW{4]ybrI%];M]6mzh{j-x%bMm*' X(~zwilq zlX){j-
[iText-questions] Automatic Page Break support
We are using iText for generating the PDF. When the content is more than a page around (8000 characters), it is overflowing and not putting automatically page breaks. Does iText support automatic page breaks? Thanks Satya __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] language support question
Yes, if your input is not ligaturized, you need to ligaturize it. iText has a class called ArabicLigaturizer. Take a look at its source code. Youssef Eldakar Bibliotheca Alexandrina -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: Wed 9/15/2004 1:41 PM To: Youssef Eldakar Cc: Subject: RE: [iText-questions] language support question Hello, I have read your email and tried the example you provided. And it worked just fine. The problem is that the data I want to put inside the PDF is fetched from a datasource ( database, property files,...)...and it just appears as in plain, not ligaturized. Any ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: September 15, 2004 11:55 AM To: Ayman Nour El Din; [EMAIL PROTECTED] Subject: RE: [iText-questions] language support question If interested in a bit of details, take a look at the report attached to this posting: http://article.gmane.org/gmane.comp.java.lib.itext.general/11270 Youssef Eldakar Bibliotheca Alexandrina -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: Wed 9/15/2004 9:24 AM To: [EMAIL PROTECTED] Cc: Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din
[iText-questions] Illegal operation 'm' inside a text object with itext 0.91 Ac robat Reader 5 or 6
Title: Illegal operation 'm' inside a text object with itext 0.91 Acrobat Reader 5 or 6 Hi, I have the following error message when i try to view generated pdf : Illegal operation 'm' inside a text object Despite of the error message, the document appears but it's impossible to print it. It occurs only with using Acrobat Reader 5 or 6, not with Acrobat Reader 4. I'm using the 0.91 version. Do the latest one solves the problem ? Thierry
RE: [iText-questions] language support question
There's no need to complicate. iText receives the characters in the Arabic form and transforms it in the presentation form with all the ligatures, reordering, number conversion (if asked too). You must use ColumnText or PdfPTable for that to work and set the direction to RTL. See the example I previously mentioned. Best Regards, Paulo Soares -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Youssef Eldakar Sent: Wednesday, September 15, 2004 11:59 AM To: Ayman Nour El Din; [EMAIL PROTECTED] Subject: RE: [iText-questions] language support question Yes, if your input is not ligaturized, you need to ligaturize it. iText has a class called ArabicLigaturizer. Take a look at its source code. Youssef Eldakar Bibliotheca Alexandrina -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: Wed 9/15/2004 1:41 PM To: Youssef Eldakar Cc: Subject: RE: [iText-questions] language support question Hello, I have read your email and tried the example you provided. And it worked just fine. The problem is that the data I want to put inside the PDF is fetched from a datasource ( database, property files,...)...and it just appears as in plain, not ligaturized. Any ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: September 15, 2004 11:55 AM To: Ayman Nour El Din; [EMAIL PROTECTED] Subject: RE: [iText-questions] language support question If interested in a bit of details, take a look at the report attached to this posting: http://article.gmane.org/gmane.comp.java.lib.itext.general/11270 Youssef Eldakar Bibliotheca Alexandrina -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: Wed 9/15/2004 9:24 AM To: [EMAIL PROTECTED] Cc: Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din NHSXuz yY Dp5jQj`u,)zI.z(W{4yrI]M]mh{xM*X~zwq zX){
RE: [iText-questions] language support question
Dear Ayman Al slam 3lykom you may make some changes to your code BaseFont.createFont(c:\\winnt\\fonts\\arialuni.ttf,BaseFont.WINANSI,BaseFont.EMBEDDED); this not for unicode fonts so you must use BaseFont.createFont(c:\\windows\\fonts\\arialuni.ttf,BaseFont.IDENTITY_H,BaseFont.EMBEDDED); As IDENTITY_H is used for Unicode fonts. second point you miss in your code to use the basefont when you create the paragraph Paragraph pr = new Paragraph(Begin+\u0641\u0627\u062a\u0648\u0631\u0629+End); use i like that Paragraph pr2 = new Paragraph(\u0641\u0627\u062a\u0648\u0631\u0629,new Font(b)); At last if you fix this errors you will face a big problem as the direction of the text is not right to left ( as Arabic need) , to solve this problem use ColumnText and PdfPTable . See the example arabic_hebrew.java at itextpdf.sf.net its good example Dont hesitate to ask any questions Thank you Mohamed Ramadan Bibliotheca Alexandrina -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: 15/09/2004 12:04 To: Mohamed Ramadan Cc: Subject: RE: [iText-questions] language support question Hello, I'm very happy to get a response Here is a code snippet Document doc = new Document(PageSize.A4.rotate()); PdfWriter.getInstance(doc,new FileOutputStream(c:\\chap01.pdf)); HtmlWriter.getInstance(doc, System.out); doc.open(); BaseFont b = BaseFont.createFont(c:\\winnt\\fonts\\arialuni.ttf,BaseFont.WINANSI, BaseFont.EMBEDDED); Paragraph pr = new Paragraph(Begin+\u0641\u0627\u062a\u0648\u0631\u0629+End); doc.add(pr); doc.close(); the above code generates a pdf file, and html text printed on the outputstream that looks just fine when copied into an html file, with arabic showing alright. But the pdf file has no Arabic in it!the text that shows just shows like that ..BeginEnd as if there was nothing at all in between. Do you have any idea? Thank you so much for your email. Waiting for your reply. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: September 15, 2004 11:46 AM To: Ayman Nour El Din; [EMAIL PROTECTED] Subject: RE: [iText-questions] language support question Dear Ayman Please clarify how you write arabic pdf . thank you -Original Message- From: Ayman Nour El Din [mailto:[EMAIL PROTECTED] Sent: 15/09/2004 09:24 To: [EMAIL PROTECTED] Cc: Subject: [iText-questions] language support question Hello, I have a question about your iText. Can you think of any reason why Arabic text is not showing in the generated pdf while it is showing in the test Html file? Please help Thank you so much Ayman Nour El Din NHS^X'u-zh yYB$ Dp5CjQj`+u,)zIr.z.(ZW{4]ybrI%];M]6mzh{j-x%bMm*'X(~zwilqzlX){j-
RE: [iText-questions] PdfCopyFields problem?
Title: PdfCopyFields problem? It seems to expand the field itself. I managed to get the text resize to work but I think resizing the field is more desirable to my client. Is this done through the setFieldProperties method as well? I appreciate your helping me on this. -Original Message-From: Paulo Soares [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 14, 2004 6:27 PMTo: Malloy, James; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Is the field enlarged or the font size is smaller? Either way is easy to do,just change the annot rect size or the font size property in AcroFields ( a fontsize of 0 is auto-size). Best Regards, Paulo Soares From: Malloy, James [mailto:[EMAIL PROTECTED]Sent: Tue 14-Sep-04 20:38To: Paulo Soares; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Paulo, I now do not believe the problem is IText. We were comparing the output of IText to that of FdfMerge and noticed that FdfMerge handles multiline fields differently than Itext. With FdfMerge if the text within a multiline field exceeds the fields length the field is enlarged to fit the text. Does Itext have this capability. Where should I start if I want to code this capability into IText? - Jim -Original Message-From: Paulo Soares [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 14, 2004 9:38 AMTo: Malloy, James; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Send me the pdf and a simple program that I can run here with the problem. Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Malloy, JamesSent: Tuesday, September 14, 2004 1:33 PMTo: [EMAIL PROTECTED]Subject: [iText-questions] PdfCopyFields problem? I am having a problem when applying data into an existing pdf form field that has the "multi-line" property set on it. Itext does not seem to handle the multiline - It truncates after one line. If I do a straight fdfmerge to the form it does do the multiline. Am I not doing something or doing something wrong? I have attached the source for my class. ItextProcess.java Jim Malloy Enterprise Application Services Pager: (413) 730-9705 X43950 -This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. -
RE: [iText-questions] PdfCopyFields problem?
Title: PdfCopyFields problem? From: Malloy, James [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 1:24 PMTo: Paulo Soares; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? It seems to expand the field itself. That's not great news for the objects below the field. I managed to get the text resize to work but I think resizing the field is more desirable to my client. Is this done through the setFieldProperties method as well? No. It's done with AcroFields.getFieldItem(). Look for the /Rect key in merged. Do whatever size changes you want and write a new /Rect in merged and widgets. Best Regards, Paulo Soares I appreciate your helping me on this. -Original Message-From: Paulo Soares [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 14, 2004 6:27 PMTo: Malloy, James; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Is the field enlarged or the font size is smaller? Either way is easy to do,just change the annot rect size or the font size property in AcroFields ( a fontsize of 0 is auto-size). Best Regards, Paulo Soares From: Malloy, James [mailto:[EMAIL PROTECTED]Sent: Tue 14-Sep-04 20:38To: Paulo Soares; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Paulo, I now do not believe the problem is IText. We were comparing the output of IText to that of FdfMerge and noticed that FdfMerge handles multiline fields differently than Itext. With FdfMerge if the text within a multiline field exceeds the fields length the field is enlarged to fit the text. Does Itext have this capability. Where should I start if I want to code this capability into IText? - Jim -Original Message-From: Paulo Soares [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 14, 2004 9:38 AMTo: Malloy, James; [EMAIL PROTECTED]Subject: RE: [iText-questions] PdfCopyFields problem? Send me the pdf and a simple program that I can run here with the problem. Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Malloy, JamesSent: Tuesday, September 14, 2004 1:33 PMTo: [EMAIL PROTECTED]Subject: [iText-questions] PdfCopyFields problem? I am having a problem when applying data into an existing pdf form field that has the "multi-line" property set on it. Itext does not seem to handle the multiline - It truncates after one line. If I do a straight fdfmerge to the form it does do the multiline. Am I not doing something or doing something wrong? I have attached the source for my class. ItextProcess.java Jim Malloy Enterprise Application Services Pager: (413) 730-9705 X43950 -This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. -
RE: [iText-questions] Illegal operation 'm' inside a text object with itext 0.91 Ac robat Reader 5 or 6
Title: "Illegal operation 'm' inside a text object" with itext 0.91 & Acrobat Reader 5 or 6 That's a bug in your program. Recent Acrobat versions catch more bugs. You have a move() inside your beginText()/endText(). You can try with the latest version but I doubt that the problem will go away. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PLOYAERT Thierry (WYNIWYG)Sent: Wednesday, September 15, 2004 10:55 AMTo: '[EMAIL PROTECTED]'Cc: PUPIN FrédéricSubject: [iText-questions] "Illegal operation 'm' inside a text object" with itext 0.91 Ac robat Reader 5 or 6 Hi, I have the following error message when i try to view generated pdf : Illegal operation 'm' inside a text object Despite of the error message, the document appears but it's impossible to print it. It occurs only with using Acrobat Reader 5 or 6, not with Acrobat Reader 4. I'm using the 0.91 version. Do the latest one solves the problem ? Thierry
[iText-questions] Insufficient data for an image after using split_pdf
Acrobat Reader gives Insufficient data for an image when attempting to display a file generated using split_pdf (in tools). The source PDF document, which contains a set of TIFF Images, displays without error. Examining the PDF files themselves, the original file has the first image as : obj /Type /XObject /Subtype /Image /Name /Im1 /Filter [ /CCITTFaxDecode ] /Width 7016 /Height 4960 /BitsPerComponent 1 /ColorSpace /DeviceGray /Length 2 0 R /DecodeParms [ /K 0 /Columns 7016 /Rows 4960 /EncodedByteAlign true /EndOfBlock false ] stream _ð__ _ð__ And a file output1.pdf resulting from split_pdf file1.pdf output1.pdf output2.pdf 2 has : obj /Type /XObject /Filter [/CCITTFaxDecode] /Length 376354 /Height 4960 /BitsPerComponent 1 /ColorSpace /DeviceGray /DecodeParms [/Columns 7016 /K 0 /EncodedByteAlign true /Rows 4960 /EndOfBlock false ] /Subtype /Image /Name /Im1 /Width 7016 stream _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ Any clues? Thanks Neil Pitman Aquaforest http://www.aquaforest.com
RE: [iText-questions] Insufficient data for an image after using split_pdf
You may have a corrupt original that Acrobat can fix. Did you try with the version at itextpdf.sf.net? If it still doesn't work send me the pdf. Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Pitman (Aquaforest)Sent: Wednesday, September 15, 2004 5:42 PMTo: [EMAIL PROTECTED]Subject: [iText-questions] Insufficient data for an image after using split_pdf Acrobat Reader gives Insufficient data for an image when attempting to display a file generated using split_pdf (in tools). The source PDF document, which contains a set of TIFF Images, displays without error. Examining the PDF files themselves, the original file has the first image as : obj /Type /XObject /Subtype /Image /Name /Im1 /Filter [ /CCITTFaxDecode ] /Width 7016 /Height 4960 /BitsPerComponent 1 /ColorSpace /DeviceGray /Length 2 0 R /DecodeParms [ /K 0 /Columns 7016 /Rows 4960 /EncodedByteAlign true /EndOfBlock false ] stream _ð__ _ð__ And a file output1.pdf resulting from split_pdf file1.pdf output1.pdf output2.pdf 2 has : obj /Type /XObject /Filter [/CCITTFaxDecode] /Length 376354 /Height 4960 /BitsPerComponent 1 /ColorSpace /DeviceGray /DecodeParms [/Columns 7016 /K 0 /EncodedByteAlign true /Rows 4960 /EndOfBlock false ] /Subtype /Image /Name /Im1 /Width 7016 stream _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ _ð__ Any clues? Thanks Neil Pitman Aquaforest http://www.aquaforest.com
[iText-questions] XML support in iText-paulo versions
Will the XML support be added to the itext-paulo experimental version eventually or has it been intentionally (and permanently) removed? --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] XML support in iText-paulo versions
Title: [iText-questions] XML support in iText-paulo versions There's nothing to add or remove. The XML part is in separate jars that you can still use in itext-paulo. Best Regards, Paulo Soares From: [EMAIL PROTECTED] on behalf of Steve ApplingSent: Wed 15-Sep-04 22:12To: [EMAIL PROTECTED]Subject: [iText-questions] XML support in iText-paulo versions Will the XML support be added to the itext-paulo experimental versioneventually or has it been intentionally (and permanently) removed?---This SF.Net email is sponsored by: thawte's Crypto Challenge VlCrack the code and win a Sony DCRHC40 MiniDV Digital HandycamCamcorder. More prizes in the weekly Lunch Hour Challenge.Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m___iText-questions mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Re: html to pdf
Hello Meghal, My team has actually decided to take a slightly different route from attempting to convert the HTML to PDF. We are generating the files that we needed to convert directly, using XML files as templates. Nonetheless, I think I can give you some advice. The doc.resetPageCount() simply sets the page count to zero. It may, or may not help you. Give it a try. Adding support for the br / tag should be fairly easy. All you need to do is modify the SAXmyHtmlHandler class to treat the br / tag just like the SAXiTextHandler class handles the newline / tag. In fact, since SAXiTextHandler is a parent of the SAXmyHtmlHander class, you can get away with adding the following snippet of code to the SAXMyHtmlHandler.startElement method: if(name.equals(br)) { super.startElement(uri, lname, newline, attrs); return; } Please note that I haven't tested the above code. Let me know if it works. What exactly is the problem that you are having with the img tag? From the source, it looks like it should be treated exactly as an iText XML image tag should be treated. What does your input HTML look like? And for the problem you are having with the content getting chopped off...I cannot tell what is causing that problem from the source code. Could you describe the symptoms a little more? -Jim --- Meghal Donde [EMAIL PROTECTED] wrote: hi jim, am using SAXParser and not HTMLParser. PdfWriter.getInstance(document, new FileOutputStream(trial1.pdf)); SAXParser parser = SAXParserFactory.newInstance().newSAXParser();parser.parse(file:/home/meghald/trial1/page1.html, new SAXmyHtmlHandler(document)); Thats the code. You have used doc.resetPageCount() . wot does this do? Will it overcome the problem of tackling the pages .As in, if the HTML file is a long one, will it increase the PDF document pages? I urgently need to overcome this problem. If you have managed supporting tags, let me know about it. Thank You -Meghal __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Asking again: What CJK fonts don't pass FontFactory.contains()
Hi; Paulo said that calling FontFactory.contains() will return true for all fonts that can handle IDENTITY-H except CJK fonts. Is this all CJK fonts or just the ones in iTextAsian.jar? And if it's just the ones in iTextAsian.jar, what are the font names of all the fonts in there? Thanks - dave -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 7:16 AM To: 'Paulo Soares' Cc: 'itext' Subject: RE: [iText-questions] Suggested changes to itext source When you say CJK fonts aren't registered but can have IDENTITY-H, do you mean and CJK font or just the ones you have in iTextAsian.jar? If it's just the ones in iTextAsian.jar, is there a list of the font names somewhere? Thanks - dave -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:58 AM To: David Thielen Cc: itext Subject: RE: [iText-questions] Suggested changes to itext source -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 12:23 AM To: Paulo Soares Cc: 'itext' Subject: RE: [iText-questions] Suggested changes to itext source On item 1 I defer to you. On item 2, any suggestions for a way to do this? What would be great if there was a call FontFactory.canCreate(String fontName, String encoding). Because I can work from the exceptions but performance wise they are a killer in the cases I am seeing as I have to call createFont() a lot. A FontFactory.canCreate() is not a bad idea but only in the case of Identity-H can be done efficiently. In the other cases the font might have to be read anyway. I think that item 1 is enough and I'll create a new FontFactory.getFont() that also returns an indication if the font is the requested one or a substitution. Best Regards, Paulo Soares Thanks - dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Monday, September 13, 2004 4:13 PM To: David Thielen; itext Subject: Re: [iText-questions] Suggested changes to itext source - Original Message - From: David Thielen [EMAIL PROTECTED] To: itext [EMAIL PROTECTED] Sent: Monday, September 13, 2004 22:29 Subject: [iText-questions] Suggested changes to itext source Hi; These suggestions are based on the problem I had calling FontFactory using IDENTITY_H on an embedded font. I think (not sure) that the following changes make sense. BaseFont.java - line 376 - throw a DocumentException if the encoding is IDENTITY_H / IDENTITY_V That's probably better in Type1Font.java. Add to the FontFactory documentation to only call FontFactory.getFont(., IDENTITY_H/IDENTITY_V, .) if the font name returns true on FontFactory.contains(). That won't do. CJK fonts can have IDENTITY_H but are not actually registered. Best Regards, Paulo Soares --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Query
Title: Query hi , now i am a member of itext tell me how to go about it . 1: tell me the link 2: username and password if any. 3: how to post my query. 4: how to view my query and its solution. Thanks Regards: Sachin Gupta Satyam Computer Services Ltd SRU-GEGDC Hyderabad (STC) Cell : 9885087321 ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **