Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: Problem with some PDF files

$
0
0
That's strange. I'm using Windows 7 (64 bit) and I cannot reproduce this problem.

If you take a look at the https://github.com/jhabjan/Ghostscript.NET/blob/master/Ghostscript.NET/Viewer/FormatHandlers/GhostscriptViewerPdfFormatHandler.cs you will see that page size is read out from the PDF_MEDIA_TAG and / or PDF_CROP_TAG. If you put breakpoints to that bits of code, can you check what values are read out?

Other solution would be to try to use other classes from the Ghostscript to rasterize PDF's to image: https://github.com/jhabjan/Ghostscript.NET/blob/master/Ghostscript.NET.Samples/Samples/DeviceUsageSample.cs

Cheers,
Josip

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>