Skip to main content

PDF-Renderer cannot read pdf file with embeded fonts

4 replies [Last post]
real050280
Offline
Joined: 2009-03-01
Points: 0

Good day!
I tried generating a pdf file using FOP 0.94 with some barcode in it printed as a text using an embedded k3.ttf font. It can be displayed nicely using Acrobat reader, but when it is printed using pdf-renderer, the Barcode output will not appear with some exceptions in it:

java.nio.InvalidMarkException
at java.nio.Buffer.reset(Unknown Source)
at com.sun.pdfview.font.ttf.TrueTypeFont.parseDirectories(TrueTypeFont.java:317)
at com.sun.pdfview.font.ttf.TrueTypeFont.parseFont(TrueTypeFont.java:70)
at com.sun.pdfview.font.TTFFont.(TTFFont.java:76)
at com.sun.pdfview.font.CIDFontType2.(CIDFontType2.java:62)
at com.sun.pdfview.font.PDFFont.getFont(PDFFont.java:170)
at com.sun.pdfview.font.Type0Font.(Type0Font.java:51)
at com.sun.pdfview.font.PDFFont.getFont(PDFFont.java:141)
at com.sun.pdfview.PDFParser.getFontFrom(PDFParser.java:1150)
at com.sun.pdfview.PDFParser.iterate(PDFParser.java:723)
at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
at java.lang.Thread.run(Unknown Source)

Any suggestion or help is very much appreciated.

Thanks in advance,
Rey

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
daniel147
Offline
Joined: 2013-11-26
Points: 0

This PDF Barcode Decoding Library is exclusively designed for detecting and reading most common linear and two-dimensional barcode symbologies from a PDF document. It is simple to detect and recognize such barcodes as QR Code, Code 39 and Codabar from a PDF file using this PDF barcode reading control.

juliazxc
Offline
Joined: 2013-09-17
Points: 0

I'm wandering there is something wrong with the setup, it is a bit strange that It can be displayed nicely using Acrobat reader, but when it is printed using pdf-renderer, the Barcode output will not appear with some exceptions in it. To ensure you can find useful info, you'd better find a barcode generator guide or barcode scanner guide for detailed. hope it helps.

http://www.keepautomation.com/guide/vbnet_barcode_generator.html
http://www.keepautomation.com/products/barcode_scanner.html

real050280
Offline
Joined: 2009-03-01
Points: 0

Anybody home?
Is this thread still alive?

kschaefe
Offline
Joined: 2006-06-08
Points: 0

The only place to receive feedback are the mailing lists. The PDF Renderer guys do not use this forum.

Karl