Re: [iText-questions] external css files support in Itext

2009-03-24 Thread Subrahmanya, Rama Krishna
Hi Ram, I am also stuckup in the similar problem. Please let me know if you find any solution or work around. Infact I am using table tag in my html and the pdf generated is not giving me a proper out put. I would request Ram to send me some sample code used to convert HTML to pdf. It would

Re: [iText-questions] Not able to stamp the attached document in the middle

2009-03-24 Thread tadaka Pandu Rangam
Hi All, Thanks for the input. Now i changed the code to consider crop box, hurray now everything is fine. Posting the code for other's reference :). Many many thanks to 1T3XT info team. import java.io.FileOutputStream; import java.io.*; import java.util.HashMap; import com.lowagie.text.Image;

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Pradeep Kumar Badam
Hi Mike, Thanks a lot for your valuable reply. Its working with PdfWriter.releaseTemplate(). Pradeep -Original Message- From: Mike Marchywka [mailto:marchy...@hotmail.com] Sent: Tuesday, March 24, 2009 5:51 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Out

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Pradeep Kumar Badam
Hi Paulo, Thanks a lot for your valuable answer. Pradeep -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Tuesday, March 24, 2009 3:50 PM To: Post all your questions about iText here Subject: Re: [iText-questions] OutOfMemoryError when PdfTemplate is used Use Pd

[iText-questions] adding javascript to an existing button in an acroform

2009-03-24 Thread inelation
Could someone please tell me how I could programmatically add javascript to an existing button named "button1" in an acroform of an existing pdf using itext. I currently add javascript to the document for a "DID PRINT" event: . ... String javascript = . P

[iText-questions] external css files support in Itext

2009-03-24 Thread Ramachandran Subramanian
Hi , I Have been using iText to convert html content to PDF.PDF is coming out well.But one requirement i have is that i need to specify a external css file so that the PDF content is displayed based on the css file.Even if i construct a string with html content and add style tag it is not getti

Re: [iText-questions] Export data of PDF as XML

2009-03-24 Thread Andy Strickland
Thanks for the lively discussion on menu semantics guys...:-/. Back to the original question of the topic: Here's what I did. String path = ; String pdfPath = path + "form.pdf"; PdfReader reader = new PdfReader(pdfPath); AcroFields fields = reader.AcroFields; XmlNode dataSetsNode =

Re: [iText-questions] Optional Printing using iText

2009-03-24 Thread Vishal.S
Ok, everything seems to be working now as expected. Initially I was adding the watermark in onStartPage() event. Using this, I had to add the watermark for the first page separately (The event was somehow not invoked for the first page) and for adding the watermark initially I was using getDirect

Re: [iText-questions] Optional Printing using iText

2009-03-24 Thread 1T3XT info
Vishal.S wrote: > I am not using document.newPage anywhere. I gave that as an examples because I wanted to explain that iText never adds an empty page without reason. > I have a big table, which starts > in the first page and ends in the second page. Hence, the second page is > added automaticall

Re: [iText-questions] Optional Printing using iText

2009-03-24 Thread Vishal.S
Thanks for pointing that out. I will check the differences between document.add() and ColumnText.showTextAligned(cb, ...). I am not using document.newPage anywhere. I have a big table, which starts in the first page and ends in the second page. Hence, the second page is added automatically. I

Re: [iText-questions] Optional Printing using iText

2009-03-24 Thread 1T3XT info
Vishal.S wrote: > Thanks. Really appreciate your response. It worked. > I noticed, Regarding the text that I dont want to print, if I add it using > "document.add(...)", With document.add you need to set the layer in a different way. See "iText in Action" section 12.3.6. > it prints, it has to a

Re: [iText-questions] OT Export data of PDF as XML/ question re "Reader"

2009-03-24 Thread Mike Marchywka
Thanks, I don't want to sound too harsh but these are the issues that keep coming up with menu driven apps where there is not alternative means ( like itext ) to interact with a given information thing. > From: undisclosed reliable sources > To: itext-que

Re: [iText-questions] Optional Printing using iText

2009-03-24 Thread Vishal.S
Thanks. Really appreciate your response. It worked. I noticed, Regarding the text that I dont want to print, if I add it using "document.add(...)", it prints, it has to added using "ColumnText.showTextAligned(cb, ...)". I dont know the reason behind that. I may get into issues later when, I start

Re: [iText-questions] OT Export data of PDF as XML/ question re "Reader"

2009-03-24 Thread Leonard Rosenthol
Reader has a Help menu item that you can use... Regarding the menu items - you actually have it a bit backwards. For a normal PDF, you will see all the options that are available to you for that document. HOWEVER, a PDF can be "Reader Enabled", which means that when Reader sees it, it will "e

Re: [iText-questions] Setting acroform value via iText messes with acrofield formating

2009-03-24 Thread jsar
>> One last question: Is there a way for me to loop through all the AcroFields >> and find out the formating set for each and everyone of them? >I don't have the time to make an example, >but the Javascript Reference should help you: >http://www.adobe.com/devnet/acrobat/javascript.html > >This is

Re: [iText-questions] Export data of PDF as XML

2009-03-24 Thread Andy Strickland
1T3XT info wrote: > > Strickland, Andrew R. wrote: >> What I need to know is if iText is capable of taking the source PDF >> file and dumping Its data as an XML file - and what major >> classes/methods I would use to do this. > > Retrieving data from a form: http://1t3xt.be/?X000413 > Cr

Re: [iText-questions] Setting acroform value via iText messes with acrofield formating

2009-03-24 Thread 1T3XT info
jsar wrote: > ... > String js = "var f = this.getField('amount'); \n f.value = '0' + f.value;"; > stamper.addJavaScript(js); > ... Thanks for the feedback! > One last question: Is there a way for me to loop through all the AcroFields > and find out the formating set for each and everyone of them?

Re: [iText-questions] Export data of PDF as XML

2009-03-24 Thread 1T3XT info
Strickland, Andrew R. wrote: > What I need to know is if iText is capable of taking the source PDF > file and dumping Its data as an XML file - and what major > classes/methods I would use to do this. Retrieving data from a form: http://1t3xt.be/?X000413 Creating an XML: you don't need iText

Re: [iText-questions] Not able to stamp the attached document in the middle

2009-03-24 Thread 1T3XT info
tadaka Pandu Rangam wrote: > Hi All, > > I am not able to stamp the attached document in the middle. I have > successfully stamped in the middle for other documents with a media > boxes as shown Did you look at the Cropbox? It's: /CropBox[0.0 432.0 612.100037 1224.099976] and that's why your i

Re: [iText-questions] Issue in Image rotation using Matrix and addImage()

2009-03-24 Thread 1T3XT info
surftango wrote: > How do you rotate an image using a Matrix and the addImage()? I got the > rotation working with the code given below. But the issue is that the rotate > image gets scaled to 1 pixel ! The coordinates in your transformation matrix are wrong. -- This answer is provided by 1T3XT B

Re: [iText-questions] Problems with Acrobat 9 files

2009-03-24 Thread 1T3XT info
george.pitc...@ingenta.com wrote: > T%his has worked sweetly until recently. Some of my users who have used > Acrobat > 9 to create their own [filename_temp] have not been able to add covers etc. Show us such a PDF and we'll try reproducing the problem. Of course: if the iText version you are usi

Re: [iText-questions] OT Export data of PDF as XML/ question re "Reader"

2009-03-24 Thread Mike Marchywka
>>> If you don't mind my asking, how do you do this with Reader 9? >>> I couldn't figure it out from the icons/pictures on the tool bars or >>> manually checking all the menu tree and the help page navigation >>> wasn't obvious. >> >> In Reader 9 once you've enabled user rights to export form da

Re: [iText-questions] Show Truncation of Text in a PdfPCell

2009-03-24 Thread 1T3XT info
trainrobbery wrote: > Hey guys, > > I'm using a PdfPTable with PdfPCells in it, which a have a FixedRowHeight > and the setNoWrap=false. So, iText always truncates my texts when they won't > fit in the cell. That's what I want. > > I now want iText to indicate me the truncation (if so), just like

Re: [iText-questions] Export data of PDF as XML

2009-03-24 Thread Andy Strickland
Mike Marchywka-2 wrote: > > > >> If you don't mind my asking, how do you do this with Reader 9? >> I couldn't figure it out from the icons/pictures on the tool bars or >> manually checking all the menu tree and the help page navigation >> wasn't obvious. > > In Reader 9 once you've enabled us

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Mike Marchywka
Get more memory? LOL I'm responding not with a specific answer but because your question unfortunately typifies all the problems I've associated with PDF applications as seen by end users. When an Acrobat Reader ties up my CPU in an infinite loop or even finite but extensive processing, or ta

Re: [iText-questions] Setting acroform value via iText messes with acrofield formating

2009-03-24 Thread Paulo Soares
I have in my to-do list for a long time the handling of this cases, not by having a full javascript interpreter but just by looking at the functions, like AFNumber_Format, and build the formatting from the parameters. It doesn't cover hand built javascript but works well with the field formattin

Re: [iText-questions] Export data of PDF as XML

2009-03-24 Thread Mike Marchywka
> > > Hi > everyone, > > > > I need > to know how to export the data of a PDF file as XML - programmatically. I > know how to do it by enabling user rights and using Adobe Reader and I know > how > to do it by making a button that uses Adobe's JavaScript to do an export from > the PDF itself, nei

[iText-questions] Show Truncation of Text in a PdfPCell

2009-03-24 Thread trainrobbery
Hey guys, I'm using a PdfPTable with PdfPCells in it, which a have a FixedRowHeight and the setNoWrap=false. So, iText always truncates my texts when they won't fit in the cell. That's what I want. I now want iText to indicate me the truncation (if so), just like in a iText table with the functi

Re: [iText-questions] background image for table

2009-03-24 Thread 1T3XT info
Cell or table events. vishnupriya wrote: > Thanks & Regards You're welcome. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Apps built with the Adobe(R) Flex(R) framework and Fl

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used

2009-03-24 Thread Paulo Soares
Use PdfWriter.releaseTemplate(). Use this method to release the memory used by a template. This method writes the template to the output. The template can still be added to any content but changes to the template itself won't have any effect. Paulo > -Original Message- > From: Pradee

Re: [iText-questions] OutOfMemoryError when PdfTemplate is used (Pradeep Kumar Badam)

2009-03-24 Thread jmueto
> 2. I have to create some PDFs with pages at 90 degree rotation which can > be done by adding pdfTemplate to pdfContentByte. > Try using affine transformation for rotated content. This ist just matrix multiplication - no magic.

[iText-questions] Problems with Acrobat 9 files

2009-03-24 Thread George . Pitcher
Hi, I have been using iText for several years, for removing/adding covers to existing PDF files, and encrypting them. I do this in a PHP environment by running the following line (or suimilar, depending on the action required): $z = exec("java -cp C:\\j2sdk1.4.2_05\\jre\\lib\\iText.jar com.lowag

[iText-questions] background image for table

2009-03-24 Thread vishnupriya
Thanks & Regards Vishnu Priya -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Fle

Re: [iText-questions] Setting acroform value via iText messes with acrofield formating

2009-03-24 Thread jsar
Hi again It seems that the problem was the way AcroFields deal with their values and when they choose to apply formating to them. Simply adding the following line to the script I posted earlier did the trick: f.value = '0' + f.value where f is the field did the trick, forcing the acrofield to re

[iText-questions] Export data of PDF as XML

2009-03-24 Thread Strickland, Andrew R.
Hi everyone, I need to know how to export the data of a PDF file as XML - programmatically. I know how to do it by enabling user rights and using Adobe Reader and I know how to do it by making a button that uses Adobe's JavaScript to do an export from the PDF itself, neither of those fits my