[iText-questions] Is there a way to set the number of columns for PdfPTable other than in the constructor?
I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Thanks Fred -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Is there a way to set the number of columns for PdfPTable other than in the constructor?
Fred Janon wrote: I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Postpone the creation of the table until you know the number of columns. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Font in a table cell added to a paragraph?
I create a paragraph with a font and I add a table with some cells to that paragraph. I was expecting the content of the cells to use the paragraph font, but it doesn't seem to? Is any content added to a paragraph supposed to use the paragrpah font? Thanks Fred -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Is there a way to set the number of columns for PdfPTable other than in the constructor?
Yep, that means I have to sort XML attributes to process 'columns' first... I would have preferred not to, but I kinda knew the answer and hoping I missed something. Thanks Fred On Sat, Mar 20, 2010 at 17:09, 1T3XT info i...@1t3xt.info wrote: Fred Janon wrote: I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Postpone the creation of the table until you know the number of columns. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Is there a way to set the number of columns for PdfPTable other than in the constructor?
Is there a way to add a setter for columns in the future: PdfPTable.setColumns(int)? It could throw an exception if it's too late to change it. Thanks Fred On Sat, Mar 20, 2010 at 18:27, Fred Janon fja...@gmail.com wrote: Yep, that means I have to sort XML attributes to process 'columns' first... I would have preferred not to, but I kinda knew the answer and hoping I missed something. Thanks Fred On Sat, Mar 20, 2010 at 17:09, 1T3XT info i...@1t3xt.info wrote: Fred Janon wrote: I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Postpone the creation of the table until you know the number of columns. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Perfomance Question - ByteArray vs Files
From: warrenonsourcefo...@charter.net To: itext-questions@lists.sourceforge.net Date: Fri, 19 Mar 2010 20:34:02 -0500 Subject: Re: [iText-questions] Perfomance Question - ByteArray vs Files Ok. So the answers are 1) To understand how PDFReader works, I need to dig into the source files and attempt to learn the underpinnings of the iText code and JAVA. I hadn't planned on this since I am implementing iText from another language like a black box. I've only played with JAVA directly on a limited basis. Guess I'll have to dive in. Well that was my answer but no one who knows the code has volunteered more details. IF you post a heap dump and ask why certain things are being made, someone may or may not know. 2) Disk I/O is Bad doing anything is bad, as you point out allocating and holding is bad. VM just seems to be an unappreciated bottlebeck ( but its all in memory and you can always just go buy more memory, that is cheap today LOL). 3) PDFs are Bad. Not sure I have much choice since PDF is what the customer wants. Personally they tend to be used where other formats can do and they are used in such a way that the files increase in size and decrease in information content. Certainly if you have text and can just dump that to the browser, that is faster ans uses less memory than adding artwork. It also may just be a matter of obviousness too- if you were generating html, you may be able to easily identify constant blocks of html you could cache instead of regenerating each time and in PDF if you don't know the details it may be less obvious. 4) Empirical testing is the answer. Code both methods and test various conditions. If results are bad, dig deeper. I have limited access to the server but I'll see what tools are available. Well it is easy to get confused and the more direct tests are more direct. If you just measure the time intervals routinely, System.currentTimeMillis IIRC in java you can get some idea where the problems may be., Memory allocations you should be able to examine on your desktop easily. I think my suggestion was that for expensive efforts spending more time for strategy selection or doing things like sorting the data may produce a net benefit, again it all depends. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2 -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Is there a way to set the number of columnsfor PdfPTable other than in the constructor?
Ok, you'll have it. Paulo - Original Message - From: Fred Janon To: Post all your questions about iText here Sent: Saturday, March 20, 2010 10:32 AM Subject: Re: [iText-questions] Is there a way to set the number of columnsfor PdfPTable other than in the constructor? Is there a way to add a setter for columns in the future: PdfPTable.setColumns(int)? It could throw an exception if it's too late to change it. Thanks Fred On Sat, Mar 20, 2010 at 18:27, Fred Janon fja...@gmail.com wrote: Yep, that means I have to sort XML attributes to process 'columns' first... I would have preferred not to, but I kinda knew the answer and hoping I missed something. Thanks Fred On Sat, Mar 20, 2010 at 17:09, 1T3XT info i...@1t3xt.info wrote: Fred Janon wrote: I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Postpone the creation of the table until you know the number of columns. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/-- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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] BaseFonts.getDocumentFonts crashes
Thanks, Paulo. Now it behaves like my modified version, i.e,. it lists only some of the fonts: $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT Where the full list should be much longer: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 The same happens with other files, Best wishes, -- Juan Fixed in the SVN. Paulo - Original Message - From: Juan Antonio de la Puente To: itext-questions@lists.sourceforge.net Cc: Paulo Soares Sent: Friday, March 19, 2010 11:43 AM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes Hi, The attached file fails with both the itext version of BaseFont.getDocumentFonts and the modified version by me (include in the test program, also attached). With the itext version the only result I get is listfonts 3469.pdf null and with the modified version I get $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT which only includes the TrueType fonts in the file. The full list, obtained with a program based on a previous version of getDocumentFonts, should be: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 It looks like the font dictionaries are not properly read. Any ideas? -- Juan -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] BaseFonts.getDocumentFonts crashes
The pdf you sent me (r50.pdf) lists 9 fonts as it should. I've no idea what's inside the 3469.pdf. Paulo - Original Message - From: Juan Antonio de la Puente To: itext-questions@lists.sourceforge.net Cc: Paulo Soares Sent: Saturday, March 20, 2010 11:13 AM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes Thanks, Paulo. Now it behaves like my modified version, i.e,. it lists only some of the fonts: $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT Where the full list should be much longer: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 The same happens with other files, Best wishes, -- Juan Fixed in the SVN. Paulo - Original Message - From: Juan Antonio de la Puente To: itext-questions@lists.sourceforge.net Cc: Paulo Soares Sent: Friday, March 19, 2010 11:43 AM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes Hi, The attached file fails with both the itext version of BaseFont.getDocumentFonts and the modified version by me (include in the test program, also attached). With the itext version the only result I get is listfonts 3469.pdf null and with the modified version I get $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT which only includes the TrueType fonts in the file. The full list, obtained with a program based on a previous version of getDocumentFonts, should be: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 It looks like the font dictionaries are not properly read. Any ideas? -- Juan -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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] Is there a way to set the number of columnsfor PdfPTable other than in the constructor?
Thanks. Fred On Sat, Mar 20, 2010 at 19:40, Paulo Soares psoa...@glintt.com wrote: Ok, you'll have it. Paulo - Original Message - From: Fred Janon To: Post all your questions about iText here Sent: Saturday, March 20, 2010 10:32 AM Subject: Re: [iText-questions] Is there a way to set the number of columnsfor PdfPTable other than in the constructor? Is there a way to add a setter for columns in the future: PdfPTable.setColumns(int)? It could throw an exception if it's too late to change it. Thanks Fred On Sat, Mar 20, 2010 at 18:27, Fred Janon fja...@gmail.com wrote: Yep, that means I have to sort XML attributes to process 'columns' first... I would have preferred not to, but I kinda knew the answer and hoping I missed something. Thanks Fred On Sat, Mar 20, 2010 at 17:09, 1T3XT info i...@1t3xt.info wrote: Fred Janon wrote: I create a PdfPtable with 1 column, then before anything else is added to the table I need to set the number of columns but there is no setter for that. Is there anyway to do that? Postpone the creation of the table until you know the number of columns. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] i18n
Can it be possible to print the decoded unicode (utf-8) characters, if particular font will be provided for that language.? I tried it is working too, but as i said my data might be a mixture of english and that particular language. And here I stuck up. It is ignoring the english out of that, just printing that particular language characters. Paulo Soares-3 wrote: Looks like your question is about databases, not iText, however, you mention indian languages and iText can't do the shapping for that (it only can for Urdu because Urdu uses arabic characters). Paulo From: satish.napster [karasatishku...@gmail.com] Sent: Friday, March 19, 2010 11:42 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] i18n I am working in i18n for my application. For that i need to put some master data to my database and I need to write sql scripts for that. Please let me know the standard format. Till now I have tried with two formats. 1. I put \u format in database. But it was coming as it is in database. I am using this format for property file and resource boundle is working fine. 2. I put amp;#; format in database. It is working fine in UI. I also have to take PDF using itext API for those data and this application is compatible with all indian languages ie around 20 languages and some cases the data may be mixture of english and a particular language.. This particular format will be part of the generated pdf as master data. I am also storing data from application which is storing as ¿ ¿¿¿ ¿ format and it is coming fine to UI. I am using jsp, servlet and oracle 10g database. (sorry for posting the correct database master data format question here. But much concern about the pdf file generation) -- View this message in context: http://old.nabble.com/i18n-tp27950943p27950943.html Sent from the iText - General mailing list archive at Nabble.com. 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. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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://old.nabble.com/i18n-tp27950943p27958737.html Sent from the iText - General mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] PDFSignature - Document has been altered since signature was applied
I am also facing the same issue could u please elaborate on how u resolved it. Regards Martin-- AndreiGosman wrote : Hi, I was a very big problem using iTextSharp and Aladdin eToken for signing PDF files. After I sign a pdf, Acrobat Reader gives the following message: The document has been altered or corrupted since teh Certification was applied Here is my code: Does someone know what is wrong? X509Certificate2 card = GetCertificate(certSerial); Org.BouncyCastle.X509.X509CertificateParser cp = new Org.BouncyCastle.X509.X509CertificateParser(); Org.BouncyCastle.X509.X509Certificate[] chain = new Org.BouncyCastle.X509.X509Certificate[] { cp.ReadCertificate(card.RawData) }; PdfReader reader = new PdfReader(fileToSign, Encoding.ASCII.GetBytes(ownerPassword)); PdfStamper stp = PdfStamper.CreateSignature(reader, new FileStream(signedFileName, FileMode.Create), '\0', null, true); PdfSignatureAppearance sap = stp.SignatureAppearance; sap.SignDate = signDate; sap.SetCrypto(null, chain, null, PdfSignatureAppearance.WINCER_SIGNED); sap.Reason = reason; sap.Location = location; sap.Acro6Layers = true; sap.Render = PdfSignatureAppearance.SignatureRender.GraphicAndDescription; sap.SetVisibleSignature(new iTextSharp.text.Rectangle(100, 100, 250, 150), 1, null); sap.Render = PdfSignatureAppearance.SignatureRender.NameAndDescription; PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKLITE, PdfName.ADBE_PKCS7_DETACHED); dic.Date = new PdfDate(sap.SignDate); dic.Name = PdfPKCS7.GetSubjectFields(chain[0]).GetField(CN); if (sap.Reason != null) dic.Reason = sap.Reason; if (sap.Location != null) dic.Location = sap.Location; sap.CryptoDictionary = dic; int csize = 4000; Hashtable exc = new Hashtable(); exc[PdfName.CONTENTS] = csize * 2 +2; sap.PreClose(exc); //sap.PreClose(); HashAlgorithm sha = new SHA1CryptoServiceProvider(); Stream s = sap.RangeStream; int read = 0; byte[] buff = new byte[8192]; while ((read = s.Read(buff, 0, 8192)) 0) { sha.TransformBlock(buff, 0, read, buff, 0); } sha.TransformFinalBlock(buff, 0, 0); byte[] pk = SignMsg(sha.Hash, card,false); byte[] outc = new byte[csize]; PdfDictionary dic2 = new PdfDictionary(); try { Array.Copy(pk, 0, outc, 0, pk.Length); dic2.Put(PdfName.CONTENTS, new PdfString(outc).SetHexWriting(true)); } finally { sap.Close(dic2); } Regards Andrei Gosman -- View this message in context: http://www.nabble.com/PDFSignature---%22Document-has-been-altered-since-signature-was-applied%22-tp20463953p20463953.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list itext-questi...@list... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- This message was sent on behalf of mmat...@sitmobile.com at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/10726249.html -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] PDFSignature - Document has been altered since signature was applied
Hi Mathew, afaik the problem can not be solved, just circumvented. You get one hash from a PDF, after storing and reopening you get another hash. The raesons for this are not an iText issue and are already discussed on this list in detail. So how to get around : Don't store and reopen the PDF before applying the signature. Or replace the signature in the stored PDF without using iText functionalities but low level file operations : Find the signature area in fuile, overwrite bytes x to y with the signature. Hope this helps. Andreas - Original Message From: mmat...@sitmobile.com mmat...@sitmobile.com To: itext-questions@lists.sourceforge.net Sent: Sat, March 20, 2010 4:07:26 PM Subject: Re: [iText-questions] PDFSignature - Document has been altered since signature was applied I am also facing the same issue could u please elaborate on how u resolved it. Regards Martin-- AndreiGosman wrote : Hi, I was a very big problem using iTextSharp and Aladdin eToken for signing PDF files. After I sign a pdf, Acrobat Reader gives the following message: The document has been altered or corrupted since teh Certification was applied Here is my code: Does someone know what is wrong? X509Certificate2 card = GetCertificate(certSerial); Org.BouncyCastle.X509.X509CertificateParser cp = new Org.BouncyCastle.X509.X509CertificateParser(); Org.BouncyCastle.X509.X509Certificate[] chain = new Org.BouncyCastle.X509.X509Certificate[] { cp.ReadCertificate(card.RawData) }; PdfReader reader = new PdfReader(fileToSign, Encoding.ASCII.GetBytes(ownerPassword)); PdfStamper stp = PdfStamper.CreateSignature(reader, new FileStream(signedFileName, FileMode.Create), '\0', null, true); PdfSignatureAppearance sap = stp.SignatureAppearance; sap.SignDate = signDate; sap.SetCrypto(null, chain, null, PdfSignatureAppearance.WINCER_SIGNED); sap.Reason = reason; sap.Location = location; sap.Acro6Layers = true; sap.Render = PdfSignatureAppearance.SignatureRender.GraphicAndDescription; sap.SetVisibleSignature(new iTextSharp.text.Rectangle(100, 100, 250, 150), 1, null); sap.Render = PdfSignatureAppearance.SignatureRender.NameAndDescription; PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKLITE, PdfName.ADBE_PKCS7_DETACHED); dic.Date = new PdfDate(sap.SignDate); dic.Name = PdfPKCS7.GetSubjectFields(chain[0]).GetField(CN); if (sap.Reason != null) dic.Reason = sap.Reason; if (sap.Location != null) dic.Location = sap.Location; sap.CryptoDictionary = dic; int csize = 4000; Hashtable exc = new Hashtable(); exc[PdfName.CONTENTS] = csize * 2 +2; sap.PreClose(exc); //sap.PreClose(); HashAlgorithm sha = new SHA1CryptoServiceProvider(); Stream s = sap.RangeStream; int read = 0; byte[] buff = new byte[8192]; while ((read = s.Read(buff, 0, 8192)) 0) { sha.TransformBlock(buff, 0, read, buff, 0); } sha.TransformFinalBlock(buff, 0, 0); byte[] pk = SignMsg(sha.Hash, card,false); byte[] outc = new byte[csize]; PdfDictionary dic2 = new PdfDictionary(); try { Array.Copy(pk, 0, outc, 0, pk.Length); dic2.Put(PdfName.CONTENTS, new PdfString(outc).SetHexWriting(true)); } finally { sap.Close(dic2); } Regards Andrei Gosman -- View this message in context: http://www.nabble.com/PDFSignature---%22Document-has-been-altered-since-signature-was-applied%22-tp20463953p20463953.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list itext-questi...@list... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- This message was sent on behalf of mmat...@sitmobile.com at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/10726249.html -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got
[iText-questions] new pdf graphics file question
Hi, I developed a computer graphics program (www.ananya.com) that draws curves in a faster and easier way. I would like to import and export pdf graphics files with other graphics programs. I have a new pdf graphics file question (question 1)), and since I still have two unanswered pdf graphics file questions, I post them again (questions 2) 3)): 1) Is it possible to write a pdf graphics file of curves so that Adobe Illustrator recognizes it as a vector graphics file (as curves)? It seems that both,createGraphics and createGraphicsShapes, make a bitmap graphics file. 2) Is it possible to read the array of CubicCurve2D.Double's and the stroke and fill information from a pdf graphics file of curves? 3) What's the trick to make Adobe Photoshop open a pdf graphics file of curves as a path? (It at least allows pasting Illustrator curves as a path.) Thanks in advance for any answers! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] iText for prepress pdf
Hello everybody. I just started using iText and in the process of reading the book. For one question I was asked by a client, I could not find a definite answer. He asked if the pdfs generated with iText can be fed into a prepress workflow resulting in output through printing presses. Or are there any restrictions compared to the pdfs created with a layout application? Thanks, Michael Vogt -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Fwd: new pdf graphics file question
Hi, I am sorry, I found the answer to my question 1). It is in the previous iText In Action manual in the great chapter, Constructing and painting paths. But I am still looking for the answers to question 2) and 3). Thanks for looking into it. Date: Sat, 20 Mar 2010 14:33:30 -0700 To: itext-questions@lists.sourceforge.net From: Brigit Ananya bri...@ananya.com Subject: new pdf graphics file question Hi, I developed a computer graphics program (www.ananya.com) that draws curves in a faster and easier way. I would like to import and export pdf graphics files with other graphics programs. I have a new pdf graphics file question (question 1)), and since I still have two unanswered pdf graphics file questions, I post them again (questions 2) 3)): 1) Is it possible to write a pdf graphics file of curves so that Adobe Illustrator recognizes it as a vector graphics file (as curves)? It seems that both,createGraphics and createGraphicsShapes, make a bitmap graphics file. 2) Is it possible to read the array of CubicCurve2D.Double's and the stroke and fill information from a pdf graphics file of curves? 3) What's the trick to make Adobe Photoshop open a pdf graphics file of curves as a path? (It at least allows pasting Illustrator curves as a path.) Thanks in advance for any answers! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] BaseFonts.getDocumentFonts crashes
Finally fixed. Paulo - Original Message - From: Paulo Soares To: itext-questions@lists.sourceforge.net Sent: Saturday, March 20, 2010 1:36 PM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes The pdf you sent me (r50.pdf) lists 9 fonts as it should. I've no idea what's inside the 3469.pdf. Paulo - Original Message - From: Juan Antonio de la Puente To: itext-questions@lists.sourceforge.net Cc: Paulo Soares Sent: Saturday, March 20, 2010 11:13 AM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes Thanks, Paulo. Now it behaves like my modified version, i.e,. it lists only some of the fonts: $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT Where the full list should be much longer: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 The same happens with other files, Best wishes, -- Juan Fixed in the SVN. Paulo - Original Message - From: Juan Antonio de la Puente To: itext-questions@lists.sourceforge.net Cc: Paulo Soares Sent: Friday, March 19, 2010 11:43 AM Subject: Re: [iText-questions] BaseFonts.getDocumentFonts crashes Hi, The attached file fails with both the itext version of BaseFont.getDocumentFonts and the modified version by me (include in the test program, also attached). With the itext version the only result I get is listfonts 3469.pdf null and with the modified version I get $ listfonts 3469.pdf QTRGMG+Arial-BoldMT IAJVTI+ArialMT which only includes the TrueType fonts in the file. The full list, obtained with a program based on a previous version of getDocumentFonts, should be: QTRGMG+Arial-BoldMT GFNNIT+CMTT8 JEFAMC+CMTI8 MPZVKG+CMR6 FNBQTC+CMTI10 RPBMZT+CMBX10 XQSMYX+CMMI8 VLZLUJ+CMMI12 RJYCLB+CMR10 VBWGVW+CMBX12 VPWRDP+CMR7 SDVCAT+CMSY7 LBQTEY+CMR8 IAJVTI+ArialMT GFAWRG+CMSY10 AZDNJY+CMSS10 RSOCLK+CMSSI8 OJXOVL+CMSSBX10 TMCDBM+CMSY8 NQQKKG+CMSS8 DQLGMD+Helvetica-Oblique FDVTQC+Helvetica-Bold ZLWAXE+Helvetica VBMYEH+Helvetica XIWTIM+CMTT10 It looks like the font dictionaries are not properly read. Any ideas? -- Juan -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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] unsubscribe
I have tried several times unsubscribe myself from this list but have failed to do so. Can somebody please let me now how it works? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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] Perfomance Question - ByteArray vs Files
I would, of course, argue with #3 as would the governments of every country on earth, every major enterprise around the world, etc. -Original Message- From: warren [mailto:warrenonsourcefo...@charter.net] Sent: Saturday, March 20, 2010 2:34 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Perfomance Question - ByteArray vs Files Ok. So the answers are 1) To understand how PDFReader works, I need to dig into the source files and attempt to learn the underpinnings of the iText code and JAVA. I hadn't planned on this since I am implementing iText from another language like a black box. I've only played with JAVA directly on a limited basis. Guess I'll have to dive in. 2) Disk I/O is Bad 3) PDFs are Bad. Not sure I have much choice since PDF is what the customer wants. 4) Empirical testing is the answer. Code both methods and test various conditions. If results are bad, dig deeper. I have limited access to the server but I'll see what tools are available. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] new pdf graphics file question
Adobe Illustrator is NOT a PDF editor and should not be used as one. If you are simply planning to place the PDF into Illustrator as part of another graphic, that's fine. Try using the lower level APIs in iText for graphic instead of going through Graphics2D. There is no trick to #3 - it is simply not possible. Photoshop will rasterize ALL vector formats (AI, EPS, PDF) when opening them - it's how it works. If you want curves/paths, then you need to write native .psd files. Leonard -Original Message- From: Brigit Ananya [mailto:bri...@ananya.com] Sent: Saturday, March 20, 2010 10:34 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] new pdf graphics file question Hi, I developed a computer graphics program (www.ananya.com) that draws curves in a faster and easier way. I would like to import and export pdf graphics files with other graphics programs. I have a new pdf graphics file question (question 1)), and since I still have two unanswered pdf graphics file questions, I post them again (questions 2) 3)): 1) Is it possible to write a pdf graphics file of curves so that Adobe Illustrator recognizes it as a vector graphics file (as curves)? It seems that both,createGraphics and createGraphicsShapes, make a bitmap graphics file. 2) Is it possible to read the array of CubicCurve2D.Double's and the stroke and fill information from a pdf graphics file of curves? 3) What's the trick to make Adobe Photoshop open a pdf graphics file of curves as a path? (It at least allows pasting Illustrator curves as a path.) Thanks in advance for any answers! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] iText for prepress pdf
Sure. PDF is PDF is PDF. Of course, the printer may have specific requirements for their documents such as colorspace choices, image resolutions etc. that you will need to adhere to. Leonard -Original Message- From: Michael Vogt [mailto:i...@michaelvogt.eu] Sent: Saturday, March 20, 2010 10:47 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] iText for prepress pdf Hello everybody. I just started using iText and in the process of reading the book. For one question I was asked by a client, I could not find a definite answer. He asked if the pdfs generated with iText can be fed into a prepress workflow resulting in output through printing presses. Or are there any restrictions compared to the pdfs created with a layout application? Thanks, Michael Vogt -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] pdf graphics file questions
Hi, I wasn't trying to use Adobe Illustrator as a PDF editor. I was just trying to make a PDF file that Adobe Illustrator can open as a vector graphics file. And this is possible if I use the technique described in the previous iText In Action manual in the great chapter, Constructing and painting paths. No, Photoshop doesn't rasterize everything. You can copy a curve in Illustrator and when you paste it into Photoshop, a small window comes up asking you how you want to paste it and allows you to paste it as a Path, which is vector graphics, not raster graphics. Being vector graphics means that you can modify the start and end point and the lengths and directions of the start and end tangent. If Photoshop cannot open a vector graphics file as a path, I would at least like to be able to paste a vector graphics file as a path. So what's the trick to have the small window come up asking you how you want to paste? I really would appreciate an answer to this! Thanks! At 07:53 PM 03/20/10, you wrote: Adobe Illustrator is NOT a PDF editor and should not be used as one. If you are simply planning to place the PDF into Illustrator as part of another graphic, that's fine. Try using the lower level APIs in iText for graphic instead of going through Graphics2D. There is no trick to #3 - it is simply not possible. Photoshop will rasterize ALL vector formats (AI, EPS, PDF) when opening them - it's how it works. If you want curves/paths, then you need to write native .psd files. Leonard -Original Message- From: Brigit Ananya [mailto:bri...@ananya.com] Sent: Saturday, March 20, 2010 10:34 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] new pdf graphics file question Hi, I developed a computer graphics program (www.ananya.com) that draws curves in a faster and easier way. I would like to import and export pdf graphics files with other graphics programs. I have a new pdf graphics file question (question 1)), and since I still have two unanswered pdf graphics file questions, I post them again (questions 2) 3)): 1) Is it possible to write a pdf graphics file of curves so that Adobe Illustrator recognizes it as a vector graphics file (as curves)? It seems that both,createGraphics and createGraphicsShapes, make a bitmap graphics file. 2) Is it possible to read the array of CubicCurve2D.Double's and the stroke and fill information from a pdf graphics file of curves? 3) What's the trick to make Adobe Photoshop open a pdf graphics file of curves as a path? (It at least allows pasting Illustrator curves as a path.) Thanks in advance for any answers! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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/