Re: [iText-questions] Annotations vs Notes

2004-06-07 Thread Mike Christoff
I can't seem to get the annotation to appear on the page. This is what I'm doing: PdfAnnotation.createText(writer, new Rectangle(200, 200, 250, 250), "title", "message", true, "Note"); Do I need to do anything else here? (Obviously I've created the writer before hand.) Basicaly I'm trying to re

[iText-questions] Problem with page rotation.

2004-06-07 Thread Martin Cerba
I need create copy of pdf file with one or more pages rotated by 90, 180 and 270 degrees. My function to rotate by 90 degreeslooks like: // create pdf reader reader = new PdfReader(inputFile.getCanonicalPath()); // get number of pages in input file pagesNumber = reader.getNumberOfPages();

Re: AW: AW: [iText-questions] How to modify a signature dictionary

2004-06-07 Thread DI Randolph Kepplinger
hallo peter! by now i am so far to write sizes and a signature to the pdf... thts the good news, rhe bad news is, thar acrobat shows an empty document with no signature. the signature itself looks like this: < /SubFilter /adbe.pkcs7.detached >> do you have an idea why this does not work? regar

Re: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Jason Mosher - hotmail
Paulo: Fantastic!!! Thank you for your help and sorry for my confusion. Jason - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Jason Mosher - hotmail" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 11:13 AM Subject: RE: [iText-questions] PdfStamp

RE: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Paulo Soares
Here's an example to create this bookmarks: ArrayList list_1 = new ArrayList(); HashMap map = null; map = new HashMap(); list_1.add(map); map.put("Action", "GoTo"); map.put("Title", "FEATURES"); map.put("Page", "2 Fit"); map = new HashMap(); list_1.add(map); map.put("Action", "GoTo"); map.put("Tit

[iText-questions] RE: PdfCopy vs PdfCopyFields

2004-06-07 Thread Paulo Soares
You need to use PdfCopyFields if you use fields. If not using fields the only advantage of PdfCopy is that it's more memory efficient. You also have PdfCopyFields.setOutlines() but will have to use the iText version at itextpdf.sf.net. Best Regards, Paulo Soares > -Original Message- > Fro

[iText-questions] PdfCopy vs PdfCopyFields

2004-06-07 Thread Jason Mosher - hotmail
Here is my situation: I use PdfCopyFields to concatenate many PDFs with form fields that could have identical field names on them. However, I don't see anyway to add bookmarks. So, I looked at PdfCopy and see the setOutlines function exists, however, I get an error with the concatenated document

Re: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Jason Mosher - hotmail
Paulo: Yes, I read the javadoc and I see your example, but I am doing all of this in memory and building up the bookmarks on the fly depending on the data asked for from a database. I was not expecting the need to generate XML, just to make a bookmark. Is that what is needed? Do I need to creat

RE: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Paulo Soares
Have you read the SimpleBookmark javadoc? You have an example of the XML produced and the List content. Use it as a model to create your bookmark. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jason Mosher - hotmail

Re: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Jason Mosher - hotmail
Paulo: I can't use the code you sent me. The PDFs I am reading in don't have ANY bookmarks. I need to read the PDF in, fill in the form fields and leave the fields un-"flattened" and then create a brand new bookmark from scratch. How is THIS done? Thanks, Jason - Original Message -

RE: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Paulo Soares
That's explained in the SimpleBookmark javadoc. For example: PdfReader reader = new PdfReader("TDA9800_CNV_4.pdf"); java.util.List bm = SimpleBookmark.getBookmark(reader); SimpleBookmark.exportToXML(bm, new FileOutputStream("c:\\ic.xml"), "UTF-8", false); System.out.println(bm.toString()); will p

Re: [iText-questions] PdfStamper and CREATING NEW BOOKMARKS

2004-06-07 Thread Jason Mosher - hotmail
Paulo: Thanks for the information. I tried all weekend to pour through the documentation and examples I could find, but did not find an example of creating a NEW bookmark with SimpleBookmark. Could you pass along a simple example? Thanks in advance, Jason - Original Message - From: "

Re: [iText-questions] hidden text

2004-06-07 Thread Leonard Rosenthol
At 06:01 AM 6/7/2004, Whenham Patrick (Gecotec) wrote: I have tons of image + hidden text pdfs ( paper -> tif -> pdf -> OCR-image+hidden text ). OK. To comply with legal constraints we have to deal with (100% quality OCR or none), Seems reasonable. Is there a reason you d

RE: [iText-questions] hidden text

2004-06-07 Thread Paulo Soares
Title: hidden text It shouldn't be too difficult if you know the pdf format. The steps are:   - parse the content to keep just the images. Use PRTokeniser. - eliminate the references to the fonts in the resources dictionary. - call pdfReader.removeUnusedObjects() - use PdfStamper to output th

RE: [iText-questions] Images are not placed where I want them

2004-06-07 Thread Paulo Soares
PdfWriter.setStrictImageSequence(true) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Olle Ahnve > Sent: Monday, June 07, 2004 10:58 AM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Images are not placed where I want them > > I am tryi

[iText-questions] hidden text

2004-06-07 Thread Whenham Patrick (Gecotec)
Title: hidden text Hi, I have tons of image + hidden text pdfs ( paper -> tif -> pdf -> OCR-image+hidden text ). To comply with legal constraints we have to deal with (100% quality OCR or none), I must remove the hidden text from the pdf files (the text generated by running OCR 'image + hi

[iText-questions] Images are not placed where I want them

2004-06-07 Thread Olle Ahnve
I am trying to add text and images. The problem is that if an image is at the end of a page it is moved to the next page, while text that I have added after the image is placed in place of the image (i.e. above the image), resulting in a switched around text. How can I make the image be placed

[iText-questions] HTML to PDF Convesion.

2004-06-07 Thread Rahul Khobragade
Hi, Thanks to Paulo for helping me out. I have another query. Can the iText code be used to interpret HTML tags directly. Or change of approach is required. I am looking to read from a web page and convert it to PDF retaining all the formatting (which is in HTML tags). Thanks in ant