Hi All,
I am working on a POC which should read a template and generate a PDF by filling the form fields on the template.
Questions:
1. As of now i have .xdp files as templates, but when i try to read it using PdfStamper , its throwing an error : PDF header signature not found.
I'd like to
Hello folks,
Please help, it is urgent.
I've a problem while saving PDF after some changes. I've made a sample, where
I'm using following method to save.
//
void savePDF() throws Exception {
System.out.println("Saving PDF...");
Document obj_doc = new Docume
Use PdfStamper.getOverContent().
- Original Message -
From: "Sloey, James" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 19, 2005 9:35 PM
Subject: [iText-questions] Insert an image into a PDF template -
PdfContentByte null pointer
I have a PDF template containing a background image and s
This is a way to do it :
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.PageSize;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfWriter;
import java.io.FileOutputStream;
import java.io.IOException;
/*
* TableWithRowspan.j
Hello,
I created a
Servlet that publishes a PDF document. I took all the necessary precautions
suggested by Bruno Lowagie and Paulo Soares when dealing with IE, including
mapping the Servlet to “/myservlet/mypdf.pdf” and first outputting
to a buffer to get the final size before returning t
I have a PDF
template containing a background image and some fields that I fill with
text.
I also need to
insert a gif image of the persons signature on the
page.
I read an archived
reply from Paulo and tried to use
PdfContentByte.
If I comment out the
image statement the text gets fille
Nico wrote:
Thank You.
* Please keep on the mailing-list *
Another quick question, is there a way i can underline text using
PdfContentByte?
or BaseFont?
In that case I would suggest that you use the High-level objects (such
as Chunk, Paragraph,...) in combination with ColumnText (an object that
What I was trying to say by "document resolution" was resolution of the default
user space, where 1 unit = 72 pixels. Scaling was the solution to my problem:
document.setPageSize(new Rectangle(
im.plainWidth() * 72 / im.getDpiX(), ...));
im.scalePercent(
100 * 72 / im.getDpiX());
Youssef Eld
Right, wxh = 1240x1752. At an image resolution of 300 dpi, it should translate
to about 4.15x5.85.in. I guess the problem is that the document resolution is
set to 72 not 300 dpi. How do I set the document resolution? If I convert this
image to PDF using FineReader, I get correct dimensions.
Y
Youssef Eldakar wrote:
Right, wxh = 1240x1752.
That is the image size at the moment you constructed the rectangle;
you did this BEFORE you tried to change the DPI.
At an image resolution of 300 dpi, it should translate to about 4.15x5.85.in. I
guess the problem is that the document resolution is
Nico wrote:
Basically i have a Chunk that i need to position at
x coordinate - 20
x coordinate - 750
Cause when i use the document.add() it places the chunk at the top of
the document.
Please help.
Look for showTextAligned in the tutorial:
http://itextdocs.lowagie.com/tutorial/directcontent/text/
I mean if add an element to the document using document.add(Element element)
i do not know the positioning of this, so i need to find out how can i specify where in the document i want to add an Element.
Youssef Eldakar wrote:
Image im = Image.getInstance(...);
document.setPageSize(new Rectangle(
im.plainWidth(), im.plainHeight()));
document.newPage();
im.setAbsolutePosition(0, 0);
im.setDpi(300, 300);
contentByte.addImage(im);
Opening the output PDF, it displays a page dimensions of "17.22 x 24.33
At 02:41 PM 5/18/2005, David Thielen wrote:
With the pdf in that zip file (built with iText 1.2), when read with Acrobat
7 I get a "Token Type Not Recognized" pop-up error message. It reads with no
problem under Acrobat 6.
I'm at a conference this week, but will try to take a look tonight.
Basically i have a Chunk that i need to position at
x coordinate - 20
x coordinate - 750
Cause when i use the document.add() it places the chunk at the top of the document.
Please help.
Nico wrote:
Hi guys i have been using iText for a while but i cant seem so see how
to set the Document location.
Basically i would like to know is there a way i can set the document
location?
The Document location?
Please explain what you mean by Document location.
http://itextdocs.lowagie.com/tu
Kurakula, Suneetha (HCF) wrote:
Hi ,
I am trying to add page number at the end of each page using
You are mixing two different approaches.
Or you use the HeaderFooter object WITHOUT PageEvents.
Just set the footer BEFORE document.open()
Or you use onEndPage and add the pagenumber at an
absolute
Image im = Image.getInstance(...);
document.setPageSize(new Rectangle(
im.plainWidth(), im.plainHeight()));
document.newPage();
im.setAbsolutePosition(0, 0);
im.setDpi(300, 300);
contentByte.addImage(im);
Opening the output PDF, it displays a page dimensions of "17.22 x 24.33 in"
while it is sup
Paulo Soares wrote:
That bug is already fixed in the CVS.
I think it's fixed in iText1.3.1
br,
Bruno
---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Spac
Hi guys i have been using iText for a while but i cant seem so see how to set the Document location.
Basically i would like to know is there a way i can set the document location?
Regards,
Nico
Hi
I've a problem when merging multiple PDFs in-memory to one single
document (I calle it CompoundDocument). I use the iText library.
I extracted some code out of the commandline tool "concat_pdf" and
adjusted the logic to read the documents from bytearraystreams instead
of reading files (please se
21 matches
Mail list logo