Giter Site home page Giter Site logo

Comments (6)

xthiago avatar xthiago commented on June 9, 2024 1

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';

https://github.com/xthiago/pdf-version-converter/pull/13/files#diff-36026646d2f57a7a92346a13d2d3dd81L25

from pdf-version-converter.

pippuccio76 avatar pippuccio76 commented on June 9, 2024 1

Problem not solved on last release, file from 800 KB become 450 MB from 1.7 to 1.3

from pdf-version-converter.

aditya-dikonia avatar aditya-dikonia commented on June 9, 2024

@xthiago Thanks for the solutions, This is working fine.

from pdf-version-converter.

xthiago avatar xthiago commented on June 9, 2024

@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.

pixxelfactory avatar pixxelfactory commented on June 9, 2024

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.

surabiattack avatar surabiattack commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.