Live data from Hacker News

Stirling-PDF: local web application to perform various operations on PDFs

github.com

151–160 of 240 posts

Re: Stirling-PDF: local web application to perform various operations on PDFs

#151

Any recommendations for a desktop/cli PDF optimization tool that will reduce the size of a pdf? I've tried few and the best one so far is the one that is included in the subscription version of Adobe Acrobat. But I only need it occasionally and is not worth paying $20/month sub.

Did you already give ghostscript a try?

Re: Stirling-PDF: local web application to perform various operations on PDFs

#152
post #150

Any recommendations for a desktop/cli PDF optimization tool that will reduce the size of a pdf? I've tried few and the best one so far is the one that is included in the subscription version of Adobe Acrobat. But I only need it occasionally and is not worth paying $20/month sub.

Ghostscript maybe? Depends on what you’re doing but it can downsample images etc.

Yes, its mainly to reduce image size for scanned documents. I'll give Ghostscript a try.

Re: Stirling-PDF: local web application to perform various operations on PDFs

#154
post #139

Looks like the pdf-lib.js used by the project can do most of the advertised features right in the browser and there is even a wasm build of tesseract out there. Have you considered making serverless/browser-only version?

Yes our v2 version we are working on is this! We plan to completely migrate functionality to be all client with a server side one for API requests as well

Re: Stirling-PDF: local web application to perform various operations on PDFs

#155
post #145

Earlier quoted context omitted.

That is true, but I have never encountered a PDF that is not produced by me and cannot be faithfully represented in third party PDF readers. And I give up the idea of producing those kinds of PDFs because I know the people I send to will complain about me rather than their PDF readers. So, Adobe Acrobat doesn't have any monopoly power here, since almost no one cares about those things only they can do.

We often get PDF's that does not work in our pipeline and it's always blamed on the pipeline, not on the creating software. The user usually converts the PDF to an image with adobe reader and screenshot, load up Libreoffice, paste and export it as PDF archive.

So the PDF that does not work in your pipeline is created by LibreOffice rather than Adobe Acrobat? That doesn't seem to add any strength to the argument that "Adobe Acrobat has unusual powers because only it can handle the full spec of PDF".

Re: Stirling-PDF: local web application to perform various operations on PDFs

#156

This is really neat! Is there a paid product backing this or planned for the future? I'm curious what motivates all the dev hours going into it.

No paid backing, just running on donations at the moment. I am tempted to try add a paid feature for AI integration or something or some high end office features as I have a fair few offices that use this software now. But to be honest I would always want it free and it's just been a hobby

Re: Stirling-PDF: local web application to perform various operations on PDFs

#157

No one commented yet on how this entire app was built by ChatGPT?

Yep. That's the most interesting thing here. OP can you elaborate on how you got it to develop a full fledged application?

So the whole app is not made in chatgpt It started like that 11 months ago though yes I made the website and 7 pdf operations with chatgpt as a test to investigate chatgpts power and applications Everything after that has been manual though and basically all the code has been changed by now

Re: Stirling-PDF: local web application to perform various operations on PDFs

#159
post #40
post #2

Nice. I've been looking for something like this to self-host, to avoid my partner uploading sensitive documents to random PDF manipulation websites. Any better alternatives I should be considering?

A really nice, stand-alone command line tool is pdfcpu. https://github.com/pdfcpu/pdfcpu

Looks great, but my partner needs something more convenient.

It needs to be web based and work on desktop/mobile.

Re: Stirling-PDF: local web application to perform various operations on PDFs

#160
post #150

Earlier quoted context omitted.

Ghostscript maybe? Depends on what you’re doing but it can downsample images etc.

Yes, its mainly to reduce image size for scanned documents. I'll give Ghostscript a try.

Something like this is probably a good starting point:

    ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
From this gist https://gist.github.com/guifromrio/6390547#
Post reply on HN