Skip to content

Commit b31f5c8

Browse files
committed
fixed text rasterization problem for some pdf's, it seems that the 'pdfopen begin' did not initialize everything required to render pdf properly so we replaced it with the 'runpdfopen' method which corrects everything (problem reported by "xatabhk")
1 parent 000f9c1 commit b31f5c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ghostscript.NET/Viewer/FormatHandlers/GhostscriptViewerPdfFormatHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ GS_PDF_ProcSet begin
9494
public override void Open(string filePath)
9595
{
9696
// open PDF file
97-
this.Execute(string.Format("({0}) (r) file pdfopen begin", filePath.Replace("\\", "/")));
98-
97+
this.Execute(string.Format("({0}) (r) file runpdfbegin", filePath.Replace("\\", "/")));
98+
9999
this.Execute("/FirstPage where { pop FirstPage } { 1 } ifelse");
100100
this.Execute("/LastPage where { pop LastPage } { pdfpagecount } ifelse");
101101

0 commit comments

Comments
 (0)