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
357 views Asked by Trần Hồng At
1
There are 1 answers
Related Questions in GHOSTSCRIPT
- eps converted from PDF using ghostscript looks bitmapped
- GS Error : Can't use Object streams before PDF 1.5, ignoring WriteObjStms directive
- Why does Ghost script 10.02.01 rotate barcode elements 180 degrees counterclockwise?
- GhostScipt High CPU Usage
- How to print a remote PDF file with gsprint (+python later on)?
- Convert PDF to PDF/A using python
- Ghostscript eps file conversion to jpg not working inside the .NET application
- format and crop with ghostscript
- error in saving tiff files to a pdf file using ghostscript win64c
- ps2write rasterizes Type1C font
- Merging PDFs with gs generates /undefinedfilename error
- Setting GhostScript -sFONTMAP argument to control parameters
- Text overlaid with Ghostscript not visible
- Wrong extra spaces for CID TrueType formated lines when converting PDF to JPG with Ghostscript
- Trying to re-define GS display window orientation for easier viewing/debugging of postscript code
Related Questions in XPDF
- Render XPDF forms into Laravel PHP Web Page
- I can't get PDF document file path with PHP-XPDF
- Make xpdf Pdf2Txt function as thread safe
- Convert all text's color in PDF to black while ensuring text is selectable
- path should be string, bytes or os.PathLike, not InMemoryUploadedFile
- pdftotext for firebase functions?
- what difference between GhostScript and Xpdf on convert pdf to png
- xpdf (pdftotext) with language pack call from different directory
- Convert PDF to HTML in PHP similar to DocuSign
- Trying to scrape a PDF in R, my code will only scrape 6 out of 9 pages and i'm not sure why, am I missing something in my code?
- How to generate pdftotext same as pdf generated by xpdf in Laravel?
- make linker for pdftohtml causes compiler errors
- Can xpdf accept variables as path arguments in Powershell?
- pdftotext get font information (font-family, style, size)
- How to get chars/words/lines/blocks coordinates
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?
Popular Tags
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)
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.