-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GhostScriptRasterizer shows a PageCount of 0 for all PDFs under GhostScript 9.27 #62
Comments
We ran into the same issue, where I suspect that the "tidying" of the Postscript namespace done in |
I encountered a similar problem as well. Commenting out the code below seemed to fix the problem. I don't know anything about GhostScript / Postscript otherwise I would try to fix it. // open PDF support dictionaries Please find the changelogs below. 2019-03-19 09:25:48 -0700 Fix lib/pdf2dsc.ps to use documented Ghostscript pdf procedures. We eliminated GS_PDF_ProcSet and pdfdict, but runpdfbegin, dopdfpages, lib/pdf2dsc.ps |
The same problem. Is there any fix ? |
Still same problem! |
I have a similar problem. I wanted to use the viewer to display a PDF in a form. The events "DisplayUpdate" and "DisplayPage" are not called, only "DisplaySize". It does not work with version 9.52, only up to version 9.26. |
same problem here on Ghostscript version 9.52 |
just went back to version 9.26 and it worked fine. |
Still a problem and a huge waste of time. Ill try and get a fix submitted. Using GS 9.26 or commenting out the code below works Ghostscript.NET\Ghostscript.NET\Viewer\FormatHandlers GS_PDF_ProcSet' and 'pdfdict' are private as of GS 9.27
seems to have already fixed it in their product. |
Fixed in today's v.1.2.2. release. |
Package version: 1.21
Ghostscript binary version: 9.27 x64
Platform: Windows 10 1809
Project: ASP.NET on .NET Framework 4.6.1, C#
Running the following code produces a
GhostscriptRasterizer
that has aPageCount
of0
.The same outcome occurs with any input PDF, regardless of contents. It also occurs when calling the
Stream
overload ofOpen()
with a FileStream or MemoryStream.Downgrading to Ghostscript 9.26 on the same system fixes the issue.
Apologies in advance if 9.27 is not supported by package version 1.21; I couldn't seem to find a compatibility table.
The text was updated successfully, but these errors were encountered: