Conversion from PDF to PNG invalid text after render
Posted: 2019-05-22T05:31:50-07:00
Hello,
I have a problem with the conversion of a PDF file to PNG. When I execute the process, the image rendered shows a invalid text characters with rectangles, and wrong format.
I'm using the following sentence to convert the PDF.
magick /in/Supplier_COA_with_DocID_0024817765BA1ED99A80D323F6E30D00.pdf -density 300 -quality 100 -colorspace sRGB -background white /out/CERTIFICATE.png
The problem just happens with a few PDF. I think that the problem is the font of embedded in the PDF, if I open the PDF with Word the fornts are Courier and Arial. These fonts are installed in the server.
This is the PDF original. I hidded the customer fields
https://imagizer.imageshack.com/img924/7716/zajoYM.png
Converted PNG file
https://imagizer.imageshack.com/img921/4931/710wpf.jpg
I need your help is a very critical issue for my customer that I must fix.
Thanks a lot.
Best regards,
Christian
I have a problem with the conversion of a PDF file to PNG. When I execute the process, the image rendered shows a invalid text characters with rectangles, and wrong format.
I'm using the following sentence to convert the PDF.
magick /in/Supplier_COA_with_DocID_0024817765BA1ED99A80D323F6E30D00.pdf -density 300 -quality 100 -colorspace sRGB -background white /out/CERTIFICATE.png
The problem just happens with a few PDF. I think that the problem is the font of embedded in the PDF, if I open the PDF with Word the fornts are Courier and Arial. These fonts are installed in the server.
This is the PDF original. I hidded the customer fields
https://imagizer.imageshack.com/img924/7716/zajoYM.png
Converted PNG file
https://imagizer.imageshack.com/img921/4931/710wpf.jpg
I need your help is a very critical issue for my customer that I must fix.
Thanks a lot.
Best regards,
Christian