The best and probably only way to do it is to look at what
Acrobat produces and then copy it. Try this:
TextField field3 = new TextField(writer, new Rectangle(50, 640, 50 + 100, 640 +
50),
"Values_Total");
field3.setBackgroundColor(Color.GREEN);
field3.setBorderColor(Color.BLUE);
You don't have to calculate anything. Try:
cb.showTextAligned(PdfContentByte.ALIGN_CENTER, watermarkText,
PageSize.A4.width() / 2, PageSize.A4.height() / 2,45);
Best Regards,
Paulo Soares
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Sherlock
Well now I'm embarrassed!
Thanks Paulo, that worked a treat.
Cheers, Simon
-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 10:49
To: Sherlock Simon; [EMAIL PROTECTED]
Subject: RE: [iText-questions] Centring watermark
You don't have to calculate
You need:
FontFactory.getFont(GulimChe, BaseFont.IDENTITY_H, true, Font.BOLD,
14);
Best Regards,
Paulo Soares
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Suprigya
Sent: Tuesday, March 23, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject:
What program exactly is pdf split?
Are you using version 1.02b?
Best Regards,
Paulo Soares
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Ramon M. Arias
Sent: Tuesday, March 23, 2004 11:51 PM
To: itext-questions
Subject: [iText-questions]
For PNG the pdf file size should be approximatly the sum of
the PNG sizes. Acrobat may be downscaling the images.
Best Regards,
Paulo Soares
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]Sent: Tuesday, March 23, 2004 7:59
PMTo: [EMAIL
Furthermore, if you are using jpeg what do you need tiff for?
Best Regards,
Paulo Soares
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Matt Benson
Sent: Tuesday, March 23, 2004 11:32 PM
To: Menke, John
Cc: itext-questions
Subject: Re:
Upside-down? This is a novelty! I would like to see the pdf
and the program used to encrypt it.
Best Regards,
Paulo Soares
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]Sent: Wednesday, March 24, 2004
5:50 AMTo: [EMAIL PROTECTED]Subject:
Hello,
I would like to add some images (jpg files) to a pdf document, it is very important in
this case that the jpg files are well positioned on the page (at millimeter level!).
For example: I would like to position image1 at 30mm from the top of the page and 50mm
from the left of the page.
I
won't pretent to be an expert in this area, but it sounds alot like something is
not getting closed out, or reset at the end of
your
first run. Then, when the second runs, it is using stale data of some
sort, you might try various out prints to see
if you
are getting something odd.
1 millimeter = 0.0393700787 inch = 25.4 millimeters per inch
72 points in an inch
72 / 25.4 = 2.8346 points in a millimeter
25.4 / 72 = .35277 millimeters in a point
example:
image is 30mm from top and 50mm from left
image is 85pts from top and 141pts from left.
I think I have done my math
i have a grayscale jpg image that appears in all image viewers i have with a
dark gray background. when i output the image to pdf it appears as if itext
is automatically adjusting the colors on the page so that this dark gray is
white and other darker spots on the image are lightened by the same
Thanks Paulo,
I wasnt aware that I could simulate
the dialogbox abilities for form controls like the textfield
using _javascript_. Once I did a google search on the _javascript_ commands I
found the FORMS API from adobe. Looks like Im going to have some
fun over the next week trying
Maybe I'm missing something here, but
when I extract the files from the pdf created with itext and the pdf created
with Acrobat they are virtually identical (1 pixel difference with Acrobat,
but same resolution). What is acrobat doing that itext isn't? If it was
downscaling them the extracted PNG
It is part of the itext tools
-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 6:17 AM
To: Ramon M. Arias; itext-questions
Subject: RE: [iText-questions] pdf_split not working
What program exactly is pdf split?
Are you using version 1.02b?
Furthermore, if you are using jpeg what do you need tiff for?
i have to handle BOTH types of images in a viewer application i have
designed.
--
thanks to all. i was able to adjust my logic to handle jpeg also.
i find out the image type from the input stream
s =
It's entirely possible that you are changing it yourself.
The colormodel that the RasterImage returns may be affecting your output.
Try using iText's default Image.getInstance(imagePath);
constructor to test if this is the case.
Let me know
Bill
-Original Message-
From: Menke, John
Is it it possible to indicate to the adobe viewer that bookmarks show
not be expanded, so that only the top most section name is displayed?
e.g.,
+ section 1
+ section 2
instead of
- section 1
- topic a
- topic b
thanks,
David
--
David H. Young
I want to know if there is a way to create a page with two
columns in which a PdfPTable can be inserted in the 1st column and
after ten rows roll the other 10 rows of data into the second column, just like
the text can? The rows of data are coming from a result set. Thanks.
--- Menke, John [EMAIL PROTECTED] wrote:
Bill, thanks for getting back to me. I have not
used the Image constructor
directly because i
need get my images as a stream and there does not
appear to be a constructor
that matches with
inputStream.
Instead of public constructors, Image
Yes, what Matt said.
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:02 PM
To: Menke, John; 'Bill Ensley'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [iText-questions] howto stop grayscale jpg lightening
automat ically on output to pd f?
---
Bill, thanks for getting back to me. I have not used the Image constructor
directly because i
need get my images as a stream and there does not appear to be a constructor
that matches with
inputStream.
the reason i get as stream is that i am pulling the image out of jar file:
imageFileUrl =
Hi,
I would like to know , how to change the offset of a PdfPTable ?
thanks regards
Vijay .R
This e-Mail may contain proprietary and confidential information and is sent for the
intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to
Hi,
Can you please tell me where I can find the iText API Docs ?
Can the API Doc be downloaded ?
thanks regards
Vijay .R
This e-Mail may contain proprietary and confidential information and is sent for the
intended recipient(s) only.
If by an addressing or transmission error
Hi,
I am using the normal Table class to generate a table in the
resulting PDF (NOT the PdfPTable).
How can set the height of the Cell(s) or Row in the table ?
thanks regards
Vijay .R
This e-Mail may contain proprietary and confidential information and is sent for the
intended
Quoting [EMAIL PROTECTED]:
Hi,
I am using the normal Table class to generate a table in the
resulting PDF (NOT the PdfPTable).
How can set the height of the Cell(s) or Row in the table ?
With Table, you can't.
br,
Bruno
---
Quoting [EMAIL PROTECTED]:
Hi,
Can you please tell me where I can find the iText API Docs ?
http://itext.sourceforge.net/docs/
Can the API Doc be downloaded ?
http://itext.sourceforge.net/downloads/docs.tar.gz
br,
Bruno
---
Quoting [EMAIL PROTECTED]:
Hi,
I would like to know , how to change the offset of a PdfPTable ?
http://www.lowagie.com/iText/tutorial/ch10.html#abspdfptable
br,
Bruno
---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free
I have added a header to my document pages and set a gray background. Looks nice. But
I'd
like the header to be smaller and I can't seem to find a way to control the size of the
header area.
Richard Corn
RAC Consulting
P.O. Box 12299, Olympia, WA. 98508 USA
(360) 357-9572 fax: (360) 352-8453
It seems that the code that encrypted it
reads the PDF file right-side up, but retains the rotation value of the old PDF
file. Heres the code if you would like to look. It just seems so odd
to me too:
/*
* $Id: Encrypt.java,v 1.3 2002/02/28
09:08:58 blowagie Exp $
* $Name: $
*
*
30 matches
Mail list logo