pdf-version-converter | PHP library for converting the version of PDF | Document Editor library
kandi X-RAY | pdf-version-converter Summary
kandi X-RAY | pdf-version-converter Summary
PHP library for converting the version of PDF files (for compatibility purposes).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Guess the version of a PDF file
- Convert a file to a new version .
- Run the command .
- Guess the version of a file
- Generate the absolute path to the tmp file .
pdf-version-converter Key Features
pdf-version-converter Examples and Code Snippets
guess('/path/to/my/file.pdf'); // will print something like '1.4'
convert('/path/to/my/file.pdf', '1.4');
{
"require": {
"xthiago/pdf-version-converter": "dev-master"
}
}
Community Discussions
Trending Discussions on pdf-version-converter
QUESTION
I am using mPDF and Ghostscript as a part of a larger application, where the is workflow is as this:
- A PDF is uploaded by a 3rd party software
- The file is detected and converted to PDF 1.4 (via a GhostScript wrapper: https://github.com/xthiago/pdf-version-converter)
- Based on the converted file a new PDF file is generated
In local env (MacOS), because the files uploaded are version 1.6, the converted file has more or less half the size of the original and the same goes for the new created one, but in production server (Ubuntu), even if the converted one has the same size as its local equivalent, the new one has 10x times more size: (eg 48MB vs 480MB)
What might be the case for such difference?
The code used is as this:
...ANSWER
Answered 2018-Aug-31 at 10:11Finally it's not mPDF, but Ghostscript.
Slightly different version (9.22 vs 9.23) produces 10x bigger files under this command
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pdf-version-converter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page