Hacker News new | past | comments | ask | show | jobs | submit login

I don’t think it’s ridiculous to want a scriptable document, especially for complicated forms. Likewise for the other much-dragged features for 3d scenes.

https://pdfa.org/resource/pdf-in-manufacturing/ is a great usecase.




The PDF spec even supports attachments in PDF files.


How does that work exactly? Is it widely supported?

I recently had to add an embed feature to our pdf rendering, to allow users to embed other pdfs inside the one we generate for them. Since we use headless Chrome, I used pdfjs from mozilla to render the embedded pdf on screen before generating the pdf, so you can actually see and read the embedded pdf.

Works pretty well, but was wondering about this attachment feature of pdfs.


PDF is a container format and yoy can just shove files in there. pdftk supports this with attach_files, and at the very least the linux pdf readers I’ve used know how to deal with them.


TIL!

Since these pdfs end up in whatever and how old devices, I'd rather not risk it though.


good question. how it works is an implementation question. read the PDF spec (big, and somewhat hard to grok in parts) or Google about it. I don't know. I just knew about the fact, because I have done some work with PDF. also don't know if it is widely supported, sorry.


nice idea there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: