Re: [iText-questions] Extracting Attachments from PDF

2006-08-28 Thread Neil Lane
Title: Re: [iText-questions] Extracting Attachments from PDF Would anyone be able to supply example code as to how to extract attachments from a PDF???   The things that I am most concerned about are:   getting the attached file(s) getting the filename getting the m

[iText-questions] PDF using Scripting

2006-08-28 Thread Md Sagri
Hi I wanna know whether is it possiple to generate PDF using script. please give me some suggestion.Regards Md Sagri Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

Re: [iText-questions] [Bruno Lowagie] images going blank- got the result

2006-08-28 Thread Md Sagri
Hello Mr. Bruno How are you? I wanna know whether is it possiple to generate PDF using script. please give me some suggestion. Regards Md Sagribruno <[EMAIL PROTECTED]> wrote: Md Sagri wrote:> 4, 5 , 6, and 9th image are not completly loaded from the database > due to memory limits.You should

Re: [iText-questions] Extracting Attachments from PDF

2006-08-28 Thread Paulo Soares
There's a lot more code in ExtractAttachments. Paulo From: [EMAIL PROTECTED] on behalf of Neil Lane Sent: Mon 28-Aug-06 21:23 To: 'Post all your questions about iText here' Subject: Re: [iText-questions] Extracting Attachments from PDF I am using the followin

Re: [iText-questions] Extracting Attachments from PDF

2006-08-28 Thread Neil Lane
I am using the following log.info("getting the dictionary"); PdfDictionary dictionary = reader.getCatalog(); try { ExtractAttachments.unpackFile(reader, dictionary, "//opt/jboss-4.0.4//server//all//extract.xls"); } catch (Exception e) { e.printStackTrace();

Re: [iText-questions] PDF Size

2006-08-28 Thread Mark Storer
Ugh. Both of those files use line art to draw their text. No fonts at all, embedded or otherwise. As Paulo said, the Graphics2D interface is significantly less than ideal. Every drawing command individually sets the color (even when the color hasn't changed). Using paths instead of fonts al

Re: [iText-questions] Extracting Attachments from PDF

2006-08-28 Thread Paulo Soares
That class extracts all the attachments in document and annotations. As far as I know there aren't any others. Post a link to your PDF and tell us what you'd expect to happen. Paulo - Original Message - From: "Neil Lane" <[EMAIL PROTECTED]> To: Sent: Monday, August 28, 2006 4:17 PM Su

[iText-questions] Extracting Attachments from PDF

2006-08-28 Thread Neil Lane
Hi   I am trying to extract all the attachments from a PDF.    I have tried to use the com.lowagie.tools.plugins.ExtractAttachments class to do this, but no joy  Please can someone assist with this issue? Thanks in advance  Neil Lane   Mobile: +27

Re: [iText-questions] PDF Size

2006-08-28 Thread Paulo Soares
This is one of those freak cases. The raw data generated by itext is 1,648,965 bytes and by freehep is 2,765,456 bytes. iText is more efficient. The difference is that the freehep data compresses a lot better, 100kb for freehep and 450kb for itext. I don't have a solution for this. Paulo -

Re: [iText-questions] HTML-formatted text

2006-08-28 Thread Paulo Soares
Use HTMLWorker. It will give you a list of paragraphs that you can use anywhere such as positioning it absolutely with ColumnText. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, August 28, 2006 3:21 PM Subject: [iText-questions] HTML-formatted text Hi, In my

[iText-questions] HTML-formatted text

2006-08-28 Thread itextlist . gd
Hi, In my app I have to create PDF hard copies of the reports created on the screen (Save as PDF) The header of a report is defined by the user himself. He's allowed to use HTML formatting to format the header according to his whishes. A possible (simple) header string could be: This is t

Re: [iText-questions] Footer rows

2006-08-28 Thread Ken
Here is the code I'm using. I get a table with 2 rows, not 3, at the bottom of the page.    public void onEndPage(PdfWriter writer, Document document)     {     Rectangle page = document.getPageSize();     PdfPTable head = new PdfPTable(1);     PdfPTable foo

Re: [iText-questions] Image in landscape

2006-08-28 Thread Paulo Soares
That's fixed in version 1.4.3. Paulo - Original Message - From: "Omer" <[EMAIL PROTECTED]> To: Sent: Monday, August 28, 2006 2:51 PM Subject: [iText-questions] Image in landscape > Hi, > I am tring to add an image to a landscape template. > When the template is portrait the image gets

Re: [iText-questions] reading urls in pdf

2006-08-28 Thread Leonard Rosenthol
At 09:53 AM 8/28/2006, jerry wrote: >I am new to itext.i will be very much thankful to u if u provide me a sample >code to extract the urls used in the pdf. There is no single/simple operation to do this. You'll need to walk through all the parts of the PDFs where Actions can e

Re: [iText-questions] Image in landscape

2006-08-28 Thread bruno
Omer wrote: >Ok, Thanks for the help. The image is in the correct >spot now but rotated the wrong direction(sideways). >How can I rotate it to the correct way. > > That's in the API: http://itext.ugent.be/library/api/com/lowagie/text/Image.html#setRotation(float) http://itext.ugent.be/librar

Re: [iText-questions] Image in landscape

2006-08-28 Thread Bruno Lowagie
Omer wrote: > Ok, Thanks for the help. The image is in the correct > spot now but rotated the wrong direction(sideways). > How can I rotate it to the correct way. That's in the API: http://itext.ugent.be/library/api/com/lowagie/text/Image.html#setRotation(float) http://itext.ugent.be/library/api/

[iText-questions] reading urls in pdf

2006-08-28 Thread jerry
hi, I am new to itext.i will be very much thankful to u if u provide me a sample code to extract the urls used in the pdf. thanks and regards, jerry. - Using Tomcat but need to do more? Need to support web services, securi

[iText-questions] Image in landscape

2006-08-28 Thread Omer
Hi, I am tring to add an image to a landscape template. When the template is portrait the image gets placed in the correct place but when the template is landscape the image is in the wrong place. When check the page size for the landscape template it gives me 8.5 width and 11 for height. I chec

Re: [iText-questions] Image in landscape

2006-08-28 Thread bruno
Omer wrote: >Hi, >I am tring to add an image to a landscape template. >When the template is portrait the image gets placed in >the correct place but when the template is landscape >the image is in the wrong place. > >PdfContentByte cb = stamp2.getOverContent((int) >mugShot[0]); > > stamp2.set

Re: [iText-questions] Image in landscape

2006-08-28 Thread Omer
Ok, Thanks for the help. The image is in the correct spot now but rotated the wrong direction(sideways). How can I rotate it to the correct way. Thanks --- bruno <[EMAIL PROTECTED]> wrote: > Omer wrote: > > >Hi, > >I am tring to add an image to a landscape template. > >When the template is po

Re: [iText-questions] extracting the annotations

2006-08-28 Thread Leonard Rosenthol
At 01:22 AM 8/28/2006, jerry wrote: > I want to read the annotations from an existing PDF, is its possible with > iText ? Yes, it's possible. Leonard --- Leonard Rosenthol

Re: [iText-questions] locating existing anchors

2006-08-28 Thread bruno
danc wrote: >Could you be more specific about this possibility? Any pointers to figuring >out how to test if this works? > > I don't have the time to explain this right now. Also it will depend on your knowledge of the PDF Reference whether you will understand my explanation or not. Maybe anot

[iText-questions] iText 1.4.4

2006-08-28 Thread bruno
Hello all, I have just made a new release: iText 1.4.4. It contains support for XFA (static forms) by Paulo and for reusing existing RTF in newly created RTF files by Mark. br, Bruno - Using Tomcat but need to do more? Need to

Re: [iText-questions] locating existing anchors

2006-08-28 Thread danc
Cheers for the fast reply Bruno. bruno lowagie.com> writes: > Maybe also if your anchor is a 'destination'. Could you be more specific about this possibility? Any pointers to figuring out how to test if this works? Are there examples from the tutorial site that I could use as a starting point?

[iText-questions] PDF Compression

2006-08-28 Thread Thomas Merli
Hello, I'm using iText PDFStamper to add some annotations, predefined informations metadatas and custom metadatas (inside header). Some of input PDF's are compressed and some others not. How can I know if the input file is compressed or not ? For instance just copying PDFReference16.pdf downlo

Re: [iText-questions] locating existing anchors

2006-08-28 Thread bruno
danc wrote: >The question is: can iText read an existing PDF and figure out the position of >a specific anchor? > If the anchor is an AcroField, yes. Maybe also if your anchor is a 'destination'. Not if you mean you have put some plain text somewhere in document. PDF doesn't work that way. br, Br

[iText-questions] locating existing anchors

2006-08-28 Thread danc
Greetings, (Aplologies if this has been covered, my initial searches have not turned up anything useful so far..) I am trying to add an image to an existing template PDF (created with FOP). I would rather not have to specify the absolute location of the image. Instead, my template PDF has an a

Re: [iText-questions] Footer rows

2006-08-28 Thread bruno
Ken wrote: > >>As far as I remember you add a footer using page events. > >>You want to use a 3-row table in this footer.Well, then why don't > you create a >>3-row PdfPTable and add it with writeSelectedRows? > > That's what I'm doing, using code from the examples. I don't see a > constructor f