In my project i use GhostScript to convert pdf file to png image. The problem is that it cannot process the font that not emmbeded in pdf file correctly, thus output was wrong. When using pdftoppm (an xpdf tool) the problem was fixed. So i want to know what is the diffence between ghostscript and xpdf in converting phase? Why does GhostScript need to use font but Xpdf doesnt?
what difference between GhostScript and Xpdf on convert pdf to png
355 Views Asked by Trần Hồng At
1
There are 1 best solutions below
Related Questions in GHOSTSCRIPT
- GPL Ghostscript 9.10: ColorConversionStrategy is incompatible to ProcessColorModel
- Ghostscript - Wrong CMYK Color Conversion - 100% Yellow convert to 98% Yellow?
- Only convert files with the string "DUPLICATE" in the name
- Using GhostscriptProcessor to print a PDF file - Margins are messy
- Ghostscript rotate pdf page 180°
- ghostscript can just get images
- ColorConversionStrategy CMYK adds a white background
- How to fit PDF to a5 landscape using ghostscript?
- Convert PDF to PNG/JPG , using Wand, breaks in production via Gunicorn, fine on debug server
- Ghostscript convert PDF into large TIFF
- ghostscript how to retain pdf size while converting pdf to grayscale
- PostScript error with imagemask and raw data
- ghostscript stubbornly refuses to embed fonts
- How does Ghostscript handle vector objects that have no color
- Ghostscript: How to auto-crop STDIN to "bounding box" and write to PDF?
Related Questions in XPDF
- Discrepany between PDF cropbox and SVG created out of a PDF page
- Using AJAX and PHP to output PDF
- BASH script to check PDF's are ocr'd
- XPDF pdftotext and page number handling
- Batch file to convert all pdf to text (with xpdf)
- Convert only some pages from PDF to TIF with xpdf
- Convert all text's color in PDF to black while ensuring text is selectable
- pdftoppm "No display font" errors
- invalid input '📧' in 'utf8towcs when using tm and pdftools
- Using readPDF in R (tm package)
- Can xpdf accept variables as path arguments in Powershell?
- How to execute xpdf (pdftotext.exe) on shared drive?
- process the data of an image like pdf or something else using pdfcreator
- xpdf (pdftotext) with language pack call from different directory
- what difference between GhostScript and Xpdf on convert pdf to png
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Without seeing the PDF file it's impossible to tell for certain but there are three possibilities I can think of:
The PDF file does contain the font and for some reason Ghostscript can't find or use it. That would be a bug, probably fixed by using the current version. If that doesn't fix it then you should submit a bug report.
You have the font available on your Operating System and xpdf has been told where to find it. If this is the case you can almost certainly give Ghostscript the same information via either FontConfig (on Linux) or by editing one of fontmap.GS or cidfmap, depending on the nature of the font.
xpdf isn't using the correct font either, but it just so happens that, by good fortune, the font it uses as a substitute is closer to the original font than the font Ghostscript uses as a substitute. As with 2 above you can change what Ghostscript is using.
This is, of course, why all PDF files should embed the fonts they use (as subsets at least), especially all the CIDFonts they use.