Support adding a PDF into a PDF
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
People
(Reporter: marco, Unassigned)
References
Details
(Whiteboard: [pdfjs-ux][pdfjs-ux-wanted])
Often people scan their documents to PDF (e.g. ID card), and they might need to add them to another PDF document (e.g. a form).
Could we support adding a PDF as if it was an image?
Comment 1•1 month ago
|
||
In Acrobat it's possible to add a stamp annotation where the stamp is a pdf.
The stamp annotation appearance stream contains almost the page content stream with the pages resources as annotation resources.
The page has to be rendered in order to be used in the editor layer, so it'd require to create a fake annotation and trigger its rendering on its own canvas which could be used in the layer.
On saving, we must take care about the references used in the added data in order to avoid any conflicts with the ones in the original pdf where the annotation is added.
In case the added pdf has several pages, it'd a require a UI in order to let the user select the page they want.
If the added pdf is too big, we should probably propose to use an image instead which will induce a rasterization which itself will induce the choice of a resolution and some possible artifacts when zooming in. Anyway in such a case it'll require a UI too.
Description
•