Re: [iText-questions] iText PDF not getting printed properly in Solaris
This is not a joke. This is a problem that needs a good answer. I might not using Itext but I'm relating it to PDF printing in solaris that prints garbage. I know that there is nothing wrong with my pdf file or ADOBE Acro because as I said it's working in windows and printing properly. But anyway with your answer Except that Adobe assumes that you are printing to a PostScript printer. gives me an idea that it might be the reason why. Thanks for that. And sorry for posting my problem here in ITEXT TOPIC it's just somehow related to me about printing garbage. Regarding the oracle that's not the point.. just ignore that. It's not part of the problem. Bruno Lowagie (iText) wrote: rledesma_redsky wrote: It's printing like this: %%Version 1.2 %%CreationDate (Tue Jun 30 11:29:30 2009) %%For: ((oraappr2@unknown host)) %%Title: 'ssnum' (Oracle Toolkit Application) %%LanguageLevel:1 %%Requirements: numcopies(1) blah..blah..blah..blah..blah..blah..blah..blah..blah.. this is all about printing properties... this is not the actual output of the pdf.. the pdf file contains a simple text. test print that's it. but unfortunately that is not the output when I'm trying to print in solaris. LOL! You're making the same joke as the OP. Saying that output is gibberish is equivalent to me saying your question is non sense. (But would such an answer help you solve the problem?) What you are showing is a postscript header. There's nothing wrong with the PDF. Nor is there anything wrong with Adobe. Except that Adobe assumes that you are printing to a PostScript printer. In other words: you've probably installed the wrong printer driver. Installing printer drivers on Solaris to print document created with an Oracle product is off-topic on the iText mailing list. br, Bruno -- ___ 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/iText-PDF-not-getting-printed-properly-in-Solaris-tp23099745p24283263.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 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 PDF not getting printed properly in Solaris
rledesma_redsky wrote: But anyway with your answer Except that Adobe assumes that you are printing to a PostScript printer. gives me an idea that it might be the reason why. Thanks for that. And sorry for posting my problem here in ITEXT TOPIC it's just somehow related to me about printing garbage. Please understand that the printer is NOT PRINTING GARBAGE!!! Garbage is non sense; stuff without meaning; random characters. The snippet you posted makes perfect sense!!! It's syntactically correct! Do a proper install of your printer (driver) and the problem will disappear. -- ___ 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] Table header/footer problem
Hello, I have a problem generating a document with page headers/footer. The document is one big table. I dont need the default style page headers/footers (I looked at page events already) that are always placed at the top/bottom of a page but table based that are added at the top/bottom of the report table (only on page if table spans multiple pages). Example document structure as visible in pdf viewer: Document Header (Only on first page) Document Page Header (Every page except the first) Report Page Header (Every page) Report Data Report Page Footer (Every page) Document Page Footer (Every page except the last) Document Footer (Only on last page) All parts need to fit tightly together so no spacing between the parts (so the page footer for the last page can be in the middle of the page depending on the size of the report) I tried 3 ways to accomplish this but each one failed. What I basically need is the result of test2 but seamless. Sample source: http://www.nabble.com/file/p24286514/Main.java Main.java 1) Use separate tables for the document header and document footer and add the document page headers/footers to the report table Problems with test1: - The report header/footer is also excluded the first/last page - The page/report footer on the first page are to low (even go off page if more footer rows are added) - The document footer table on last page is to low (seems like the space for the skipped footers is still used while they are not rendered) http://www.nabble.com/file/p24286514/test1.pdf test1.pdf 2) Use separate tables for the document header and document footer. Use new table for document page header/footer and report, report is embedded in this table and has its own page headers/footers. Problems with test2: - The document header is on the first page while the rest of the report starts on the second page - the document footer table on the last page is to low (same as in test 1) http://www.nabble.com/file/p24286514/test2.pdf test2.pdf 3) Use separate tables for the document header and document footer Use new table for document page header/footer and report, report is embedded in this table and has its own page headers/footers. Ad the above 3 tables to a new layout table and add that to the document. Problems with test3: - Same as test2 http://www.nabble.com/file/p24286514/test3.pdf test3.pdf -- View this message in context: http://www.nabble.com/Table-header-footer-problem-tp24286514p24286514.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 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] reading and writing in to the AcroForms/writeable PDF forms? is it possible?
Is iText and for that reason iTextSharp capable of reading user typed data from writeable PDF forms. Similarly writing (prefiliing data into textbox/dropdowns/checkboxes/etc) in to the writable PDF forms? _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ -- ___ 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] reading and writing in to the AcroForms/writeable PDF forms? is it possible?
Yes and Yes. Leonard From: pankaj kudale [mailto:pankaj.kud...@patni.com] Sent: Wednesday, July 01, 2009 4:35 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] reading and writing in to the AcroForms/writeable PDF forms? is it possible? Is iText and for that reason iTextSharp capable of reading user typed data from writeable PDF forms. Similarly writing (prefiliing data into textbox/dropdowns/checkboxes/etc) in to the writable PDF forms? _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ -- ___ 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] TimeStamp and itext 2.1.6
Hi, is already any samples how to integrate TimeStamp (new feature of iText 2.1.6) to pdf sign process ? Pavol Behul -- ___ 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] reading and writing in to the AcroForms/writeable PDF forms? is it possible?
Thanks Leonard. Earlier I forgot to mention, I am not putting any buttons of PDF forms to trigger pdf form post data. User will be uploading saved PDF form. Does it work with this requirement? Where can I found additional documentation related to this requirement and any code examples? Thanks, Pankaj _ From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, July 01, 2009 5:18 PM To: pankaj.kud...@patni.com; Post all your questions about iText here Subject: RE: [iText-questions] reading and writing in to the AcroForms/writeable PDF forms? is it possible? Yes and Yes. Leonard From: pankaj kudale [mailto:pankaj.kud...@patni.com] Sent: Wednesday, July 01, 2009 4:35 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] reading and writing in to the AcroForms/writeable PDF forms? is it possible? Is iText and for that reason iTextSharp capable of reading user typed data from writeable PDF forms. Similarly writing (prefiliing data into textbox/dropdowns/checkboxes/etc) in to the writable PDF forms? _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ -- ___ 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 jar: java coding pdf with tables and cells-nested tables and using images
Hi, I am using the latest iText 2.1.6 and think there are some issues. (Note: this is a jsp page with java code). I'm finding two things: 1. I can't put text and an image in a cell together. The text super-imposes over the image (using the barcode128 method from the same jar). Is there any way to add both image and text to a cell so they are side by side. I tried putting the line feed char on the text (\n) and that didn't work. Seems you can append an image and embed in a phrase but not in a cell. Aside from editing the image to add the text I couldn't find a way to get both in the cell without doing a nested table. That caused issue 2 below. 2. Why do I lose borders on a cell when I put a table inside that cell. Nesting a table inside a cell to get a specific layout and only the nested table will show the borders. The outer cell of the parent table won't show borders even if I explicitly turn them on with the set methods (left,right,width,etc.) Only get the outmost table borders- no cell borders on the parent table. Only occurs when you 'addCell(childtable)'. Wondering are these bugs? I got something that might work for our purpose but it isn't exactly what I had originally envisioned since I found these issues. Maybe I'm just going in circles and have missed something! Originally had the older jar versions (1.4,2.15) but seems to work the same in 2.1.6 also. Just wondering if anyone ran into this and found a solution! thanks! Lisa M. Barkey-- ___ 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] Transparent background for whole pdf
Maybe this is something obvious that I am overlooking, or maybe not possible - is there a way to set the pdf file's background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency. Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice? Thanks, Ian -- ___ 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, Flying Saucer, and Lotus Domino agent
Sorry, but it's virtually impossible to help from this mailing list. FS wraps iText in its own classes. You'll need to pursue this with them. ---mr.bean jminata wrote: I am trying to convert HTML to PDF using Flying Saucer. I need to be able to use style sheet to do positioning, set font size, color, etc. From what I have searched so far, the FS is the best way to do that. I can't find a discussion forum that I can post a question to on their site, so that's why I am posting a question here. Hopefully, someone can help me here. nbsp; I have taken the sample code (the 99 bottles of beer) from this article: http://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-and-itext.html nbsp; I got it to work in Eclipse. However, my ultimate goal is to port the code into a Lotus Domino java agent. When I do that, I get the error below. The PDF is created, but it completely ignores the CSS. It treats the style as text and it is shown as plain text on the PDF. I tried using an external style sheet, but the result is the same. I appreciate any advice you can give me. Thanks. nbsp; Here's the error: 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:08 PM org.xhtmlrenderer.util.XRLog log INFO: Using CSS implementation from: org.xhtmlrenderer.context.StyleReference 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:08 PM org.xhtmlrenderer.util.XRLog log WARNING: Could not parse default stylesheet java.lang.NullPointerException nbsp;at org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler.getDefaultStylesheetStream(XhtmlCssOnlyNamespaceHandler.java:407) nbsp;at org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler.getDefaultStylesheet(XhtmlCssOnlyNamespaceHandler.java:372) nbsp;at org.xhtmlrenderer.context.StyleReference.getStylesheets(StyleReference.java:242) 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log INFO: TIME: parse stylesheetsnbsp; 156ms 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log INFO: media = print 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log INFO: Requesting stylesheet: http://www.w3.org/1999/xhtml 06/30/2009 03:37:22 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log WARNING: ( http://www.w3.org/1999/xhtml ) Found lt; (other) where one of a hex color, ., [, or : was expected at line 1. Skipping ruleset. 06/30/2009 03:37:22 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log INFO: Matcher created with 1 selectors Here's the java code gt;gt;gt;gt;gt;gt;gt;gt; Java Agent: START gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt; import lotus.domino.*; import java.io.PrintWriter; import java.io.FileOutputStream; import java.io.File; import java.io.OutputStream; import java.io.StringBufferInputStream; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.xhtmlrenderer.pdf.ITextRenderer; public class JavaAgent extends AgentBase { nbsp;public void NotesMain() { nbsp;try { nbsp; nbsp;Session session = getSession(); nbsp;AgentContext agentContext = session.getAgentContext(); nbsp;lotus.domino.Document docCon = agentContext.getDocumentContext(); nbsp;Database db = agentContext.getCurrentDatabase(); nbsp;nbsp;nbsp; nbsp;// (Your code goes here) nbsp;StringBuffer buf = new StringBuffer(); nbsp;buf.append(lt;?xml version=\1.0\ encoding=\UTF-8\?gt;); nbsp;buf.append(lt;!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Strict//EN\ \ http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\ gt;); nbsp;buf.append(lt;html xmlns=\ http://www.w3.org/1999/xhtml\ gt;); nbsp;// put in some style nbsp;buf.append(lt;headgt;lt;style language=\text/css\gt;); nbsp;buf.append(h2 { background: #ff; color: white; border: 10px solid black; padding: 3em; font-size: 200%; } ); nbsp;buf.append(lt;/stylegt;lt;/headgt;); nbsp; nbsp;// generate the body nbsp;buf.append(lt;bodygt;); nbsp;for(int i=99; igt;0; i--) { nbsp;nbsp;buf.append(lt;h3gt;+i+ bottles of beer on the wall, + i + bottles of beer!lt;/h3gt;); nbsp;nbsp;buf.append(lt;pgt;Take one down and pass it around, + (i-1) + bottles of beer on the walllt;/pgt;\n); nbsp;} nbsp;buf.append(lt;h2gt;No more bottles of beer on the wall, no more bottles of beer. ); nbsp;buf.append(Go to the store and buy some more, 99 bottles of beer on the wall.lt;/h2gt;); nbsp;buf.append(lt;/bodygt;); nbsp;buf.append(lt;/htmlgt;); nbsp;// parse the markup into an xml Document nbsp;DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); nbsp;Document doc = builder.parse(new StringBufferInputStream(buf.toString())); nbsp;ITextRenderer renderer = new ITextRenderer(); nbsp;renderer.setDocument(doc, null); nbsp;/* make a filename that's based on docid */ nbsp;String fName = docCon.getUniversalID() + .pdf;
[iText-questions] Cell setNoWrap() depricated?
Has the setNoWrap() method been removed from iText 2.1.6? If so, is there any way to reproduce it's behavior with another method? I'm generating RTF not PDF. -- ___ 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 and CMYK
I'm using iText 2.1.4 to create a PDF that I send to a printing house that use CMYK (they create 4 plates). The images I have in the PDF are in format .tif with CMYK colorspace. The problem is that it seems that iText is converting the images to RGB or something because the blacks are not black when it goes to print. If I check the PDF in Adobe (with Pitstop plugin) the blacks are converted to 84.7%C, 78.9% M, 60.3% Y, 85.4% K, but what I want is just 100% K (black) and the rest 0%. The fonts I use are embedded and they are perfectly 100% K. I have the same problem with line separators, they are 100% black in RGB but gets a mishmash of CMYK values like the images. I create the images with: Image img = Image.getInstance(image.tif); cell.addElement(img); I create the line separators with: LineSeparator separator = new LineSeparator(1f, 100f, Color.BLACK, Element.ALIGN_LEFT, 0); cell.addElement(separator); // add separator I have read that RGB #00 does not resolve to CMYK 0,0,0,100%, but like 75%,68%,67%,90%. If that is true how do I specify in iText to use just 100% K? The CMYKColor seems to just translate to a RGB Color. I tried to use CMYKColor.BLACK and CMYKColor(0,0,0,1) in the LineSeparator but with the same end result. Any help appreciated. -- ___ 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 and CMYK
iText doesn't convert colorspaces, if the image is CMYK it will be CMYK in the PDF, same with CMYKColor(0,0,0,1). It looks like your printing house is converting to RGB and then to CMYK but I'm just guessing. - Original Message - From: Philip Thorn phi...@anumex.com To: itext-questions@lists.sourceforge.net Sent: Wednesday, July 01, 2009 7:11 PM Subject: [iText-questions] iText and CMYK I'm using iText 2.1.4 to create a PDF that I send to a printing house that use CMYK (they create 4 plates). The images I have in the PDF are in format .tif with CMYK colorspace. The problem is that it seems that iText is converting the images to RGB or something because the blacks are not black when it goes to print. If I check the PDF in Adobe (with Pitstop plugin) the blacks are converted to 84.7%C, 78.9% M, 60.3% Y, 85.4% K, but what I want is just 100% K (black) and the rest 0%. The fonts I use are embedded and they are perfectly 100% K. I have the same problem with line separators, they are 100% black in RGB but gets a mishmash of CMYK values like the images. I create the images with: Image img = Image.getInstance(image.tif); cell.addElement(img); I create the line separators with: LineSeparator separator = new LineSeparator(1f, 100f, Color.BLACK, Element.ALIGN_LEFT, 0); cell.addElement(separator); // add separator I have read that RGB #00 does not resolve to CMYK 0,0,0,100%, but like 75%,68%,67%,90%. If that is true how do I specify in iText to use just 100% K? The CMYKColor seems to just translate to a RGB Color. I tried to use CMYKColor.BLACK and CMYKColor(0,0,0,1) in the LineSeparator but with the same end result. Any help appreciated. -- ___ 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 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] reading and writing in to the AcroForms/writeable PDF forms? is it possible?
pankaj kudale wrote: Thanks Leonard. Earlier I forgot to mention, I am not putting any buttons of PDF forms to trigger pdf form post data. User will be uploading saved PDF form. Does it work with this requirement? You have contacted iText Software with the same question. An answer has been prepared and will be sent to you shortly. Where can I found additional documentation related to this requirement and any code examples? Please clarify whether or not you are seeking to purchase a license for iText if it meets the requirements. If you are, you'll get the support and the examples you need. -- 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 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/