Hi,

Am 23.10.2009 17:23 schrieb Andreas Lehmkühler:
Hi,


Werner Nell schrieb:
Hi,
I thought I'd append an example to my first mail but it seems to be stripped 
off.
Ups, I missed that. You obviously added the attachment to the mail you'd
send to my private mail account. Now, I've got it.

Again, I attach a PDF to this mail and will check it later.
That doesn't work on the mailinglist, attachments aren't allowed.

The problem when printing is: only a short part of the text is printed (perhaps 
some parts with the same font?), but I can not figure out when print out stops.
There is no exception thrown.
Now that I have a look at the pdf, I probably know where your issue came
from. Both fonts (Arial and Arial MT) aren't included in the pdf, so
that pdfbox tries to find it somewhere in your system. I guess that it
doesn't find anything suitable for Arial MT, so that Arial is used
instead. That should explain the missing bold property. I saw that your
pdf was somehow created with some oracle tool. Is it possible to
configure that tool to include the fonst to the pdf?
as far as I know there is no way to configure the PDF creation.
To clarify: PDFReader doesn't show BOLD on the screen, when printing
out of PDFReader, only some part of the text is printed. Printing with
my application also prints only some pieces (also BOLD). Just try it
with my PDF and you will see what I mean...
My third try was to create an image with PDFToImage. It seems that all
text is converted, solely the sizing of the fonts is not accurate.
Therefore I think that PDFBox should have found the correct font.
Additionally I had loaded the used fonts in my first version of my application...
Regards,
Werner Nell

BR
Andreas Lehmkühler
-----Ursprüngliche Nachricht-----
Von: "Andreas Lehmkühler" <andr...@lehmi.de>
Gesendet: 23.10.09 11:47:18
An: pdfbox-users@incubator.apache.org
Betreff: Re: Re: text not printed
Hi,

Gesendet: Fr, 23. Okt 2009 Von: Werner Nell<werner.n...@web.de>
Hi,

I think the font-loading was necessary in version 0.7.3. I eliminated this part but the result is the same. The used fonts are Arial and Arial,Bold.
The properties for both are: Typ: Type 1 , Kodierung: Ansi ,
Originalschrifttyp: TrueType
Originalschrift: ArialMT and Originalschrift: Arial-BoldMT What is the unsupported part of that?
There are a lot of pdfs out there using a so called embedded subtype ttf. They 
are not yet supported by pdfbox. See [1] for further details.

PDFReader opens the file but the bold font is shown plain, printing has the
same problem like my printing routine.
What in detail is the problem? Is there any printout? Do you get an exception?

Btw, Is there an example how to open PDFReader from within an application.
There is no example, but it should be that hard. The PDFReader just uses the 
convertToImage method of PDPage to create a BufferedImage of each page, which 
is shown within an Panel. That's all.

Why are you doing all that font-loading stuff? PDFBox should find all
included fonts on its own, if the font type is supported. If the fonts
aren't included PDFBox tries to determine if they are installed
somewhere on your system. What fonts are used within your document,
truetype, truetype as embedded subtype, Type1 ...? I guess it uses some
unsupported fonts. Have a look at the docs properties e.g. using the
Acrobat Reader. If you want to check if a pdf will be printed with
pdfbox, just try to open it with the PDFReader that comes with pdfbox.
If the pdf is shown correctly the printing should work too.
BR
Andreas Lehmkühler
Regards,
Werner Nell
BR
Andreas Lehmkühler

[1] https://issues.apache.org/jira/browse/PDFBOX-490


______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de




--

Mit freundlichen Grüßen
  Werner Nell

Reply via email to