Comments (6)
Hi @aditya-dikonia, thank you for reporting that.
We have merged the pull-request #13 recently that aims to do not compress the PDF file in conversion. I wonder if it caused the contrary effect (increasing the file size)?
Could you revert the following line and check the size of resulting file?
// file: src/Converter/GhostscriptConverterCommand.php
protected $baseCommand = 'gs -sDEVICE=pdfwrite -dCompatibilityLevel=%s -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=%s %s';
from pdf-version-converter.
Problem not solved on last release, file from 800 KB become 450 MB from 1.7 to 1.3
from pdf-version-converter.
@xthiago Thanks for the solutions, This is working fine.
from pdf-version-converter.
@aditya-dikonia Do we need to change that line? Could you attach an PDF example where the size was increased with the current implementation?
from pdf-version-converter.
Hi, we have the same problem, we are converting 1.5+ files to 1.4, they go up from 100-500kb to 11 mb.
I've checked the conversion string, it's the one from the pull-request, i updated via composer to the latest version too... But the files still get really big... =/
from pdf-version-converter.
Problem not solved on last release, file from 800 KB become 450 MB from 1.7 to 1.3
Hi, i have same problem too, 5mb pdf go up to 600mb
from pdf-version-converter.
Related Issues (19)
- Converted files are not saved sometimes HOT 1
- There was an error extracting the ZIP file, it is either corrupted or using an invalid format. HOT 5
- Error during composer install HOT 2
- Class 'Symfony\Component\Filesystem\Filesystem' not found HOT 1
- installation problem HOT 1
- Getting Error sh: 1: gs: not found\n HOT 1
- Typo HOT 1
- sh: gs: command not found HOT 1
- r
- File size increse issue HOT 4
- Wrong PDF Version
- GPL Ghostscript 9.26: Unrecoverable error, exit code 1 in GhostscriptConverterCommand.php line 39
- Extend timeout
- Installation problem HOT 6
- Compatibility Laravel 7
- Invoking Ghostscript on different systems HOT 6
- Filename special chars escape HOT 1
- Temp directory is static
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf-version-converter.