Generate a pdf with specific pages.
-
How can I generate a pdf but receive specific pages? Ie generate the pdf but receive a pdf with pages 1, 3, 7 and 11. Can you do that? Thank you very much, greetings from Argentina.
-
Hi,
chrome properties include "page ranges" which should fill your requirements.
-
Is there any possibility to specify the Chrome properties in the post request? Thanks a lot. Greetings.
-
Yes of course.
{ template: { chrome: { pageRanges: "1" } } }
-
Many thanks. They are cracks.
-
Is there a way to keep the page numbers when using the "pageRanges"? Because I get what I want but page numbers vary. Can you keep the page numbers? That is, if I request page "4", that the page appears in the footer "4" instead of "1"? Thank you very much, Greetings.
-
I am afraid this isn't possible with native chrome headers.
However, should be possible with pdf utils
https://jsreport.net/learn/pdf-utils