Re: [iText-questions] pdf to html

2007-08-07 Thread Bruno Lowagie
ssinai wrote: > I'm trying to figure out how to display pdf images in an html file. The easiest way is to embed the PDF in an HTML file as a PDF (without doing any conversion): Most modern browsers will know how to show the PDF using the Adobe Reader plug-in. The PDF will look as a part of the

Re: [iText-questions] Can not open the pdf created with PdfCopy

2007-08-07 Thread Bruno Lowagie
new2pdf wrote: > If I create the pdf without the compression (commented the full compression > line) then it is working fine. Full compression is supported from PDF 1.5 (Acrobat 6). Readers before Adobe Reader 6 won't be able to open a PDF file that is fully compressed. br, Bruno

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread Bruno Lowagie
new2pdf wrote: > I agree. I would like to reduce the size of the forms as some of the users > are on dial-up connection and the size of the pdf documents are in the range > of 700K-1MB. So even a slight reduction in size help those users. Sometimes using PdfSmartCopy instead of PdfCopy will help.

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread Leonard Rosenthol
On Aug 7, 2007, at 4:15 PM, new2pdf wrote: > I agree. I would like to reduce the size of the forms as some of > the users > are on dial-up connection and the size of the pdf documents are in > the range > of 700K-1MB. So even a slight reduction in size help those users. Then use a PDF

Re: [iText-questions] pdf to html

2007-08-07 Thread mister bean
this was just asked and answered on this list: http://www.nabble.com/How-to-convert-pdf-pages-to-image-pages-tf4228087.html best wishes, --mr. bean ssinai wrote: > > I'm trying to figure out how to display pdf images in an html file. I > guess the way to do this is to convert from pdf to gif

[iText-questions] pdf to html

2007-08-07 Thread ssinai
I'm trying to figure out how to display pdf images in an html file. I guess the way to do this is to convert from pdf to gif or png or jpg, and then use HtmlWriter to put them into an html document. Does anyone have any good advice as to the best way to convert from pdf to the other image format

Re: [iText-questions] Get a PdfObject By its name

2007-08-07 Thread Paulo Soares
AcroFields.getFieldItem(). Paulo - Original Message - From: "Pradeepa Evangovan" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 8:30 PM Subject: [iText-questions] Get a PdfObject By its name > Hi, > Is it possible to grab a reference to a particular form field by > it

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread new2pdf
I agree. I would like to reduce the size of the forms as some of the users are on dial-up connection and the size of the pdf documents are in the range of 700K-1MB. So even a slight reduction in size help those users. -- View this message in context: http://www.nabble.com/Can-not-open-the-pdf-cr

Re: [iText-questions] How to convert pdf pages to image pages

2007-08-07 Thread Carsten Hammer
itexttoolbox has a "rip" plugin using ghostscript for this in svn. Rakesh.raj schrieb: > Hi, > >How to convert pdf pages to image pages. > > > Regards > Rakesh > > - > This SF.net email is sponsored by: Splunk Inc. > S

[iText-questions] Get a PdfObject By its name

2007-08-07 Thread Pradeepa Evangovan
Hi, Is it possible to grab a reference to a particular form field by its name (PdfName.T)? Something like PdfDictionary dict = someClass.grabPdfObject ("Address"). Please let me know. Thanks in advance, Pradeepa ---

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread Leonard Rosenthol
Using fullCompression() in conjunction with Acrobat forms OVER THE WEB is just NOT a good idea :(. Leonard On Aug 7, 2007, at 1:48 PM, new2pdf wrote: > > Now I have a new problem. When I add the fullCompression to > PdfCopy, the > newly created pdfs are not opening. It says Acrobat could n

Re: [iText-questions] Add new field dictionary to the

2007-08-07 Thread Paulo Soares
- Original Message - From: "Pradeepa Evangovan" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 6:50 PM Subject: Re: [iText-questions] Add new field dictionary to the > Thanks Paulo. > I have added the field dictionary to the 'FIELDS' array. But the newly > created dictionary is

Re: [iText-questions] Add new field dictionary to the

2007-08-07 Thread Pradeepa Evangovan
Thanks Paulo. I have added the field dictionary to the 'FIELDS' array. But the newly created dictionary is added as direct object and the fields are not visible. At present, I am adding PdfIndirectReference object (got using PdfReader.getPRIndirectReference) to the 'FIELDS' dictionary. How to cre

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread new2pdf
Now I have a new problem. When I add the fullCompression to PdfCopy, the newly created pdfs are not opening. It says Acrobat could not open 'Acr46.tmp' (read and populated by servlet) because it is either not a supported file type or the file has been damaged. If I create the pdf without the comp

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread new2pdf
Thanks Paulo... I added copy.setFullCompression(); after the following line and the size became smaller. PdfCopy copy = new PdfCopy(document, new FileOutputStream(outFileName)); copy.setFullCompression(); -- View this message in context: http://www.nabble.com/size-of-the-pdf-created-with-PdfCo

Re: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf

2007-08-07 Thread Paulo Soares
Maybe you need full compression. Paulo - Original Message - From: "new2pdf" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 4:42 PM Subject: [iText-questions] size of the pdf created with PdfCopy is largerthan original pdf > > Hi! > > I use PdfCopy create a new pdf document by

[iText-questions] size of the pdf created with PdfCopy is larger than original pdf

2007-08-07 Thread new2pdf
Hi! I use PdfCopy create a new pdf document by extracting few pages from another pdf document. But the newly created pdf has a larger file size than the original even though it has lesser number pages. Could any one help me understand why is it like this? This is the code that I am using to creat

Re: [iText-questions] Add new field dictionary to the existing pdf

2007-08-07 Thread Paulo Soares
If you use PdfStamper.addAnnotation() there are limitations on what the field naming can be but if you go directly to PdfReader it's possible to create a field with, for example, TextField and insert it as a kid or in any other place. Paulo - Original Message - From: "Pradeepa Evangov

Re: [iText-questions] pixel -> points?

2007-08-07 Thread Paulo Soares
Without any scaling pixels are point or in other words 72 dpi. Paulo - Original Message - From: "Lars Nagel (Trium)" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Tuesday, August 07, 2007 3:07 PM Subject: [iText-questions] pixel -> points? Hi all, I want to

Re: [iText-questions] pixel -> points?

2007-08-07 Thread Lars Nagel (Trium)
Thank you, Derk. I produced the same code and first expected pixels and points to be the "same" here. You confirmed it ... and I had to realize that my error was elsewhere. > Rectangle position = new > Rectangle(document.left(),document.bottom(),document.right(),document.top()); > > float imgLe

Re: [iText-questions] pixel -> points?

2007-08-07 Thread Derk Crezee
I think its something like this: Rectangle position = new Rectangle(document.left(),document.bottom(),document.right(),document.top()); float imgLeft = position.getLeft() + (position.getWidth() - image.getScaledWidth())/2; float imgBottom = position.getBottom() + (position.getHeight() - image.get

[iText-questions] Add new field dictionary to the existing pdf

2007-08-07 Thread Pradeepa Evangovan
Hi, I have gone through the PdfStamper API and Pdf reference... I am able to add form fields in the existing pdf, change the kids and parent properties of the existing form fields. Is it possible to add a new field dictionary to the existing pdf? I have created a field dictionary

[iText-questions] pixel -> points?

2007-08-07 Thread Lars Nagel (Trium)
Hi all, I want to position an image with setAbsolutePosition(...) such that it is displayed in the center of the page. As setAbsolutePosition(...) gets the coordinates of the lower left corner, I need the picture's width and height. But getWidth() and getHeight() return the width / height in p

Re: [iText-questions] Problems with Launching Application

2007-08-07 Thread Derk Crezee
I'm using adobe reader 8.1.0 and Windows Xp. Indeed it crashes with all other pdf files. Furthermore, I get the same warning before opening the pdf file: "The application c:\program files\adobe\Reader 8.0\Reader\AcroRd32.exe is set up to be launched by this pdf file ." Thnx On 8/7/07, Leon

Re: [iText-questions] Problems with Launching Application

2007-08-07 Thread Leonard Rosenthol
On Aug 6, 2007, at 11:36 AM, Derk Crezee wrote: > It works for most resources, however, when I want to launch a local > pdf file acrobat crashes. For example: > What version of Acrobat on what OS platform? Does it happen for all files or just some? > uri = "file:///c:/test.pdf" >

Re: [iText-questions] Problem in Importing Landscape PDF Doc.

2007-08-07 Thread harsha ravindra
Hii R u frm Sri Lanka harsha On 8/1/07, Dharmendra Kumar <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > I am facing a strange problem. Don't know if I am missing some steps. So > the problem is when I import a landscape page and tries to render it in my > own PDF it renders the content and ever