Closed krulik closed 7 years ago
UPDATE:
Forgot to add the inPDFWriter.end();
from the after
clause.
Together with getMediaBox
to have the current margins it seems to have an effect. Will post a final update after everything's working.
Seems like you're on the right track. Good luck :)
Hi Gal, we're Augury, located @ Haifa. Our favourite hummus in the area is Abu Shaker and our favourite pdf lib is HummusJS :)
We're trying to use your great tool to post-process a pdf (generated with NightmareJS). We're adding an image at the footer of every page, and to leave enough space for it we're using CSS
@page { margin ... }
.(We can't add the space inside the page since it won't be rendered when there's a page break inside).
Problem is the
@page
margins are causing an issue with repeating table headers (https://github.com/segmentio/nightmare/issues/958) and we'd like to generate the margins too in the post-process stage with HummusJS.I saw this issue ( #82 ) but couldn't understand whether and how can I create a margin around existing content in the page?
When using the
ModifyingExistingFileContent
code theMediaBox
objects for our pages are empty.Our code so far: