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
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;
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
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
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
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
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 =
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
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
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
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
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
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
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
>> 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
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
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?
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
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
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
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
>>> 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
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
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
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
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
>
>
> 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
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
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
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
> 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.
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
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
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
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
35 matches
Mail list logo