Closed sarmad99 closed 3 years ago
I guess this is because the parameters are private in GhostscriptViewer.cs
private int _zoom_xDpi = 96; private int _zoom_yDpi = 96;
Strange that there is no error thrown from the debugger
Edit: After some more digging i found that they are set via a property:
`
public int Dpi
{
get { return ZoomXDpi; }
set
{
ZoomXDpi = value;
ZoomYDpi = value;
}
}
#endregion
`
So the Value is not set via ZoomXDpi
and ZoomYDpi
, but Dpi
So i made a PR for that, maybe someone can check and validate
@ummerland thank you for the replay, late better than never. I made changes to the library a while back and now it is working as it should be I have been meaning to make a pull request to upload the fixed version but been busy. If you want I can email it to you. It works very good
Thanks @sarmad99 for the reply Oh, that would be great!
After some more investigation i realized that HWResolution in GS is obsolete. So was that the change?
Fixed in today's v.1.2.2. release.
I am using the latest NuGet GhostScript and I am facing this issue:
pdf2png vertical and horizontal resolution always default to 96 or 120