Is PDFium able to read a PostScript stream?

231 views
Skip to first unread message

Sofia I.

unread,
Jan 20, 2017, 10:56:56 AM1/20/17
to pdfium
I didn't seem to find anything, but I was wondering if PDFium has any ability to render PostScript files?

Thank you.

hong_...@foxitsoftware.com

unread,
Jan 20, 2017, 2:34:49 PM1/20/17
to pdfium
I am pretty sure PDFium has the ability to render PostScript. PostScript is widely used in PDF and PDFium can render those files.

I cannot pinpoint where the code is, will need some time to read through the code.

May I ask what is your use case reading PostScript? Just curious where is PostScript used other than in a PDF file.

Sofia I.

unread,
Jan 20, 2017, 8:37:08 PM1/20/17
to pdfium
Thank you for your reply. I am trying to convert .PRN files to PDF format. These are PostScript-format files generated by PostScript printer drivers. I am currently using GhostScript to do this, but if PDFium can handle the task, GhostScript is not necessary.

Thank you.

Sofia I.

unread,
Jan 22, 2017, 6:45:29 AM1/22/17
to pdfium
Seems quite unlikely that a comprehensive PDF library such as PDFium is not able to read PostScript data. But yet I've not been able to find a single mention in any article or post as such. Nothing at all.

Might anyone here know, please?

S.J. Becker

unread,
Jan 22, 2017, 3:25:40 PM1/22/17
to pdfium

I used postscript 25+ years ago, before pdf.

PDF solved the problems of postscript such as not having a well defined
paperspace and no clear support for multiple pages.

It also solved the problem of postscript being an unlimited general purpose
programming language. That "Feature" made proper implementation of a
postscript machine very difficult. Aside from Adobe, Ghostscript is the only
project I know of that accomplished it.

PDF is based on a subset of postscript. Which is why Ghostscript was able to support
it easily, and why ground up PDF parsers lack the ability to handle postscript.

I believe that PDFium has no support for postscript. It's only surviving use is
software inside printers.

    scott

Sofia I.

unread,
Jan 23, 2017, 6:50:32 AM1/23/17
to pdfium
Thank you, Scott. I'm disappointed, tbh, but at least I can move on with GhostScript. Might you possibly know if it there's any way to rebuild the GhostScript DLL?


On Friday, January 20, 2017 at 11:56:56 PM UTC+8, Sofia I. wrote:
Reply all
Reply to author
Forward
0 new messages