[iText-questions] getting image from form xobject

2010-06-10 Thread sal salaimani
Currently I am retrieving image from a form xobject for a page from pdf file as follows: Get page dictionary for a page Get resource dictionary from the page dictionary Get xobject dictionary from the resource dict Get keys from the xobject dict Get stream for a key if the stream sub

[iText-questions] super scipt in iText

2010-06-10 Thread Lu, Tao (MOH)
Hi, Expertes, How to produce super scipt in iText? 5700 Yonge Street, 7th Floor Many Thanks! Tao -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky

[iText-questions] OnDocumentClose and adding content

2010-06-10 Thread nabbleiText
I'm trying to add a corporate logo to the footer of the last page of my PDF document. I thought that onDocumentClose would be a good spot to insert the image at. However, iText does not seem to insert my image. I've tried the following: public void onCloseDocument(PdfWriter writer, Document docum

Re: [iText-questions] Extend nested table to bottom of contained cell

2010-06-10 Thread Marco Schindler
here's an example which demonstrates the issue. the document I'm working on is a bit more complex though and involves headers/footers within nested tables. please keep me in cc since I'm not subscribed.. PdfPTable outerTable = new PdfPTable( 2 ); outerTable.WidthPercentage = 75; outerTable.Default

Re: [iText-questions] Adding a PdfImportedPage into a xobject PdfDictionary - is this a good thing to do?

2010-06-10 Thread Felipe Roos
1T3XT info wrote: > Your requirement calls for a Proof of Concept in the form of an interesting > example on itextpdf.com. Maybe you can already start and share this example. > If it doesn't work, I'll take a look at it after work. I tried the following code: //A file containing

Re: [iText-questions] Extra margin after print

2010-06-10 Thread Lu, Tao (MOH)
Got it. Excellent. Thanks a lot! Tao From: Paulo Soares [mailto:psoa...@glintt.com] Sent: June 10, 2010 10:51 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Extra margin after print Printers have mechanical limitations. If the

Re: [iText-questions] Extra margin after print

2010-06-10 Thread Paulo Soares
Printers have mechanical limitations. If the PDF looks good on screen the problem is either the printer or your expectations. Paulo - Original Message - From: Lu, Tao (MOH) To: Post all your questions about iText here Sent: Thursday, June 10, 2010 3:36 PM Subject: Re: [iText-

Re: [iText-questions] Extra margin after print

2010-06-10 Thread Lu, Tao (MOH)
Thanks a lot for your reply. I tried following test. It looks like "setViewerPreferences" does not make any difference. PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("C:/temp/blank.pdf")); document.setMargins(0, 0, 0, 0); writer.setP

Re: [iText-questions] MalformedByteSequenceException

2010-06-10 Thread Mike Marchywka
> To: itext-questions@lists.sourceforge.net > From: kishore.chitt...@tcs.com > Date: Thu, 10 Jun 2010 17:30:36 +0530 > Subject: Re: [iText-questions] MalformedByteSequenceException > > > > Hi, > > Can you please guide me how to resolve > this issue. Even tho

Re: [iText-questions] MalformedByteSequenceException

2010-06-10 Thread Kishore Chitturi
Hi, Can you please guide me how to resolve this issue. Even though it is not related with itext. Thanks & Regards Kishore CH Experience certainty. IT Services Business Solutions Outsourcing ___

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-10 Thread Leonard Rosenthol
I am surprised that any JPEG viewer will properly render that image if it has a profile in the wrong number of colourants! Leonard -Original Message- From: Danila Galimov [mailto:danila.gali...@exigenservices.com] Sent: Thursday, June 10, 2010 7:50 AM To: Post all your questions about i

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-10 Thread Danila Galimov
>The problem is that you have a RGB jpeg with a CMYK profile. Apparently the >tool you used to convert the tiff >to jpeg also converted the CMYK image to >RGB. Well, if this is not allowed, maybe iText should throw an exception on writing if someone is trying to do that?   Paulo - Original

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-10 Thread Paulo Soares
The problem is that you have a RGB jpeg with a CMYK profile. Apparently the tool you used to convert the tiff to jpeg also converted the CMYK image to RGB. Paulo - Original Message - From: Danila Galimov To: Post all your questions about iText here Sent: Thursday, June 10, 2010

Re: [iText-questions] MalformedByteSequenceException

2010-06-10 Thread Paulo Soares
The problem is unrelated to iText, you have a malformed xml. Paulo - Original Message - From: kishore To: itext-questions@lists.sourceforge.net Sent: Thursday, June 10, 2010 12:16 PM Subject: [iText-questions] MalformedByteSequenceException Hi, I am getting malformed exc

Re: [iText-questions] MalformedByteSequenceException

2010-06-10 Thread Mike Marchywka
on quick look I'm not sure what you expect this to have to do with itext. That is, it isn't obvious the XML came from a pdf file or was created by itesxt etc. Did you look at the bytes going into the parser? In any case it would probably be obvious if you dumped these bytes and had some idea what

[iText-questions] MalformedByteSequenceException

2010-06-10 Thread kishore
Hi, I am getting malformed exception when i am generating PDF. Please refer the sample code and exception stack trace below. Can you please let me know what needs to be done. Exception com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byt

Re: [iText-questions] max number of comboboxes in a pdfform is 85?

2010-06-10 Thread camikusch
Am Tue, 8 Jun 2010 04:25:49 -0700 schrieb Leonard Rosenthol : hi leonard, thanks for your reply :) since you've got adobe.com in your mail adress i think the final conclusion in this case is best sent to you. since i switched to apache instead of lighttpd sending pdfforms was more successful, b

[iText-questions] MalformedByteSequenceException

2010-06-10 Thread kishore
Hi, Please find the code below and am getting exception (MalformedByteSequenceException). Can you please let me know what needs to be done? Getting exception at : "doc = builder.parse(new StringBufferInputStream (sourceURL));" in below code // Sample Code import java.io.DataInputStream; import

[iText-questions] AUTO: Dawn M Holte is out of the office. (returning 06/16/2010)

2010-06-10 Thread DMHolte
I am out of the office until 06/16/2010. I will be out of the office with no access to voice mail or email. I will respond as soon as I can. Thanks Dawn Note: This is an automated response to your message "iText-questions Digest, Vol 49, Issue 44" sent on 6/10/2010 1:42:54 AM. This is the

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-10 Thread Danila Galimov
>Embedded profiles inside of image data are _NOT_ recognized by the PDF format >and thus by conforming >readers.  If you wish to tag the images with the >profile (which is a good thing!), then you need to be sure >that you are >constructing them in ICCBased colorspace inside the PDF with the pr

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread Wain, Matthew
Cool, thanks Thomas :-) Just makes your fix clear to everyone. Good luck with the rest of your assignment. -Original Message- From: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent: 10 June 2010 09:13 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable p

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread fhomasp
Right, sorry.. I changed document.add(main); to main.writeSelectedRows(0,main.getRows().size(),0f,main.getTotalHeight(),canvas); cheers ;-) -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2250062.html Sent from the iText - G

Re: [iText-questions] Add timestamp to signed PDF

2010-06-10 Thread mkl
Daniel Perez Alvarez, Daniel Perez Alvarez wrote: > I've found the following about the signature in the signed PDFs I have to > timestamp: > > * The '/Filter' entry contains 'Adobe.PPKLite' > * The '/SubFilter' entry contains 'adbe.x509.rsa_sha1' > * The X509 certificate is stored in the '/Cert

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread Wain, Matthew
Hi Thomas, Can you please be clear on what 'did the trick', as you don't seem to include the email your replying to, which makes it difficult to know which question/info/answer your referring to. Thanks :-) Matthew p.s. well done on getting it sorted :thumbs: -Original Message- From: