Skip to content

Commit

Permalink
Ghostscript v.9.50+ changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josip Habjan committed Mar 9, 2021
1 parent 76b27f5 commit 65e1c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Ghostscript.NET/Viewer/GhostscriptViewerDisplayHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public override int Page(IntPtr handle, IntPtr device, int copies, int flush)
{
_viewer.FormatHandler.ShowPagePostScriptCommandInvoked = true;

if (!_viewer.ProgressiveUpdate)
if (!_viewer.ProgressiveUpdate || _viewer.Interpreter.GhostscriptLibrary.Revision > 950)
{
int bytesPerPixel = 3;

Expand Down
5 changes: 4 additions & 1 deletion VERSION-HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// This file is part of Ghostscript.NET library
// Author: Josip Habjan ([email protected], http://www.linkedin.com/in/habjan)
//
// Development files: http://ghostscriptnet.codeplex.com
// Development files: https://github.com/jhabjan/Ghostscript.NET
//
// License: Affero General Public License (AGPL) http://www.gnu.org/licenses/agpl.html
Expand All @@ -13,6 +12,10 @@

HISTORY of the Ghostscript.NET library

1.2.3. 2021-03-09
-------------------------
- fixed GhostscriptRasterizer/GhostscriptViewer and Ghostscript v.9.50+ compatibility issues.

1.2.2. 2021-02-04
-------------------------
- fixed Ghostscript 9.26 + (all later versions) compatibility.
Expand Down

0 comments on commit 65e1c0d

Please sign in to comment.