Comments (10)
Hello,
You can use DEVICE to avoid the problem.
GhostscriptJpegDevice dev = new GhostscriptJpegDevice(GhostscriptJpegDeviceType.Jpeg);
dev.GraphicsAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
dev.TextAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
dev.ResolutionXY = new GhostscriptImageDeviceResolution(dpi, dpi);
dev.InputFiles.Add(pdfPath);
dev.Pdf.FirstPage = startPage;
dev.Pdf.LastPage = endPage;
dev.CustomSwitches.Add("-dDOINTERPOLATE");
dev.OutputPath = string.Format("{0}\{1}_page-%03d.jpg", dstDir, name);
dev.Process(versionInfo, true, null);
from ghostscript.net.
I was able to replicate this as well. doing a pdf to tiff with the rasterizer. The pdf contained a signature (using fill and sign) and upon conversion the tiff had a black box where the signature should have been. I did some additional research and the problem lies within the viewer. Soon as i open the pdf with the viewer (no conversion) the signature appears with a infilled black rectangle. I downloaded ghostscript and fed the same commands through the cmd prompt and received back the correct image with no black box for the signature
from ghostscript.net.
Hello,
Could you give me your command please to do some tests ?
from ghostscript.net.
the easiest way to replicate this issue is to sign a pdf (using fill and sign) and then open it with the ghostscript.net viewer. The problem exists in the viewer anyways since that is the code the rasterizer uses. Please let me know if you need additional details.
from ghostscript.net.
For you, the bug is in the viewer, right ?
from ghostscript.net.
Hello,
With your command you use a different sDEVICE than the Library (that use display), right ?
from ghostscript.net.
If you run the ghostscript.net viewer the bug will present it self by opening a pdf that has a signature in it via a fill and sign.
The bug also presents it self via the command line (becuase the cmd line uses the ghostscript.net view code)
from ghostscript.net.
Hello,
I have found the same problem you have reported. pdfs with signatures, look with black background and wrong colors on the sign box.
I have tried debbuging ghostscript.net viewer but couldn`t find the ghostscript parameter that is missing or wrong that is causing this.
Did you find a solution using ghostscript.net?
Thank you.
from ghostscript.net.
Hello,
No I have no solution, sorry…
from ghostscript.net.
Fixed in today's v.1.2.2. release.
from ghostscript.net.
Related Issues (20)
- Is it possible to print user controls with ghostscript?
- Unable to Convert Pdf to Png Using Ghostscript.Net Visual Studio 2022 HOT 2
- Converting PDF pages to images (new PDF interpreter problem) HOT 1
- Missing elements/colors when converting PDF to image
- GhostscriptRasterizer.GetPage returns null when using gs.9.56.1 (current version as of Aug 15, 2022) HOT 3
- it
- GhostscriptPngDevice e CustomDllPath
- Error: "'gsapi_init_with_args' is made -100" with long filename and Asian language HOT 1
- GhostscriptRasterizer.GetPage Setting DPI has no impact on the resulting raster
- Attached pdf file raises a System.AccessViolationException HOT 1
- Is it possible to use Stream in Ghostscript.Net and how to reduce pdf size?
- Module could not be loaded HOT 1
- Everything bold and blurred HOT 5
- Ghostscript command to FLATTEN ANNOTATIONS but keep HYPERLINKS alive HOT 9
- Ghostscript - completely REMOVE METADATA from pdf files HOT 5
- -dPreserveAnnotTypes NOT Working HOT 3
- Ghostscript - completely REMOVE METADATA from pdf files 2 HOT 2
- Ghostscript Nuget Package HOT 1
- Random App Pool crashes HOT 3
- Silently Print HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghostscript.net.