GithubHelp home page GithubHelp logo

Comments (10)

yuanshengyu avatar yuanshengyu commented on July 23, 2024 2

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.

evilduckz avatar evilduckz commented on July 23, 2024

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.

fabiencomte avatar fabiencomte commented on July 23, 2024

Hello,
Could you give me your command please to do some tests ?

from ghostscript.net.

evilduckz avatar evilduckz commented on July 23, 2024

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.

fabiencomte avatar fabiencomte commented on July 23, 2024

For you, the bug is in the viewer, right ?

from ghostscript.net.

fabiencomte avatar fabiencomte commented on July 23, 2024

Hello,
With your command you use a different sDEVICE than the Library (that use display), right ?

from ghostscript.net.

evilduckz avatar evilduckz commented on July 23, 2024

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.

Cabecinha84 avatar Cabecinha84 commented on July 23, 2024

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.

fabiencomte avatar fabiencomte commented on July 23, 2024

Hello,

No I have no solution, sorry…

from ghostscript.net.

jhabjan avatar jhabjan commented on July 23, 2024

Fixed in today's v.1.2.2. release.

from ghostscript.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.