Live data from Hacker News

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

github.com

21–30 of 240 posts

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

#22

I have a PDF problem that I thought was simple but has proven difficult to solve and there is no paid solution I’ve found… I want to forward an email to an inbox, have the email body converted into a PDF, and then email that attachment to someone all automatically. I’ve tried Make, Zapier, pdf.co, pdftool, and a few other tools but have had no success. Has anyone solved this problem reliably?

It seems quite doable but you'd need scripting skills to set it all up. Read the incoming queue, pass it to wkhtmltopdf then pipe the result to the mail command. For windows I believe I once used a java smtp server (apache james) that allowed you to set custom code as an incoming email handler. After that the conversion and email sending is trivial.

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

#23

I have a PDF problem that I thought was simple but has proven difficult to solve and there is no paid solution I’ve found… I want to forward an email to an inbox, have the email body converted into a PDF, and then email that attachment to someone all automatically. I’ve tried Make, Zapier, pdf.co, pdftool, and a few other tools but have had no success. Has anyone solved this problem reliably?

Probably depends on the purpose of the pdf and why it needs to be an attachment, but I'd just skip all the steps and print the email since that's more or less what pdf is for. Print it and re-attach or just print at the destination.

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

#24
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?

I often use PDF Sam (basic) and usually it works quite well and is offline.

https://pdfsam.org/

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

#25
post #18

I still couldn't find a tool for a difficult problem to solve. I have some magazines in PDF, with layouts in two columns, etc. I want them to be transformed into Markdown. I know, it should identify automatically the two columns, different layouts, etc. I am not desiring something perfect - I can fix if ther are some errors, but so far nothing has come with a good result.

This can be arbitrarily difficult to do, depending on the PDF. This is generally called PDF reflowing. Another approach is to use column-aware OCR software.

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

#27

How easy or difficult would it be to turn this into an electron app so that non-technical users can use it easily too?

Better use existing applications like PDFsam [0] or PDF-XChange [1].

[0] https://pdfsam.org/pdfsam-basic/

[1] https://pdf-xchange.eu/pdf-xchange-editor/

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

#28

I have not looked into this yet but can someone recommend an application for repairing pdfs? For example, I have PDFs where selecting text highlights a line above or below.

Try converting it to PDF/A

That's not it.

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

#29
post #3

Can it add attachments to pdf files?. Until this year I did not even know that this was possible but a government agency asked me to add files as attachments to a pdf as their website only allowed uploading valid pdf files.

You can use Acrobat Reader for that.
Post reply on HN