Live data from Hacker News

Show HN: I made a simple PDF text editor

simpdf.com

21–30 of 78 posts

Re: Show HN: I made a simple PDF text editor

#22
post #3

Earlier quoted context omitted.

I tried it with a bit complex pdf structure and it worked like charm +1. Would love to learn more about the underlying techniques/tech.

It just calls https://github.com/pdf2htmlEX/pdf2htmlEX on the server.

You could create a file named ; echo 'hi'; #

and it appears as if it would probably run anything you put between ; and # (in this case it will echo hi). Unless the filename is sanitized, which it appears to not be.

Re: Show HN: I made a simple PDF text editor

#28
post #27

Now I just wish there were a version that could run locally. All the Linux PDF viewers suck -- they can't even save a fill-in PDF form or insert a signature.

The best editor I’ve found is Qoppa PDF Studio. Although not free it is cross-platform (written in Java) and their licenses are perpetual. They do have a free viewer app which can fill interactive forms and this works on Windows, Mac and Linux: Qoppa PDF Studio Viewer.

Re: Show HN: I made a simple PDF text editor

#29
I really wish the PDF layout was easier to parse. No matter which library you use, you always run into edge cases which make text selection and extraction an issue on certain files. I was recently extracting financial data from a bank which provides only PDFs and every time they changed the format just a little bit I had to change large parts of my code to extract the transactions I wanted.

Re: Show HN: I made a simple PDF text editor

#30
post #27

Now I just wish there were a version that could run locally. All the Linux PDF viewers suck -- they can't even save a fill-in PDF form or insert a signature.

I spent an afternoon trying a bunch of them some years ago. I settled on the freeware Master PDF Editor version 4 (version 5 inserts a watermark unless you buy a license). https://code-industry.net/masterpdfeditor/

It is super lightweight and opens any complex PDF. Can insert signatures, can edit anything in the PDF (without changing the font even if the font is embedded in the PDF—as long as all the glyphs you are typing are present in the font), etc. My only complaint is that it won't edit an encrypted PDF, but a one-liner Ghostscript command can remove the encryption automatically: https://gist.github.com/compleatang/6046249

Post reply on HN