Re: [iText-questions] [Fwd: Re: iText invisible annotation]
Well where did you get AR9 from? The latest version on Adobe's site takes me to a link for 8.1.3, and the annotation is still visible in that (I had 8.1.2). Am i missing anything here? SSD. On Sun, 2008-12-07 at 11:30 -0500, Sankha Subhra Dey wrote: > > I don't know. I have to test this in AR 9. I'll be sending an update > > after a couple of weeks. > > > > > > On Sun, 2008-12-07 at 17:20 +0100, 1T3XT info wrote: > > > Sankha Subhra Dey wrote: > > > > Thank you. I do have the book, and I did try this, and it didn't work > > > > (the annotation is still visible in AR 8), just like this one didn't > > > > (this was the code I had supplied in my original mail): > > > > > > > > === > > > > PdfAnnotation pdfAnnotation = > > > > PdfAnnotation.createText(stamper.getWriter(), new Rectangle(1, 1, 1, > > > > 1), "Comment", pattern, false, null); > > > > > > > > pdfAnnotation.put(PdfName.F, new > > > > PdfNumber(PdfAnnotation.FLAGS_NOVIEW | > > > > PdfAnnotation.FLAGS_INVISIBLE | PdfAnnotation.FLAGS_HIDDEN)); > > > > > > > > stamper.addAnnotation(pdfAnnotation, 1); > > > > === > > > > > > > > That was the whole reason why I wrote the mail. > > > > > > I don't understand. I've tested the example I've sent you in AR 9. > > > It works. I don't have AR 8 anymore, so I can't check if it works > there. > > > Are you saying the example works for AR 9 but not for AR 8? > > -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Code page or unicode
On Dec 22, 2008, at 12:28 PM, David Thielen wrote: We have been using Unicode for all of our output. Works great in that we don’t need to worry about what characters are in a string. But it means we always have embedded fonts – which is not good. I disagree with this last statement. Embedding the fonts IS VERY GOOD and VERY IMPORTANT. It is why EVERY SINGLE ISO subset PDF standard (PDF/X, PDF/A, PDF/E, PDF/VT) all require that fonts be embedded. DO NOT make the mistake of undoing what is the correct and proper behavior. What’s the “best practices” in this case? I prefer the concept of keeping everything Unicode but we do need to offer PDF files that are smaller (ie don’t have embedded fonts). There are MANY OTHER ways to produce smaller sized PDFs than to simply stop embedding fonts. Leonard -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Joining lines that change properties
On Dec 22, 2008, at 12:14 PM, David Thielen wrote: When we draw a table, the top and bottom borders can be different widths/colors/patterns from the left & right borders (width change is the most common). Is there a way to get PDF to join the corners of each line when they are dissimilar? No - PDF doesn't support it. Same for the internal lines in the table, is there a way to join them to the outside borders where they stub in to them? If they are part of the same path - yes. If not, no. Leonard -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
On Dec 22, 2008, at 12:07 PM, David Thielen wrote: Please correct me if I’m wrong, PDF/X and PDF/A are basically restrictions on what can be written to the PDF file. They are subsets of the full PDF specification (eg. there are things that you aren't allowed to have) AND they also have additional requirements that aren't present in standard PDF (eg. all fonts must be embedded). So we do the same thing as before, except there are some calls that are not allowed and all colors are set in CMYK. For PDF/X that’s it – correct? There are 5 different flavors of PDF/X (1a, 2, 3, 4, and 5) - depends on which one(s) you are targetting. Same with PDF/A. For PDF/A there is the metadata that is added, but is there any specific metadata we are supposed to add or is what is added up to each individual? If there is a set of properties we are supposed to put in the metadata, is there a link to it somewhere? As Bruno and Paulo both said - you REALLY need to read the specific standards documents if you are going to be implementing them. You need a good validator, such as Adobe Acrobat Professional's Preflight tool. And for tagged PDF, this is where we can let Acrobat know the true formatting of the document so when a user does copy and paste from Acrobat, they get the true formatted document displayed in the PDF – correct? Is there a link showing what of this is supported in iText, how to call it, and what more will be added? Something like that...As mentioned, look for "Marked Content" in the PDF Reference. Leonard -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
Ok - thanks -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 1:21 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? As Bruno said use ColumnText. If the text fits in that line (you already checked it) no word wrap will be attempted. Use ALIGN_JUSTIFIED_ALL to justify that line to the end. Paulo > -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 6:07 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] How should we write text to the PDF > file? > > We do all of the page formatting - and have to for setting text in > things like the page on & number of pages field - which we then > convert to text on the output. Plus we've put in a gigantic effort to > match Word and there is a boatload of small weird rules that impact > layout, and iText does not have that level of control. > > So when we say the text must fit on a line - it all must go on that > line. The output we produce is clean so the text we select for a line > does fit - but I can't use an iText call that may decide that the last > word should go on the next line. > > Also, for centered/right/justified text - it has to know that this is > all the text for this line. And for justified text, needs to know if > it is the last line of the paragraph (no justify) or a line before the > last. > > Thanks - dave > > > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Monday, December 22, 2008 12:53 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] How should we write text to the PDF > file? > > David Thielen wrote: > > At present we write to the document using > ColumnText.showTextAligned(). > > We pass in the X, Y of the start of the text and in the case of > > justified text, call it word by word. We then also draw underlines > > ourselves afterwards. > > Wow, that's a lot of work. > > > I would prefer that we could call an iText method a line at > a time and > > > give it the start & end of the line, if it's left, center, > right, or > > justified aligned, and if it's underlined. But it would not > word wrap > - > > it would put everything on that one line. > > If you dropped the requirement "it would not word wrap", I'd > say: that's > > easy. Please explain why you want to avoid word wrap. For > instance: what > > happens when the text doesn't fit the line? (How) do you know the text > will only take one line? Depending on your answers to this question, > the > > solution could already be present, but I don't know. > > > Is there a way to do this? And if not, is our present > approach using > > ColumnText.showTextAligned() setting the left of each > string the best > > approach? > > I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use > setSimpleColumn to define a Rectangle that takes one line. > Then I'd call > > ColumnText.go(). If the text doesn't fit the line, the remaining part > is > > still in the ColumnText object for you to use in another Rectangle. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Merry Christmas all
Oops - sorry I meant Christmas as in Santa Claus, not the Christian holiday. (I'm agnostic - but do believe in Santa.) So Happy Christmas/Chanukah/Kwanzaa/Winter Solstice/Flying Spaghetti Monster day. Thanks - dave From: Leonard Rosenthol [mailto:leona...@pdfsages.com] Sent: Monday, December 22, 2008 3:42 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Merry Christmas all And a Happy Chanukah to you, David ;). Leonard On Dec 22, 2008, at 11:46 AM, David Thielen wrote: Here's wishing you all a very Merry Christmas. And especially to Bruno and his family that his son is doing well under the cancer treatment. It is a brutal brutal disease and it makes you treasure every day you still have your son. - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Merry Christmas all
And a Happy Chanukah to you, David ;). Leonard On Dec 22, 2008, at 11:46 AM, David Thielen wrote: Here’s wishing you all a very Merry Christmas. And especially to Bruno and his family that his son is doing well under the cancer treatment. It is a brutal brutal disease and it makes you treasure every day you still have your son. - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
As Bruno said use ColumnText. If the text fits in that line (you already checked it) no word wrap will be attempted. Use ALIGN_JUSTIFIED_ALL to justify that line to the end. Paulo > -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 6:07 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] How should we write text to > the PDF file? > > We do all of the page formatting - and have to for setting text in > things like the page on & number of pages field - which we > then convert > to text on the output. Plus we've put in a gigantic effort to > match Word > and there is a boatload of small weird rules that impact layout, and > iText does not have that level of control. > > So when we say the text must fit on a line - it all must go on that > line. The output we produce is clean so the text we select for a line > does fit - but I can't use an iText call that may decide that the last > word should go on the next line. > > Also, for centered/right/justified text - it has to know that this is > all the text for this line. And for justified text, needs to > know if it > is the last line of the paragraph (no justify) or a line before the > last. > > Thanks - dave > > > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Monday, December 22, 2008 12:53 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] How should we write text to > the PDF file? > > David Thielen wrote: > > At present we write to the document using > ColumnText.showTextAligned(). > > We pass in the X, Y of the start of the text and in the case of > > justified text, call it word by word. We then also draw underlines > > ourselves afterwards. > > Wow, that's a lot of work. > > > I would prefer that we could call an iText method a line at > a time and > > > give it the start & end of the line, if it's left, center, > right, or > > justified aligned, and if it's underlined. But it would not > word wrap > - > > it would put everything on that one line. > > If you dropped the requirement "it would not word wrap", I'd > say: that's > > easy. Please explain why you want to avoid word wrap. For > instance: what > > happens when the text doesn't fit the line? (How) do you know > the text > will only take one line? Depending on your answers to this > question, the > > solution could already be present, but I don't know. > > > Is there a way to do this? And if not, is our present > approach using > > ColumnText.showTextAligned() setting the left of each > string the best > > approach? > > I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use > setSimpleColumn to define a Rectangle that takes one line. > Then I'd call > > ColumnText.go(). If the text doesn't fit the line, the > remaining part is > > still in the ColumnText object for you to use in another Rectangle. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Pdf version?!
Ivar Kunst wrote: > Hi all, > > Im making PDF-files wiht iText and its getting more beautifull everyday! now > something i came across. The pdf version of my documents are version > 1.4(Acroboat 4.x). But i can't open the files with a Adobe Reader version < > 8.0, how is this possible? Is there a way I can check which element is > causing this? Maybe you're using features that were only introduced in PDF 1.7. iText adds 1.4 in the header by default, but it's up to you to change that if you introduce stuff that is more recent (AES encryption, full compression, OCG,...). -- 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
Re: [iText-questions] How should we write text to the PDF file?
David Thielen wrote: > So when we say the text must fit on a line - it all must go on that > line. OK, then I suggest you do use ColumnText to add each line. Use it in simulation mode first. ColumnText will tell you how many lines it needed if you call the getLinesWritten() method. If you've measured the text yourself, it should always return 1. If it does, add the line for real with ColumnText.go() (not in simulation mode). If it doesn't (but I don't expect it won't), fall back on your initial way of adding text. -- 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
Re: [iText-questions] SVG and iText
Are you converting the SVG to a bitmap or to a set of graphics primitives? If one is the bitmap and the other is the primitives you will see a very large difference in file size. As to the performance, YourKit has a great java profiler. Thanks- dave -Original Message- From: slaisne [mailto:s.lai...@lectra.com] Sent: Monday, December 22, 2008 1:04 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] SVG and iText Hi all, Sorry for the delay... I'm using iText through JasperReports. In JasperReports, I develop a custom svg renderer based on batik. iText needs 30 min to export to pdf this image, and the resulted pdf weight is 2.2Mo and the image is correctly displayed in the pdf. I'm a Mac user, and I export the svg to pdf by using the native pdf driver in mac os x. The result is immediately and the quelity is better than iText: pdf weight 200Ko. So, my conclusion is arround pdf keywords used by iText's PdfGraphics2D to draw the image. Mark Storer-3 wrote: > > Laisne Stéphane lectra.com> writes: > >> >> In order to display SVG file in PDF, I create >> a specific renderer, using batik, and I’ve a big problem with the Itext >> PdfGraphics2D. > > I've done the same thing recently in Cardiff's LiquidOffice. We rewrote > the > entire PDF exporter in Java using iText, and one of the things we do is > render > SVG for our more complex field backgrounds (comb fields, rounded edges, > and more > importantly: pattern fills). > >> When I want to display a SVG with vector-based >> pattern, the PdfGraphics2D can’t render it with good instruction and the >> process time is too long (30min for a simple svg). > > Java's Graphics2D system forces all patterns into a raster image format to > be > tiled. That's not up to iText, it's one of Sun's design decisions. This > results > in some rather painful looking patterns in iText and, it would appear, > rendering > time issues. > > If you can find a way to remove the pattern and replace it with repeated > vector > art, I think you'll find the problem solved. I also wonder at the size of > the > pattern itself. I'd think a smaller tile wouldn't take so long to render > the > pattern, leading me to believe your pattern may be the size of your entire > background... or even larger. > > I was looking into subclassing Graphics2D's java.awt.PaintContext and > java.awt.image.Raster classes to pass around iText's PdfPatternPainter and > using > that within the bounds of PdfGraphics2D, but abandoned it as "not worth > the > effort". Patterns are used very rarely within our product, and I hadn't > run > into your 30 minute rendering time problem. > >> Best regards >> >> >> >> Stéphane >> LAISNE >> >> FIP Tools >> >> Research >> and Development >> >> Lectra / Cestas >> >> Tel.: +33 (0)5 57 97 35 44 >> > > > --Mark Storer > PDF Guy > Cardiff.com > > #include > typedef std::disclaimer Discard; > > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/SVG-and-iText-tp21036090p21132198.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Code page or unicode
We read in the Word document and store it in our internal format - paragraph w/ properties and in each paragraph a sequence of character formatting and text strings. When we scan the document if it's WordML or DOCX then it is Unicode in the file. If it's RTF there is a codepage and we use that to convert to Unicode (and throw away the codepage info). As DOCX is the future, we have to handle the case where we start with Unicode and are given no codepage. Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:59 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Code page or unicode David Thielen wrote: > We build our documents from a Word document. So the customer has already > selected the fonts in Word - and we must use those fonts. So I don't > think that approach will work. And if it's Russian & Polish using > Verdana, don't we then have to get 2 different Verdana fonts, one for > each code page? If you leave the path of using Unicode, you have to take codepages into account, yes. It's not an obvious question. Are you working with an intermediate format? Do you have the encodings in Word? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] SVG and iText
Hi all, Sorry for the delay... I'm using iText through JasperReports. In JasperReports, I develop a custom svg renderer based on batik. iText needs 30 min to export to pdf this image, and the resulted pdf weight is 2.2Mo and the image is correctly displayed in the pdf. I'm a Mac user, and I export the svg to pdf by using the native pdf driver in mac os x. The result is immediately and the quelity is better than iText: pdf weight 200Ko. So, my conclusion is arround pdf keywords used by iText's PdfGraphics2D to draw the image. Mark Storer-3 wrote: > > Laisne Stéphane lectra.com> writes: > >> >> In order to display SVG file in PDF, I create >> a specific renderer, using batik, and I’ve a big problem with the Itext >> PdfGraphics2D. > > I've done the same thing recently in Cardiff's LiquidOffice. We rewrote > the > entire PDF exporter in Java using iText, and one of the things we do is > render > SVG for our more complex field backgrounds (comb fields, rounded edges, > and more > importantly: pattern fills). > >> When I want to display a SVG with vector-based >> pattern, the PdfGraphics2D can’t render it with good instruction and the >> process time is too long (30min for a simple svg). > > Java's Graphics2D system forces all patterns into a raster image format to > be > tiled. That's not up to iText, it's one of Sun's design decisions. This > results > in some rather painful looking patterns in iText and, it would appear, > rendering > time issues. > > If you can find a way to remove the pattern and replace it with repeated > vector > art, I think you'll find the problem solved. I also wonder at the size of > the > pattern itself. I'd think a smaller tile wouldn't take so long to render > the > pattern, leading me to believe your pattern may be the size of your entire > background... or even larger. > > I was looking into subclassing Graphics2D's java.awt.PaintContext and > java.awt.image.Raster classes to pass around iText's PdfPatternPainter and > using > that within the bounds of PdfGraphics2D, but abandoned it as "not worth > the > effort". Patterns are used very rarely within our product, and I hadn't > run > into your 30 minute rendering time problem. > >> Best regards >> >> >> >> Stéphane >> LAISNE >> >> FIP Tools >> >> Research >> and Development >> >> Lectra / Cestas >> >> Tel.: +33 (0)5 57 97 35 44 >> > > > --Mark Storer > PDF Guy > Cardiff.com > > #include > typedef std::disclaimer Discard; > > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/SVG-and-iText-tp21036090p21132198.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] iText : Saved Swing Components as PDF but Full Image Can only Be Viewed in 125%.
the Swing Components are saved as PDF Successfullly but there are some borders of Tables got hiding in the 100% view in the PDF and only Showing if zoomed out...Any Body has any Clue how to render exact image to be in the 100% view for an User...the Below Piece of code i have Used to Save the Image As PDF. private void createPdfFile(String fileName,final Component creditWorksTabPane) { File file = new File(fileName); if (file.exists()) { file.delete(); } Component mComponent = (Component)creditWorksTabPane; RepaintManager.currentManager(mComponent).setDoubleBufferingEnabled(false); //Rectangle pageSize = new Rectangle(625, 782); Document document = new Document(PageSize.LETTER); try { Dimension d = mComponent.getSize(); int panelHeight = d.height; int panelWidth = d.width; double scale = 0.9172f; PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(file)); document.open(); PdfContentByte cb = writer.getDirectContent(); PdfTemplate tp = cb.createTemplate(panelWidth, panelHeight); Graphics2D g2d = tp.createGraphics(panelWidth, panelHeight,new DefaultFontMapper()); g2d.scale(scale,scale); mComponent.printAll(g2d); g2d.dispose(); cb.addTemplate(tp,0,0); RepaintManager.currentManager(mComponent).setDoubleBufferingEnabled(true); } catch(Exception e) { MessageUtil.showError(this, "Fail to save to file " + fileName); logger.error(e.getMessage()); } document.close(); } -- This message was sent on behalf of karthikeyan_sriniva...@fanniemae.com at openSubscriber.com http://www.opensubscriber.com/messages/itext-questions@lists.sourceforge.net/topic.html -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
We do all of the page formatting - and have to for setting text in things like the page on & number of pages field - which we then convert to text on the output. Plus we've put in a gigantic effort to match Word and there is a boatload of small weird rules that impact layout, and iText does not have that level of control. So when we say the text must fit on a line - it all must go on that line. The output we produce is clean so the text we select for a line does fit - but I can't use an iText call that may decide that the last word should go on the next line. Also, for centered/right/justified text - it has to know that this is all the text for this line. And for justified text, needs to know if it is the last line of the paragraph (no justify) or a line before the last. Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:53 PM To: Post all your questions about iText here Subject: Re: [iText-questions] How should we write text to the PDF file? David Thielen wrote: > At present we write to the document using ColumnText.showTextAligned(). > We pass in the X, Y of the start of the text and in the case of > justified text, call it word by word. We then also draw underlines > ourselves afterwards. Wow, that's a lot of work. > I would prefer that we could call an iText method a line at a time and > give it the start & end of the line, if it's left, center, right, or > justified aligned, and if it's underlined. But it would not word wrap - > it would put everything on that one line. If you dropped the requirement "it would not word wrap", I'd say: that's easy. Please explain why you want to avoid word wrap. For instance: what happens when the text doesn't fit the line? (How) do you know the text will only take one line? Depending on your answers to this question, the solution could already be present, but I don't know. > Is there a way to do this? And if not, is our present approach using > ColumnText.showTextAligned() setting the left of each string the best > approach? I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use setSimpleColumn to define a Rectangle that takes one line. Then I'd call ColumnText.go(). If the text doesn't fit the line, the remaining part is still in the ColumnText object for you to use in another Rectangle. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] What does /DigestValue(aa) mean when certify document ?
All, I do not understand the /DigestValue(aa) mean when certify PDF document ? What is the 'aa' ? I looked in the PDf reference but cannot find what it means ? Can someone explain ? I also understand that itext does not calculate the hasvalue ? Correct ? How does the reader than can verify the correct hash value ? Thx, -- View this message in context: http://www.nabble.com/What-does--DigestValue%28aa%29-mean-when-certify-document---tp21126984p21126984.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Pdf version?!
Hi all, Im making PDF-files wiht iText and its getting more beautifull everyday! now something i came across. The pdf version of my documents are version 1.4(Acroboat 4.x). But i can't open the files with a Adobe Reader version < 8.0, how is this possible? Is there a way I can check which element is causing this? Thanks for the time. Grt, Ivar -- View this message in context: http://www.nabble.com/Pdf-version-%21-tp21130315p21130315.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
Re: [iText-questions] Code page or unicode
David Thielen wrote: > We build our documents from a Word document. So the customer has already > selected the fonts in Word - and we must use those fonts. So I don't > think that approach will work. And if it's Russian & Polish using > Verdana, don't we then have to get 2 different Verdana fonts, one for > each code page? If you leave the path of using Unicode, you have to take codepages into account, yes. It's not an obvious question. Are you working with an intermediate format? Do you have the encodings in Word? -- 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
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
David Thielen wrote: >>> All the tags are supported but it's up to you to find the right place to >>> use them. If you do your >>> own layout you have the job facilitated but you must still know where to >>> place the tags. > > Is there an example of this somewhere? Not specifically PDF/A, but tags are also known as "Marked Content", and these are some examples: http://1t3xt.info/examples/browse/?page=example&id=274 http://1t3xt.info/examples/browse/?page=example&id=292 -- 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
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
On Mon, Dec 22, 2008 at 6:17 PM, 1T3XT info wrote: > David Thielen wrote: > > Hi, > > Please correct me if I'm wrong, PDF/X and PDF/A are basically > > restrictions on what can be written to the PDF file. So we do the same > > thing as before, except there are some calls that are not allowed and > > all colors are set in CMYK. For PDF/X that's it – correct? > > That's indeed a short explanation of PDF/X and PDF/A. Note that there > are different subtypes of PDF/X and different levels of PDF/A (with or > without tagging). > > > For PDF/A there is the metadata that is added, but is there any specific > > metadata we are supposed to add > > Yes. > > > or is what is added up to each > > individual? > > No, some parts of the metadata are essential; others are optional. > > > If there is a set of properties we are supposed to put in > > the metadata, is there a link to it somewhere? > > Everything is explained in the ISO specification (which isn't free). > > > And for tagged PDF, this is where we can let Acrobat know the true > > formatting of the document so when a user does copy and paste from > > Acrobat, > > Tagged PDF is used when the text needs to be repurposed, when it needs > to be read out loud,... > > > Is there a link showing what of this is supported in iText, how > > to call it, and what more will be added? > > Basically you can create any tagged PDF with iText (everything that is > defined in the PDF Reference), but it's not automated and that makes it > very hard (see the example that comes with the book). It is specially hard with tables but you can do almost everything. iText is a fantastic tool indeed. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How should we write text to the PDF file?
David Thielen wrote: > At present we write to the document using ColumnText.showTextAligned(). > We pass in the X, Y of the start of the text and in the case of > justified text, call it word by word. We then also draw underlines > ourselves afterwards. Wow, that's a lot of work. > I would prefer that we could call an iText method a line at a time and > give it the start & end of the line, if it’s left, center, right, or > justified aligned, and if it’s underlined. But it would not word wrap – > it would put everything on that one line. If you dropped the requirement "it would not word wrap", I'd say: that's easy. Please explain why you want to avoid word wrap. For instance: what happens when the text doesn't fit the line? (How) do you know the text will only take one line? Depending on your answers to this question, the solution could already be present, but I don't know. > Is there a way to do this? And if not, is our present approach using > ColumnText.showTextAligned() setting the left of each string the best > approach? I'd use ColumnText, but not ColumnText.showTextAligned(). I'd use setSimpleColumn to define a Rectangle that takes one line. Then I'd call ColumnText.go(). If the text doesn't fit the line, the remaining part is still in the ColumnText object for you to use in another Rectangle. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Code page or unicode
We build our documents from a Word document. So the customer has already selected the fonts in Word - and we must use those fonts. So I don't think that approach will work. And if it's Russian & Polish using Verdana, don't we then have to get 2 different Verdana fonts, one for each code page? Thanks - dave -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Monday, December 22, 2008 12:47 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Code page or unicode David Thielen wrote: > What's the "best practices" in this case? I prefer the concept of > keeping everything Unicode but we do need to offer PDF files that are > smaller (ie don't have embedded fonts). What about running all the text through FontSelector? Add a font that isn't embedded first in row (one of the Standard Type 1 Fonts). Add a font like arialuni.ttf as last in row. If a character is encountered for which there isn't a glyph in the Standard Type 1 font, it will look for that glyph in arialuni.ttf. (See the example in chapter 9 and experiment with it.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Code page or unicode
David Thielen wrote: > What’s the “best practices” in this case? I prefer the concept of > keeping everything Unicode but we do need to offer PDF files that are > smaller (ie don’t have embedded fonts). What about running all the text through FontSelector? Add a font that isn't embedded first in row (one of the Standard Type 1 Fonts). Add a font like arialuni.ttf as last in row. If a character is encountered for which there isn't a glyph in the Standard Type 1 font, it will look for that glyph in arialuni.ttf. (See the example in chapter 9 and experiment with it.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Christmas game
Hi all; First, thank you for the answers to me giant list of questions. Second, for anyone who wants a fun game to play over Christmas (or anytime) - http://www.enemynations.com/ (I wrote it) is free. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
>> All the tags are supported but it's up to you to find the right place to use >> them. If you do your >> own layout you have the job facilitated but you must still know where to >> place the tags. Is there an example of this somewhere? Thanks - dave -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:17 PM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc. > -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 5:08 PM > To: itext > Subject: [iText-questions] PDF/X, PDF/A, tagged PDF, etc. > > Hi; > > > > Please correct me if I'm wrong, PDF/X and PDF/A are basically > restrictions on what can be written to the PDF file. So we do the same > thing as before, except there are some calls that are not allowed and > all colors are set in CMYK. For PDF/X that's it - correct? > No, you may have RGB images too, it depends on how you define the colorspace. > > > For PDF/A there is the metadata that is added, but is there any > specific metadata we are supposed to add or is what is added up to > each individual? If there is a set of properties we are supposed to > put in the metadata, is there a link to it somewhere? > Some properties must be there, and are included by default when the the pdf is marked as PDF/A, but you may add others. > > > And for tagged PDF, this is where we can let Acrobat know the true > formatting of the document so when a user does copy and paste from > Acrobat, they get the true formatted document displayed in the PDF - > correct? Is there a link showing what of this is supported in iText, > how to call it, and what more will be added? > All the tags are supported but it's up to you to find the right place to use them. If you do your own layout you have the job facilitated but you must still know wher to place the tags. Paulo Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] How should we write text to the PDF file?
Hi; At present we write to the document using ColumnText.showTextAligned(). We pass in the X, Y of the start of the text and in the case of justified text, call it word by word. We then also draw underlines ourselves afterwards. I would prefer that we could call an iText method a line at a time and give it the start & end of the line, if it's left, center, right, or justified aligned, and if it's underlined. But it would not word wrap - it would put everything on that one line. Is there a way to do this? And if not, is our present approach using ColumnText.showTextAligned() setting the left of each string the best approach? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Code page or unicode
Hi; We have been using Unicode for all of our output. Works great in that we don't need to worry about what characters are in a string. But it means we always have embedded fonts - which is not good. We do not know up front what characters are in the text we get and while I think it's rare, it would not surprise me that both Russian and Polish or Chinese and Thai are both in a document. We can easily add the code to determine the codepage for each string and separate out strings using different codepages. What's the "best practices" in this case? I prefer the concept of keeping everything Unicode but we do need to offer PDF files that are smaller (ie don't have embedded fonts). Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Joining lines that change properties
David Thielen wrote: > This is a problem because setting the lines to start and stop at > specific positions with the next line lined up against them, is not > drawn that way by Acrobat. It seems to start/stop lines a bit off at the > ends. If you say "join lines", do you mean they have to look like the first two cells in the third row of the table on this PDF: http://1t3xt.info/examples/results/in_action/chapter06/pdfptable_colors.pdf If so, you'll find the answer here: http://1t3xt.info/examples/browse/?page=example&id=101 If not, you can always draw the borders using a CellEvent. The following example doesn't answer your question: http://1t3xt.info/examples/browse/?page=example&id=164 but it shows how you could define the way borders are handled yourself. (In the example the border rectangle has rounded corners.) -- 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
Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images
>> I am hoping you will consider making this behavior a permanent >> change to >> the PdfGraphics2D class. If so, I have attached a copy of my >> version of >> the PdfGraphics2D.java file to this e-mail for your review. Of >> course, >> if you have any suggestions for improving this approach then I am >> interested in your suggestions. > > Thank you very much for your code contribution! > Either I or Paulo will have a look at it as soon as we have time. Wonderful! Thank you for considering this modification. Steve -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] WMF/EMF support
Hi; I have the full EMF spec from Microsoft and got it with no restrictions on its use. I'll try to add that to iText. And positioned WMF if it's not supported (that is a very small change). Thanks - dave -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] WMF/EMF support EMF is not that much more difficult that WMF, it just has more commands and not that well documented. We must not forget that EMF is little more than a replay of Windows gdi commands. Paulo > -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 4:56 PM > To: itext > Subject: [iText-questions] WMF/EMF support > > Hi; > > > > Does iText now support Enhanced Meta Files and positioned Windows Meta > Files? The version we are using only supported standard Windows Meta > Files and for the others it became a bitmap. > > > > If it does not, it strikes me as easy to add and I am happy to add > that functionality. Is there any reason that it might be harder than I > think it would be to add it? > > > > Thanks - dave > > Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
David Thielen wrote: > Hi, > Please correct me if I’m wrong, PDF/X and PDF/A are basically > restrictions on what can be written to the PDF file. So we do the same > thing as before, except there are some calls that are not allowed and > all colors are set in CMYK. For PDF/X that’s it – correct? That's indeed a short explanation of PDF/X and PDF/A. Note that there are different subtypes of PDF/X and different levels of PDF/A (with or without tagging). > For PDF/A there is the metadata that is added, but is there any specific > metadata we are supposed to add Yes. > or is what is added up to each > individual? No, some parts of the metadata are essential; others are optional. > If there is a set of properties we are supposed to put in > the metadata, is there a link to it somewhere? Everything is explained in the ISO specification (which isn't free). > And for tagged PDF, this is where we can let Acrobat know the true > formatting of the document so when a user does copy and paste from > Acrobat, Tagged PDF is used when the text needs to be repurposed, when it needs to be read out loud,... > Is there a link showing what of this is supported in iText, how > to call it, and what more will be added? Basically you can create any tagged PDF with iText (everything that is defined in the PDF Reference), but it's not automated and that makes it very hard (see the example that comes with the book). -- 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
Re: [iText-questions] PDF/X, PDF/A, tagged PDF, etc.
> -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 5:08 PM > To: itext > Subject: [iText-questions] PDF/X, PDF/A, tagged PDF, etc. > > Hi; > > > > Please correct me if I'm wrong, PDF/X and PDF/A are basically > restrictions on what can be written to the PDF file. So we do > the same thing as before, except there are some calls that > are not allowed and all colors are set in CMYK. For PDF/X > that's it - correct? > No, you may have RGB images too, it depends on how you define the colorspace. > > > For PDF/A there is the metadata that is added, but is there > any specific metadata we are supposed to add or is what is > added up to each individual? If there is a set of properties > we are supposed to put in the metadata, is there a link to it > somewhere? > Some properties must be there, and are included by default when the the pdf is marked as PDF/A, but you may add others. > > > And for tagged PDF, this is where we can let Acrobat know the > true formatting of the document so when a user does copy and > paste from Acrobat, they get the true formatted document > displayed in the PDF - correct? Is there a link showing what > of this is supported in iText, how to call it, and what more > will be added? > All the tags are supported but it's up to you to find the right place to use them. If you do your own layout you have the job facilitated but you must still know wher to place the tags. Paulo Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] WMF/EMF support
EMF is not that much more difficult that WMF, it just has more commands and not that well documented. We must not forget that EMF is little more than a replay of Windows gdi commands. Paulo > -Original Message- > From: David Thielen [mailto:da...@windward.net] > Sent: Monday, December 22, 2008 4:56 PM > To: itext > Subject: [iText-questions] WMF/EMF support > > Hi; > > > > Does iText now support Enhanced Meta Files and positioned > Windows Meta Files? The version we are using only supported > standard Windows Meta Files and for the others it became a bitmap. > > > > If it does not, it strikes me as easy to add and I am happy > to add that functionality. Is there any reason that it might > be harder than I think it would be to add it? > > > > Thanks - dave > > Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] z-order
Fantastic - thanks Ps - this is perfect for us because it's rare that the z-order is not 0 and so we only have to do this for those unusual cases. -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, December 22, 2008 12:11 PM To: Post all your questions about iText here Subject: Re: [iText-questions] z-order Several PdfContentByte objects will also work well as layers as long as you keep track of save/restore state. The order that you copy this objects to the "master" PdfContentByte will determine the z-order. This is what happens with the original 4 layers. Paulo > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Monday, December 22, 2008 5:06 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] z-order > > David Thielen wrote: > > Hi; > > I understand that iText has the 4 layers. Is there any way to set a > > specific z-order for each item to have a larger number of layers? > > Larger number of layers: you could create several PdfTemplate objects; > add content to these templates/layers using ColumnText. Then add the > layers to a page in the preferred order. > > > If this cannot be done, if 2 items are drawn on the same > level, does the > > second always get placed above the first? > > When in the same layer: yes. Also: when you add the templates/layers, > the one added last, will be the one on top. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Joining lines that change properties
Hi; When we draw a table, the top and bottom borders can be different widths/colors/patterns from the left & right borders (width change is the most common). Is there a way to get PDF to join the corners of each line when they are dissimilar? We have tried numerous approaches but if the line width changes, Acrobat usually will not join the lines. Same for the internal lines in the table, is there a way to join them to the outside borders where they stub in to them? This is a problem because setting the lines to start and stop at specific positions with the next line lined up against them, is not drawn that way by Acrobat. It seems to start/stop lines a bit off at the ends. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Pdf copy.
Granatelli Giuseppe wrote: > So, how is possible to copy the pdf file maintainig the patch ? Take a small PDF file, apply the patch and post it on the mailing list so that we understand what you exactly mean by "patch". -- 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
Re: [iText-questions] Merry Christmas all
David Thielen wrote: > Here’s wishing you all a very Merry Christmas. And especially to Bruno > and his family that his son is doing well under the cancer treatment. It > is a brutal brutal disease and it makes you treasure every day you still > have your son. Yes, he's getting minor surgery tomorrow (to remove the port-a-kath). It's a brutal disease and it caused a lot of physical damage, but it also allowed me to really get to know my son, better than I would have known him if all of this had never happened. And that's indeed something I treasure every day. Merry Christmas to all! 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
Re: [iText-questions] z-order
Several PdfContentByte objects will also work well as layers as long as you keep track of save/restore state. The order that you copy this objects to the "master" PdfContentByte will determine the z-order. This is what happens with the original 4 layers. Paulo > -Original Message- > From: 1T3XT info [mailto:i...@1t3xt.info] > Sent: Monday, December 22, 2008 5:06 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] z-order > > David Thielen wrote: > > Hi; > > I understand that iText has the 4 layers. Is there any way to set a > > specific z-order for each item to have a larger number of layers? > > Larger number of layers: you could create several PdfTemplate > objects; > add content to these templates/layers using ColumnText. Then add the > layers to a page in the preferred order. > > > If this cannot be done, if 2 items are drawn on the same > level, does the > > second always get placed above the first? > > When in the same layer: yes. Also: when you add the templates/layers, > the one added last, will be the one on top. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] PDF/X, PDF/A, tagged PDF, etc.
Hi; Please correct me if I'm wrong, PDF/X and PDF/A are basically restrictions on what can be written to the PDF file. So we do the same thing as before, except there are some calls that are not allowed and all colors are set in CMYK. For PDF/X that's it - correct? For PDF/A there is the metadata that is added, but is there any specific metadata we are supposed to add or is what is added up to each individual? If there is a set of properties we are supposed to put in the metadata, is there a link to it somewhere? And for tagged PDF, this is where we can let Acrobat know the true formatting of the document so when a user does copy and paste from Acrobat, they get the true formatted document displayed in the PDF - correct? Is there a link showing what of this is supported in iText, how to call it, and what more will be added? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] WMF/EMF support
David Thielen wrote: > Hi; > > Does iText now support Enhanced Meta Files and positioned Windows Meta > Files? The version we are using only supported standard Windows Meta > Files and for the others it became a bitmap. > > If it does not, it strikes me as easy to add and I am happy to add that > functionality. Is there any reason that it might be harder than I think > it would be to add it? I'm sorry, I don't know that by heart. If it's isn't present and easy to add, you're welcome to contribute the code and we'll add it. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] z-order
David Thielen wrote: > Hi; > I understand that iText has the 4 layers. Is there any way to set a > specific z-order for each item to have a larger number of layers? Larger number of layers: you could create several PdfTemplate objects; add content to these templates/layers using ColumnText. Then add the layers to a page in the preferred order. > If this cannot be done, if 2 items are drawn on the same level, does the > second always get placed above the first? When in the same layer: yes. Also: when you add the templates/layers, the one added last, will be the one on top. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images
Bill Ensley wrote: > [Bill Ensley] > Is there someplace, either on 1T3XT.com or lowagie.com where a > "wish list" of features, bugs etc, that other developers can work > on and present back to the project? Not yet, but we're working on it. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Re garding Performance Issues While merging PDFs
Orpu wrote: > Hi, > > Question 1) > Suppose in a collection i have some thousands of pdfs which have to be > merged, while doing so is there any performance issues like > 1) will application become slow I'm sorry, but that's an absurd question. It depends on the hardware, on the way you write your code, also on the fact if you're using PdfCopy or PdfSmartCopy. > 2) what about the response time Some answer as above. > 3) load related and like through put etc.. Same answer as above. > Question 2) > Upto how many pdfs we can merge. Another absurd question: there are limits in PDF (in general, not limited to iText), but it's obvious that merging 1000 documents with only 1 page per document will be different from merging 1000 documents with 1000 pages. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] z-order
Hi; I understand that iText has the 4 layers. Is there any way to set a specific z-order for each item to have a larger number of layers? I ask because we get elements in page order and they can come in any z order. Theoretically, we could have 5 strings, each on top of the other, with each having a unique z-order. If this cannot be done, if 2 items are drawn on the same level, does the second always get placed above the first? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Unable to cast object of type 'iTextSharp.text.Paragraph' to type 'iTextSharp.text.Table'.
Gopinath wrote: > I am getting following error ...please help me > > Unable to cast object of type 'iTextSharp.text.Paragraph' to type > 'iTextSharp.text.Table'. Please don't expect any help unless you provide the file: D:\PMS_RUNNING_FILES\PMSCLIENT\Test.html -- 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
Re: [iText-questions] Conversion of html to pdf
Orpu wrote: > hi, > > > I have a table in html file which contains some rows and columns. OK. > The data > will come and fill from the database, So you create HTML based on data from a database. > On top of the first row i have a pdf image, You don't have a "PDF image", you have a link. The fact that it's a clickable image (a jpg, gif, or PNG, definitely NOT a PDF) is irrelevant. > upon clicking the image table along with rows and columns including > data should convert to PDF. Just like you created the HTML on the server based on data in the database you can use iText to create a PDF with that data. > If we can do it with iText suggest me some code samples. There are plenty of examples here: http://1t3xt.info/examples/browse/ -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] WMF/EMF support
Hi; Does iText now support Enhanced Meta Files and positioned Windows Meta Files? The version we are using only supported standard Windows Meta Files and for the others it became a bitmap. If it does not, it strikes me as easy to add and I am happy to add that functionality. Is there any reason that it might be harder than I think it would be to add it? Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Background for the next couple of questions
Hi; We use an older version of iText, that matches iTextDotNet. We do this because we also build our code using J# for our .NET version. We are now going to write a layer of our code that has a common API that we call, and underneath it will call the latest iText on the Java side and the new C# iText on the .net side. Our code handles the page layout so we use iText to draw to the page, but we do not use it for line breaks, table layout, etc. We do use it to handle ligatures, etc so we don't have to redo the work involved in handling Arabic. So that brings me to asking questions, most on things that have been added, a couple on questions we are not sure we used the best approach on. I've just been through all the relevant parts of Bruno's book and am left with the questions following. Questions to follow. Thanks - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Merry Christmas all
Here's wishing you all a very Merry Christmas. And especially to Bruno and his family that his son is doing well under the cancer treatment. It is a brutal brutal disease and it makes you treasure every day you still have your son. - dave -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] exception while opening pdf files of scanned documents
The file is broken, it expects the startxref at 61670904 which, obviously, is wrong. Sign it in non append mode. Paulo > -Original Message- > From: luca_quag...@intesa.it [mailto:luca_quag...@intesa.it] > Sent: Monday, December 22, 2008 3:51 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] exception while opening pdf files > of scanned documents > > > hi, > I'm working on an application doing digital signatures of > files, of course using iText for managing pdf files. > the purpose is to calculate the signature and append it to > the corresponding file. > I encountered a problem while I was testing some pdf which > was obtained from a scan performed by a samsung clx-3170 > multi function printer (if this can help). > the invocation of > > PdfStamper stp = PdfStamper.createSignature(reader, > out, '\0', null, true); > > (where of course:reader is a PdfReader > out is an OutputStream) > > > triggers the following: > > com.lowagie.text.DocumentException: Append mode requires a > document without errors even if recovery was possible. > at com.lowagie.text.pdf.PdfStamperImp.(Unknown Source) > at com.lowagie.text.pdf.PdfStamper.(Unknown Source) > at > com.lowagie.text.pdf.PdfStamper.createSignature(Unknown Source) > > > does anyone has an idea of why this happens? > I'm attaching one of this kind of file, maybe it can help > out. (it's a form but the filled data are fake,no problem for that). > thanks in advance, Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF in database
Hi Orpu, On 22/12/2008, Orpu wrote: > > Hi, > > Question 1) > > How to save the PDF in the Oracle Database using iText. > > Question 2) > > I have a User with id say 5. In his account he has 3 PDFs in the database, > saved as PDF1, PDF2, PDF3. > He retrieved one PDF with name PDF2. and did some manipulations for it and > later saved the same.Does the manipulation will effect the document in the > database i.e changes made to the document will be updated in the database > for the same user once saved again. You keep sending questions about interactions between iText and a database. This is totally irrelevant, since iText's scope is the creation and manipulation of PDF files (and RTF files up to a certain point), in Java or C#. Wether the files come from (or are saved to) a database is totally transparent from the library point of view. Please check again what iText was designed for [*], and come back to this list when you have iText-related questions. For non iText-related issues, please redirect them to the correct forums or mailing list. HTH, alexis [*] http://1t3xt.com/products/itext.php -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PDF in database
1. The table column must be defined as a blob (binary large object or whatever data type Oracle uses) big enough to hold the largest document you might have. Then, you need to get your pdf in a byte array by either using a ByteArrayOutputStream when creating it or reading an existing file into a byte array. Then update the table using a prepared statement, like this... PreparedStatement ps = conn.prepareStatement("UPDATE myTableName SET columnName1 = ? WHERE recordId = 5"); ps.setBytes(1,myByteArrayOutputStream.toByteArray()); ps.executeUpdate(); 2. You get the document like this... byte[] myDocument = resultSet.getBytes("columnName1"); Until you update the database, as in step 1, the value in the database does not change. Same as any other value in the database, unless Oracle has some special API object that does it automatically for you. Somewhere, somehow, the database must be updated. - Original Message - From: "Orpu" To: Sent: Monday, December 22, 2008 9:07 AM Subject: [iText-questions] PDF in database > > Hi, > > Question 1) > > How to save the PDF in the Oracle Database using iText. > > Question 2) > > I have a User with id say 5. In his account he has 3 PDFs in the database, > saved as PDF1, PDF2, PDF3. > He retrieved one PDF with name PDF2. and did some manipulations for it and > later saved the same.Does the manipulation will effect the document in the > database i.e changes made to the document will be updated in the database > for the same user once saved again. > > Thanks > Rajesh > -- > View this message in context: http://www.nabble.com/PDF-in-database-tp21128422p21128422.html > Sent from the iText - General mailing list archive at Nabble.com. > > > -- > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] PDF in database
Hi, Question 1) How to save the PDF in the Oracle Database using iText. Question 2) I have a User with id say 5. In his account he has 3 PDFs in the database, saved as PDF1, PDF2, PDF3. He retrieved one PDF with name PDF2. and did some manipulations for it and later saved the same.Does the manipulation will effect the document in the database i.e changes made to the document will be updated in the database for the same user once saved again. Thanks Rajesh -- View this message in context: http://www.nabble.com/PDF-in-database-tp21128422p21128422.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Pdf copy.
I have a pdf file and I added a patch using Adobe Acrobat. I suppose the patch is something like a label attached over the original document. When I copy this file with iText library the copied file doesn't have the patch. If I try to print the pdf file the preview in the printing dialog doesn't have the patch. I print the document to a "Microsoft Document Interface" printer and also in this case the printed document (.mdi)doesn't have the patch. So, how is possible to copy the pdf file maintainig the patch ? __ Giuseppe Granatelli -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Decode CCITTF Image from within a pdf file
Dear all iText lovers, I'm currently developping a process that read barcodes (Code 128) from pdf files and split them accordingly. Each PDF file contains several pages and each page is a unique scanned image. The image format is usually jpg, gif or png. At first the process splits the original pdf files into single pdf pages. Then each image is extract from each single pdf page. Finally, the image is read to search barcode and decode it if a barcode is found. I'm currently extracting the image from a single pdf page with the following method: public ArrayList extract(InputStream input) throws PdfException { ArrayList results = new ArrayList(); try { PdfReader pdfReader = new PdfReader(input); for (int i = 0; i < pdfReader.getXrefSize(); i++) { PdfObject pdfObject = pdfReader.getPdfObject(i); if (pdfObject != null) { if (pdfObject.isStream()) { PdfStream pdfStream = (PdfStream) pdfObject; PdfObject pdfObjectSubType = pdfStream .get(PdfName.SUBTYPE); if (pdfObjectSubType != null) { if (pdfObjectSubType.toString().equals( PdfName.IMAGE.toString())) { PRStream stream = (PRStream) pdfStream; byte[] img = PdfReader.getStreamBytes(stream); ByteArrayOutputStream baos = new ByteArrayOutputStream(); baos.write(img); baos.flush(); baos.close(); results.add(baos); } } } } } } catch (IOException ioe) { String msg = "Error while extracting images from pdf document"; log.error(msg, ioe); throw new PdfException(msg, ioe); } return results; } Everything is working like a charm except that sometimes the image format is compressed tiff (CCITTF). Then the previous code is throwing the following exception : java.io.IOException: The filter /CCITTFaxDecode is not supported. If I use the following instruction instead byte[] img = PdfReader.getStreamBytesRaw(stream); I have to decode the stream myself but I don't know how to use propertly TIFFFaxDecoder and/or TiffImage for this purpose. Within the pdf dictionary of this single pdf page, I can find the following parameters : /XObject Dictionary PdfDictionary Dictionary /I6 Stream of type: /XObject Stream PdfDictionary Stream of type: /XObject /Decode [1, 0] PdfArray [1, 0] /DecodeParms Dictionary PdfDictionary Dictionary /BlackIs1 true /K -1 /Columns 2464 /Type /XObject /ColorSpace /DeviceGray /Subtype /Image /Name /I6 /Width 2464 /BitsPerComponent 1 /Length 86393 /Height 3488 /Filter /CCITTFaxDecode How can I use these information to decode the stream myself ? Thanks in avance for your help, Bertrand GILLIS -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Re garding Performance Issues While merging PDFs
Hi Orpu, On 22/12/2008, Orpu wrote: > > Hi, > > Question 1) > Suppose in a collection i have some thousands of pdfs which have to be > merged, while doing so is there any performance issues like > 1) will application become slow > 2) what about the response time > 3) load related and like through put etc.. Answer 1) It's impossible for us to answer these. We have no clue about the documents you want to merge, the system the application will be running on, the said application, etc... And even if we knew that, without giving a try we would have a hard time answering. You'll have to check this all by yourself. > Question 2) > Upto how many pdfs we can merge. Answer 2) No hard-coded limit if that's what you mean. However, you might hit some limitations not set by iText in any way : heap space, maximum number of inodes, disc space, etc... HTH, alexis -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] what all do I need to use iText in .NET - I'm using VS2005, WinXP Pro.
Look for iTextSharp. -- ___ 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