I would embed fonts this way (java):
FontFactory.registerDirectories();
Font fnormal = FontFactory.getFont("Verdana", BaseFont.CP1252,
BaseFont.EMBEDDED, 10);
Font fbold = FontFactory.getFont("Verdana Bold", BaseFont.CP1252,
BaseFont.EMBEDDED, 10);
Note the font Face name is used, therefore no n
Thanks Paulo,
I'll try it without the popup and reply to the list so there is a record.
Cheers
AlanK
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paulo
Soares
Sent: Friday, 11 August 2006 10:30 AM
To: Post all your questions about iText here
Subject: R
Create the stamp with PdfAnnotation.createStamp(). Create the FormXObject
with writer.getDirectContent().createTemplate() with the dimensions you gave
in createStamp(). Pute image inside the template. Set the template with
PdfAnnotation.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, template). Y
Thanks Paulo,
What I can't work out is
do I create the FormXObject (somehow) and set that as the /N value
OR
can I just create the text.Image and set that as the /N Value
Also - Is it okay to leave the PopUp Annot off or does it have to be there?
Cheers
AlanK
-Original Messa
It's in 3.1.3.
Paulo
- Original Message -
From: "Abhishek Srivastava" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
Sent: Thursday, August 10, 2006 1:46 PM
Subject: Re: [iText-questions] GetFieldPositions
> Thanks Paulo,
>
> Is this fix available in itextsharp 3.
llx is "lower left x" and urx is "upper right x". ColumnText will normalize
the values so that they represent a rectangle. About the alignments check
your rectangle values, a good exercise is to actually draw a rectangle using
the same coordinates to make sure that the rectangle is really where
We'll have to look at the PDFs.
Paulo
- Original Message -
From: "Stefan Burkard" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 2:03 PM
Subject: [iText-questions] strange effects in itext-pdfs
> hello itext-list
>
> i am currently concatenating some pdf-files to one new file
iText doesn't extract text.
Paulo
- Original Message -
From: "Mike Graziano" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 7:39 PM
Subject: [iText-questions] Can An Existing PDF-document Be Read And Output?
To all,
I recently became aware of iText and have successfully used
There's a plug-in called com.lowagie.tools.plugins.Bookmarks2XML that does
the trick.
Paulo
- Original Message -
From: "Brian C. Flynn" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 6:04 PM
Subject: [iText-questions] Quick Question
I'm just trying to get all the bookmarks/c
The cb.moveTo(50,50) shouldn't be there, you are starting a path and not
ending it before you add the text.
Paulo
- Original Message -
From: "Glen Self" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 8:35 PM
Subject: [iText-questions] Mixing text and lines
>I am doing someth
HTMLWorker creates PDF from HTML.
Paulo
- Original Message -
From: "Michael Gantman" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 4:34 PM
Subject: [iText-questions] PLease help!!! I need an example of
usingHTMLWorker
Hello All.
I need to see a basic sample that demonstrat
The pagination is up to you.
Paulo
- Original Message -
From: "J Fletcher" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 9:30 PM
Subject: [iText-questions] Graphic page spanning
>I am working on a project that involves drawing a chart (manually) on a
> Graphics object. It wi
I use the gsviewer for testing and I never get any warnings about TT fonts.
Paulo
- Original Message -
From: "Jeff Mogielnicki" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
Sent: Thursday, August 10, 2006 7:15 PM
Subject: Re: [iText-questions] Problem with Embedde
Use the latest iText release and if it still doesn't we'll see.
Paulo
- Original Message -
From: "Wahaj Khan" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 4:34 PM
Subject: [iText-questions] Exception while getting the revision
> Hi,
>
> I am trying to get a revision from a
- Original Message -
From: "Stefan Burkard" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 2:52 PM
Subject: [iText-questions] concatenation example
> of course i can easily use a plain new document as target
Yes, you should.
Paulo
-
Kindly check if http://www.pdfbox.org/ helps you.
regards,
Abhishek.
On 8/11/06, Mike Graziano <[EMAIL PROTECTED]> wrote:
To all,
I recently became aware of iText and have successfully used it to write PDF-documents from text. However, now I need to go the other way. I'd like to read an
At 01:04 PM 8/10/2006, Brian C. Flynn wrote:
>I'm just trying to get all the bookmarks/chapters that may exist in
>a PDF document.
Well bookmarks are easy - they exist in a specific data
structure in the PDF and there is some excellent high level APIs in
iText to parse them. Check out
To
all,
I recently
became aware of iText and have successfully used it to write PDF-documents from
text. However, now I need to go the other way. I'd like to read an
existing PDF-document and create output. The FAQ page answers the
question
Is it possible to parse an existing PDF-doc
I’m just trying to get all the bookmarks/chapters that
may exist in a PDF document. How do I extract those bookmarks/chapter text from
a PDF document if they are present?
-
Using Tomcat but need to do more? Need
OK
I tried asking this before and received a rather curt answer, so I will try
again rephrasing my question
History.
I currently use JSP and Scriptx to generate my print. The dilemma is;
Scriptx does not work 100% of the time so I want to use my JSP pages that
are in reality a print page d
I am working on a project that involves drawing a chart (manually) on a
Graphics object. It will be too large for one page and will likely span
multiple pages, both horizontally and vertically. Does iText handle
automatic pagination for a single graphic that spans pages or is the
something we c
I am doing something wrong with mixing boxes and lines with my text.
I keep getting the error "Illegal operation inside a path." from acroreader7.
I am attempting to replicate a form that needs to be emailed to people that has
lines and check boxes intermixed with hard text and text from a database
If I change my code to
float[] pos1 = new float[] { 205, 426, 400, 20 };
float[] pos2 = new float[] { 205, 375, 400, 50 };
float[] pos3 = new float[] { 205, 354, 400, 20 };
then I get the result I want. But this is confusing because the api says that setSimpleColumn(llx, lly, urx, ury).
I found the fonts that the program was using and not embedding.
(Thank you Paulo). I removed them. Ghostscript was upgraded to 8.54.
Now I get a better error message from pdf2ps:
" Warning: An error occurred while reading an XREF table.
The file has been damaged. This may have bee
I have written the following code
BaseFont arial = BaseFont.CreateFont(@"C:\WINDOWS\FONTS\ARIAL.TTF"
, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
Font f = new Font(arial, 10f, Font
.NORMAL);Document doc = new Document
(PageSize.A4.Rotate());PdfWriter writer = PdfWriter
.GetInstance(doc, new FileStre
Hi,
I am trying to get a revision from a signature. When I use JDK 1.3 or 1.4 it
works fine but when I use JDK 1.5+ I get the following exceptions
java.io.EOFException
at
com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(RandomAccessFileOrArr
ay.java:223)
at com.lowagie.text.pdf.AcroFields$R
Hi,
I am trying to get a revision from a signature. When I use JDK 1.3 or 1.4 it
works fine but when I use JDK 1.5+ I get the following exceptions
java.io.EOFException
at
com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(RandomAccessFileOrArr
ay.java:223)
at com.lowagie.text.pdf.AcroFields$R
As Paulo mentions, FontFactory is there to helps us.
Think of font Family and font Face,
FontFactory.RegisteredFamilies will deliver us a hashtable of families
containing each face, in its simplest form (c#):
FontFactory.RegisterDirectories(); //always start here
ArrayList fontfamilies = new A
hello
if i run the example code for pdf-file-concatenation from here:
http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/Concatenate.java
the original content of the target-pdf is lost. let's say you want to
concatenate pdf1, pdf2 and pdf3 and use pdf3 as concatenated p
hello itext-list
i am currently concatenating some pdf-files to one new file with itext
and it works fine.
the only problem is that the commenting functions of acrobat produce
strange effects in pdfs created by itext. i can use for example the
highlighter in the source pdfs without problems.
i
Thanks Paulo,
Is this fix available in itextsharp 3.1.3 posted on July 31st this year. on the itextsharp web site? or the fix is in a even later version?
regards,
Abhishek.
On 8/10/06, Paulo Soares <[EMAIL PROTECTED]> wrote:
That's fixed in the latest release.Paulo- Original Message -F
That's fixed in the latest release.
Paulo
- Original Message -
From: "Abhishek Srivastava" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
Sent: Thursday, August 10, 2006 12:54 PM
Subject: [iText-questions] GetFieldPositions
>I am reading an PDFDocument which conta
On the PdfReader I called the following api
Rectangle rect = reader.getPageSize(0);
System.out.println("PAGE SIZE {0} {1} {2} {3}", rect.left(), rect.bottom(), rect.right(), rect.top
());
The output is:
PAGE SIZE 0 0 595.22 842Yes I know that the Lower left corner or page is the origin. by that
I too
are doing this and it works perfectly well.
Did
you recognize, that the PDF coordinate system has its origin in the lower left
corner of the document where as most GUI implementations have their origin
in the
upper left corner?
Did
you check the page format returned by iText? Is
I am reading an PDFDocument which contains AcroForm fields. This Acroform was designed for A4 landscape page.
when I read the co-ordinates of the Acrofield using itext, I feel it is not reading the right co-ordinates. It seems as if the co-ordinates which are being reported by GetFieldPositions m
- Original Message -
From: "Alan" <[EMAIL PROTECTED]>
To: "'Post all your questions about iText here'"
Sent: Thursday, August 10, 2006 6:35 AM
Subject: [iText-questions] Stamp Annotation from image...
> In Acrobat 7 I can copy an image to the clipboard and then use the "Paste
> Clipbo
The media box doesn't start at 0,0. There's nothing wrong with it but you
must adjust the position.
Paulo
- Original Message -
From: "SeungHyun Park" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 7:46 AM
Subject: [iText-questions] Text position problem when inserting text to
That's a question to the BIRT folks.
Paulo
- Original Message -
From: "Tyrone Hed" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 12:21 AM
Subject: [iText-questions] PDF Generated with data values as Bookmarks!
>
>
> Folks,
>I am using BIRT (which uses itext interna
Each file is a style. You may use FontFactory that will simulate a style if
it doesn't exist. Use ColumnText to write that font.
Paulo
- Original Message -
From: "Martin Spek" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 10, 2006 9:23 AM
Subject: [iText-questions] Usage of BaseFont
Hello
We are using iText's Direct Content facility.
To define the font to be used, we use the BaseFont
class:
BaseFont bf = BaseFont.createFont(font,
BaseFont.CP1252, BaseFont.EMBEDDED);
cb.beginText();cb.setFontAndSize(bf, 12);
The variable font is a String
containing
Folks,
I am using BIRT (which uses itext internally to create PDFs) to create
a PDF document. I have 16 reports that I generate using the same code but in 4
of them I get this problem. The report looks perfect--all the headers are
there, etc. but the data values that should be in th
41 matches
Mail list logo