4 ms·
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
by rudasn 3y ago
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.
- cmrx64 3y agoPDF 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.
- rudasn 3y agoTIL! Since these pdfs end up in whatever and how old devices, I'd rather not risk it though.
- fuzztester 3y agogood 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.
- fuzztester 3y agonice idea there.