Quoting Jpenuela <[EMAIL PROTECTED]>:
> "Image2.gif is not a supported GIF-file (the image separator '0x2c' is not
> found after reading the color table).
> com.lowagie.text.DocumentException: Image2.gif is not a supported GIF-file
> (the image separator '0x2c' is not found after reading the color
I'm trying to add an image to my pdf.
The code looks like:
Image logo = Image.getInstance(new URL("http://myserver/myproject/Image2.gif")); document.add(logo);
I get the following error:
"Image2.gif is not a supported GIF-file
(the image separator '0x2c' is not found after reading
Hi;
Here's what I think the problem is. When I select
Wingdings as the font, the createFont call requires a codepage. So I do
Cp1252.
For any 1252 chars that map straight through (ie
0-7f, a0-ff) it works fine. But for chara 80-9f they don't show up.
I'm guessing that the system is mapp
BaseFont bf = BaseFont.createFont(
MHei-Medium, UniCNS-UCS2-H, BaseFont.NOT_EMBEDDED );
cb.setFontAndSize( bf, 12.0f
);cb.showTextAligned( PdfContentByte.ALIGN_LEFT, "\u4e7d\u30ba", 72.0, 72.0
);
I get the second character (shown correctly) but
nothing for the first. However, the second ch
Hi all;
My mistake - I had the wrong codepage set when I created the font. If the
codepage is correct then the internal fonts can display arabic (and I assume
hebrew, thai, and viet).
- dave
- Original Message -
From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL P
You need an external font, preferably embedded.
Best Regards,
Paulo Soares
- Original Message -
From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[EMAIL PROTECTED]>; "Leonard Rosenthol"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 14:41
Subject: Re: [iText-questions] Arabic,
Did you simplified or traditional Chinese characters? That font is for
traditional.
Best Regards,
Paulo Soares
- Original Message -
From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:39
Subject: [iText-questions] Weirdness printin
You should be able to do it using the PdfReader and
PdfGraphics2D classes, along with Java imaging
classes.
-Matt
--- Kalpana Sundaram <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
>
>
> I am a Java developer in Parsippany, NJ. For my
> current project, I have been asked to use Java 1.3
> or lower
You can define action areas with PdfContentByte.setAction().
Best Regards,
Paulo Soares
- Original Message -
From: "Viktor Lacina" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 14:29
Subject: Re: [iText-questions] local destination
> Hi,
>
> ok, real so
It can be done one band at a time but you must assemble them. This is just
an example, be carefull with the actual image resolution, it's hardcoded
here at 200dpi.
public static void convert2(File inputFile, File outputFile) {
// creation of the document with a certain size and certain
That's one of the font supported charsets.
Best Regards,
Paulo Soares
- Original Message -
From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:55
Subject: [iText-questions] Windows font Times New Roman (Arabic)
> Hi;
>
> When
The FontFactory has a bug with ttc fonts. That's fixed in itext-paulo-107.
If you want to know what font is inside a ttf use
BaseFont.getPostscriptFontName() and for ttc use
BaseFont.enumerateTTCNames(). The names are the postscript names not what is
shown in windows.
Best Regards,
Paulo Soares
-
Hello,
I am a Java developer in Parsippany, NJ. For my current project, I have been asked to use Java 1.3 or lower to save the thumbnail of the first page of a PDF file as an image file in either GIF or JPEG format. I would like to know whether there is any way in iText to write the PdfContentByt
Could I get embedded Fonts out of the PDF and use those to generate dynamic
strings/images which I can paste into the PDF? And again, if so, how would I
do this? I wasn't seeing how to access Font info once I had read the PDF in
using PdfReader.
thx
-Original Message-
From: Leonard Rosent
I am interested in modifying existing PDF files using iText. I'd like to
know what it's capabilities in this regard are.
Specifically, I can currently read a file using PdfReader. Great, very easy.
Is it possible to change the fonts in the document and write a new PDF out?
If so, how would I get a
Lior:
The best way for me to explain this is to say that,
to control page breaks, repeating headers, etc. you have to keep track of you
position on the page and how much available page you have left after each row
output. You will notice in my code that I sent you that before I output a
r
Sure. Here is the PDF attached.
Kenny
- Original Message -
From:
Lior
Shliechkorn
To: Kenny G. Dubuisson, Jr.
Sent: Wednesday, January 29, 2003 12:09
PM
Subject: Re: [iText-questions] Dynamic
creation of PDF with JSP
One more thing...Would you be able to s
Title: Message
Hi
David,
I
haven't used the code, only glanced it over. In your "windows" section, the root
location is hardcoded as "C:". This may not always work, as the user may have
other drives (e.g. D:) used for WinNT installation. We had one instance of such
arrangement with a dual
Lior:
Here is an example report that I have
created. I hope this helps,
Kenny
- Original Message -
From:
Lior
Shliechkorn
To: Kenny G. Dubuisson, Jr.
Sent: Wednesday, January 29, 2003 10:26
AM
Subject: Re: [iText-questions] Dynamic
creation of PDF with JSP
Lior:
Sounds like you want to do what I did. I was
generating reports via JSP that were pretty long. I didn't like the fact
that there were no page breaks or repeat headers and stuff via the HTML so I
decided to try iText. And I want you to know that I really like it but it
did take a b
Hello everyone,
I was just wondering about th whole process of generating a PDF on the fly. I have a report that is generated, and it's pretty big, and I want the output, instead of going to a JSP page, to go to the PDF file so it can be send over to a client.
I was wondering how to go about doing
I looked at the Adobe site and they had no downloads for anything other than
CJK. Was I missing it or do you have to use external or embedded fonts for
these?
thanks - dave
- Original Message -
From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itext"
Is there some set of rules I can use to work with this? Like if a font
throws an exception, remove the P at the start? And are there any other
things like this?
thanks - dave
- Original Message -
From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itex
Dear Sir,
I wish to introduce myself as a Software Engineer .
Now I started to implement the form creations in PDF using IText as
reference(I checked your website).
Using the PDFFormField ,I tried to create a PushButton,but it is not
working out.(Also I tried with other fieldtypes include
che
Hi,
ok, real source depends on a lot of of my own classes, so i coud try to make some
example from scratch :-)
Documnet doc = new Document(PageSize.A4);
PdfWriter wrt = PdfWriter.getInstance(doc, out);
doc.open();
PdfContentByte c = wrt.getDirectContent();
some c.add(Image) with absolute posit
25 matches
Mail list logo