Skip to content

Problems when convert PDF to png some characteres are converted on black boxes #272

@cyberfido

Description

@cyberfido

ImageMagick version

6.9.12-32

Operating system

Linux

Operating system, version and so on

Ubuntu 20.04

Description

I'm running this command
convert -define bmp:format=bmp3 fail_symbol.pdf test.png
then I added a -verbose to get the information on what is imagemagick sending to ghostscript, and this is the result command:

gs -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dPrinted=false -sOutputFile=test.png fail_symbol.pdf

if I execute that, I got a incorrect output:

Screenshot_138

with some characters like a blackbox, then if I drop the value -dPrinted=false from the script I got the correct results, now my question is how can I configure imagemagick delegates or which parameter do I have to send to ghostscript to avoid -dPrinted=false on the script

Steps to Reproduce

run the command

convert -define bmp:format=bmp3 fail_symbol.pdf test.png

with the PDF Attached

Images

fail_symbol.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions