Summary: | PDF to JPG: result with wrong characters | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Guilllaume <guillaume> |
Component: | PDF Interpreter | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.26 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Customer: | Word Size: | --- |
Description
Guilllaume
2019-01-09 17:27:02 UTC
(In reply to Guilllaume from comment #0) Please do not modify the Importance field, that's for our assessment. I can see no reason to regard this a JPX/JBIG2 problem. > content of each is not good. There are weird characters and unknown text > like this: > > %PDF-1.7 > %??? > 1 0 obj > <</Type/Catalog/Pages 2 0 R/Lang(fr-FR) /MetaData 15 0 R/ViewerPreferences > 16 0 R>> > endobj > 2 0 obj There's nothing wrong with that, its the the header of a PDF file, there are no 'weird characters' or 'unknown text' there. > This problem only happens on my production server (locally, the JPG files > are created normally). And only for some PDF files but I do not know which > ones. > One that does not work is a Word file (.docx) saved in PDF from a Apple Mac. You are going to have to supply us a file, preferably a simple file, to demonstrate the problem, we cannot work blind. > ImageMagick command: convert -density 300 -background white -alpha remove > -limit memory 1 -limit map 1 -quality 100 $pdf_path $jpg_path We can't use an ImgaeMagick command line, you must supply a Ghostscript command line. > Is it a encoding problem? There is no possible way to tell from the information supplied. No example file, no output JPEG, nothing really..... > Why does it happen only on the production server > and not locally? How should I know ? Presumably there is some difference between the configuration or build of the versions of Ghostscript you are using. You need to check the versions of Ghostscript, the command line being used, the configuration (including environment variables) and if either system is Linux (as opposed to Windows 10 as stated) then you need to determine the source of the Ghostscript you are using. Distributions often modify the Ghostscript build, you need to make sure you are using the same source and build options on each system. No specimen file supplied, no further contact from reporter, closing. |