At 05:23 PM 4/18/2006, Schmerling, Chuck wrote:
I am currently using iText to create PDFs. One of the
pages of the PDF I am creating contains 1 or more images.
OK.
There is possibility that the image file isn't actually an image
file but rather an ai (Adobe Illustrator)
Hello,
I am currently using iText to create PDFs. One
of the pages of the PDF I am creating contains 1 or more images. There is possibility
that the image file isn’t actually an image file but rather an ai (Adobe
Illustrator) file, which in reality is pretty much a PDF in
Paulo,
Thank you for the suggestion. PdfStamper does work well when only
changes to the metadata are needed. The code looks like this:
String str = "file1.pdf";
String fileName = "file2.pdf";
com.lowagie.text.pdf.PdfReader pdfReader = new
com.lowagie.text.pdf.PdfReader(str);
byte meta[] = pdfRea
To just change the metadata use PdfStamper, no PdfCopy is needed.
Paulo
- Original Message -
From: "Segev, Eli" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>; "Antoine" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, April 18, 2006 9:32 PM
Subject: RE: [iText-questions] PDF Versio
Paulo,
One more comment: I don't add additional content to the PDF file. I do
change the metadata, though. Is your comment below still valid in this
case?
Eli Segev
-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 4:14 PM
To:
Paulo,
The code here is based on
http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfco
py.
If there is a better way of doing it, could you provide more details on
how to do it? There is no sample code that follows your suggestion
below.
Eli Segev
-Original
Oops! Sorry--I see it now.
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
The only tutorial I see uses RtfHeaderFooter. Will that work with PDF?
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
You can't add content to PdfCopy. Assemble your pdf with PdfCopy and then
modify the resulting pdf with PdfStamper.
Paulo
- Original Message -
From: "Segev, Eli" <[EMAIL PROTECTED]>
To: "Antoine" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, April 18, 2006 3:03 PM
Subject: RE: [iText-questi
If you keep ignoring the examples in the tutorial it will never work.
Paulo
- Original Message -
From: "Ken" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, April 18, 2006 8:42 PM
Subject: [iText-questions] HeaderFooter foolishness
Sorry, still not tracking on why this works on the second p
Sorry, still not tracking on why this works on the second page but not the first. public void onStartPage(PdfWriter arg0, Document arg1) { if (sensitivity != null) { Phrase phrase = new Phrase(sensitivity.toUpperCase(),
Antoine,
Very funny!
I am looking for code that copies the content of file to another. The
code also some changes to the content. This part of the code is omitted
here for clarity. Here is the code as it uses iText:
String str = "D:\\images\\jackets.pdf";
String fileNa
Ken wrote:
Here's the handler:
private class EventHandler extends PdfPageEventHelper
{
public void onStartPage(PdfWriter writer, Document document)
{
...
document.add(para);
}
}
Wow, don't ever use document.add in a PageEvent!
Th
Here's the handler:private class EventHandler extends PdfPageEventHelper { public void onStartPage(PdfWriter writer, Document document) { if (sensitivity != null) { Chunk ch = new Chunk("\n\n " + sensitivity.toUpperC
It depends when you are changing the page size, how you are
getting the text position, etc. As usually, showing code is the fastest way to
get an answer.
Paulo
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
KenSent: Tuesday, April 18, 2006 5:31 PMTo:
itex
From: Eric J Kaplan
[mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 5:20
PMTo: Paulo Soares;
itext-questions@lists.sourceforge.netSubject: RE: [iText-questions]
Support for wide tables
Paulo
Yes, I had seen this.
That’s fine and I suppose it will w
Is there some problem with PageEvents in landscape mode? I set up a handler to print a line when onStartPage was encountered. It works fine on the first page, but then prints again in the middle of the second page. Is there something I need to do to tell it it's in landscape?
Talk is cheap.
Paulo
Yes, I had seen this. That’s fine
and I suppose it will work, however I was hoping for something a little more
automated. In this example I have to explicitly break the columns myself. I
also note that the fifth column cells are missing their right hand border.
Thanks
Eric
http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/index.html
Example SplitTable.java.
Paulo
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
J KaplanSent: Tuesday, April 18, 2006 4:48 PMTo:
itext-questions@lists.sourceforge.netSubject: [iTex
All
We are considering iText and have the following question. I
see a discussion in the documentation about large tables that have many rows
and the ability to span multiple pages. However, I see nothing about a table
that is wide (more columns than can fit on one page) and having it sp
At 10:49 AM 4/18/2006, Bert Vingerhoets wrote:
Full embedding of fonts slows the process down even more: I get 7.5
pps (was 12 pps for subset embedding).
Yes, if you are writing each page separately - I am sure!
Don't do that!
I am indeed writing each page separately as I go
Thank you for your suggestions.
Full embedding of fonts slows the process down even more: I get 7.5
pps (was 12 pps for subset embedding).
I am indeed writing each page separately as I go, but the overhead of
creating a file and performing initializing stuff is minimal as this
also happens in spl
Jorge Albalate Lopez wrote:
The resulting image in the pdf is not 8 x 12 cm.
Still you haven't convinced me that your Adobe Reader doesn't shrink the
image.
br,
Bruno
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
Ken wrote:
OL, I'll look at PageEvents. What then is HeaderFooter used for?
It dates from before PageEvents.
It's old and undocumented (I think).
br,
Bruno
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that
bruno lowagie.com> writes:
> Without seeing the image/PDF, there's little we can do.
> There are too many unknown parameters for us to know what went wrong.
> For instance: how did you define the rectangle?
> Did you change the Graphics State before adding the image?
> br,
> Bruno
>
> --
OL, I'll look at PageEvents. What then is HeaderFooter used for?
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
On Tuesday 18 April 2006 10:11, Sujatha Bharathan wrote:
> I am trying to change the TOC font to "MS Mincho(for chinese
> characters)". But the font is not changing and shows up as strange
> characters.It is still "times new roman"(i tried to see the fotn name in my
> word).i am using RTFwriter2.
How about *nix
$ cp a.pdf b.pdf
or windows
copy a.pdf b.pdf
I guess you will have to be a little more explicit about what you mean
by "copy a PDF file". Why do you want to copy the file? Do you want
the whole thing? Why not use std java methods? Do you want the pages
only? Only some pages?
Cheers
Antoine,
Do you have a sample code that copies a PDF file?
Eli Segev
-Original Message-
From: Antoine [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 3:19 AM
To: Segev, Eli
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] PDF Version
Eli,
At 07:42 AM 4/18/2006, Bert Vingerhoets wrote:
Our company uses iText for generating PDF documents and we have
noticed that, when embedding fonts, the overhead for creating a new
document is very large. Take a look at the following times (obtained
with test documents containing six different font
Jorge Albalate Lopez wrote:
But it is not only a problem of the printing. I have a rectangle in
the pdf with dimensions 8 x 12 cm, and the image is inside it. If I
open the resulting pdf with the Adobe Reader, the image added is
smaller, and it would have the dimensions of the rectangle.
Wi
bruno lowagie.com> writes:
> How have you printed the PDF?
> If you used Adobe Writer, you have probably used 'Fit to Printer
> Margins' as Page Scaling.
> In that case it's perfectly normal that the dimensions are smaller than
> 8x12 cm.
> You told the reader it was OK to shrink the PDF.
>
>
Hi,
Our company uses iText for generating PDF documents and we have
noticed that, when embedding fonts, the overhead for creating a new
document is very large. Take a look at the following times (obtained
with test documents containing six different fonts):
small output (139 pages) in a single do
If the TIFF has rotation information you can know about
it in Image.getInitialRotation(). After that you have to decide if you rotate
the page or not.
Paulo
From: James Farren
[mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 12:29
PMTo: Paulo SoaresSubject: Rotating PDF
Jorge Albalate Lopez wrote:
Sorry, but I have probed this code, and I get a pdf with the document.
Then I print the document and I measure with a rule the dimensions of
the printed image, but the dimensions are not 8x12 cm. The resulting
dimensions are smaller.
How have you printed the PDF?
bruno lowagie.com> writes:
> I think you haven't read my original response close enough.
> I didn't say you had to use the image in points, I told you
> you had to calculate the desired dimensions from cm to points;
> not to use the dimensions in points as you do now.
>
> For instance: if you wa
Jorge Albalate Lopez wrote:
The image is a field from a form, and I only want to add it to the pdf
document,preserving the original size of the image. If I calculate the
size of the image in points with the methods width() and height() and
i use them as parameters of the method scaleAbsolute a
On Tue, 2006-04-18 at 11:01 +0100, Paulo Soares wrote:
> The license wording is not that different from the PDF license. In
> short, it allows you to use it as long as you don't modify the schemas.
>
> Paulo
there is quite a nice overview about the various problems that the MOOX
causes:
http://
>What is "leading" for you? For java is the recommended distance from
>the bottom of the descender line to the
>top of the next line, for pdf is the space between baselines.
>
>Paulo
For me leading was at this time the java recommendation. :)
I found the answer by the The Paragraph object, in
E
Thank you all for the heads up. The legal language is quite difficult for me to understand :))Beside this, anyone had experience with the transformation? Can anyone tell me if and in what extent can the transformation be made?Bela.
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries
The license wording is not that different from the PDF license. In
short, it allows you to use it as long as you don't modify the schemas.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Udo Rader
> Sent: Tuesday, April 18, 2006 10:50 AM
On Tue, 2006-04-18 at 02:41 -0700, Bela Csete wrote:
> Hi everyone.
>
> I wonder if somebody managed to create a WordprocessingML (Microsoft
> Office XML format since MS Office 2003) to a format recognizable by
> iText lib.
Depending on where you life, this format might have been patented. In
cer
bruno lowagie.com> writes:
>
> Jorge Albalate Lopez wrote:
>
> >Hi, I have a problem when i try to insert an image in a PDF Document.
> >The image has the next dimensions:
> >945 x 1417 px
> >
> >
> = 13.125 x 19.68 inches
> = 33.02 x 49.9872 cm
>
> >imagenMarca.scalePercent(24,24);
> >
Hi everyone.I wonder if somebody managed to create a WordprocessingML (Microsoft Office XML format since MS Office 2003) to a format recognizable by iText lib.Regards,Bela.
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
It's better to create a hidden text field with TextField. The field created
with addHiddenField() is not properly formed.
Paulo
> -Original Message-
> From: Alex Bischof [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 18, 2006 10:06 AM
> To: Paulo Soares
> Subject: Re: [iText-questions
What is "leading" for you? For java is the recommended distance from the bottom
of the descender line to the top of the next line, for pdf is the space between
baselines.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Péter
> Sent: Tue
PdfReader.getAcroFields().getField("Hello")
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Alex Bischof
> Sent: Tuesday, April 18, 2006 8:34 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] reading and writing hidden
Hi!
I need something like getAscentPoint() and getDescentPoint() but
with leading. I see in API not like this.
Or can I compute it someway?
Or can I use instead java.awt.font.TextLayout methods, because
thre is a getLeading().
I think the second option is good, but I am not sure.
(I think there i
Hi, I am trying to change the TOC font to "MS Mincho(for chinese characters)". But the font is not changing and shows up as strange characters.It is still "times new roman"(i tried to see the fotn name in my word).i am using RTFwriter2. Please let me know what is the issue. This is the code
Hello,
i want to write a value into a hidden field and after that simply
reading this value out of the pdf. My code looks like the following:
Document doc = new Document();
PdfWriter pdfWriter = null;
try {
pdfWriter = PdfWriter.getInstance(doc, new FileOutputStream("test.pdf"));
doc.setPag
Hello,
i'm simply trying to write and after that read a value of a hidden
field. Here's the code:
Document doc = new Document();
PdfWriter pdfWriter = null;
try {
pdfWriter = PdfWriter.getInstance(doc, new FileOutputStream("test.pdf"));
doc.setPageSize(PageSize.A4);
doc.open();
PdfAcroFo
On 18/04/06, Paulo Soares <[EMAIL PROTECTED]> wrote:
> PdfReader.getInfo().
Fair enough! I missed that one (again)...
pdfbox has nice convenience methods...
PDDocumentInformation.getCreator()
PDDocumentInformation.getProducer()
Cheers
Antoine
--
This is where I should put some witty comment.
PdfReader.getInfo().
Paulo
- Original Message -
From: "Antoine" <[EMAIL PROTECTED]>
To: "Segev, Eli" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, April 18, 2006 8:18 AM
Subject: Re: [iText-questions] PDF Version
Eli,
iText is not focused on reading/modifying pdf - iText excels in pdf
crea
Jorge Albalate Lopez wrote:
Hi, I have a problem when i try to insert an image in a PDF Document.
The image has the next dimensions:
945 x 1417 px
= 13.125 x 19.68 inches
= 33.02 x 49.9872 cm
imagenMarca.scalePercent(24,24);
= 7.925 x 11.99 cm
I use the method scalePercent with a val
David Ge wrote:
> Hi:
>
> I need to create a pdf file, with layout like [header | table of data
> (read from database) | footer]. The number of the rows of the table is
> not fixed, can across multiple pages.
> Ideally, like to import a template pdf file of layout [ header | xx |
> footer], then
Ken wrote:
HeaderFooter seems just the ticket for printing a line of text on
every page,
No it isn't.
You should use PageEvents.
br,
Bruno
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applicat
Antoine wrote:
Just use pdfbox - you will have the creator/producer in about 5 lines
of code, and it is a good library (useful for those situations where
iText doesn't have the functionality).
I agree!
You probably can do a lot of the stuff that is provided in PDFBox with
iText,
but you will
Eli,
iText is not focused on reading/modifying pdf - iText excels in pdf
creation. I had a quick look and it looks possible, but you will spend
a lot of time doing it. It would probably be quicker to write your own
code to do it directly...
Just use pdfbox - you will have the creator/producer in ab
58 matches
Mail list logo