Hi
I see you have added recently the ability to show bookmarks automatically with:
@prince-pdf {
prince-pdf-page-mode: show-bookmarks
}
What about adding support for generic PDF commands. With my previous HTML to PDF converter (which didn't cut it in most areas), you could do this. I used it to do a whole array of commands. It would also allow you to tell people to use a specific PDF string ass oppsoed to needing to come out with a new version of the product for a little feature, as long as you could make it into a command.
The commands I used were:
Show the bookmarks:
<</PageMode /UseOutlines>>
Auto-print the document:
<</OpenAction << /Type /Action /S /Named /N /Print >> >>
On open goto the first page and fit horizontally:
<</OpenAction << /S /GoTo /D [ {Page1} /FitH 800] >> >>
On open, goto the first page and fit vertically:
<</OpenAction << /S /GoTo /D [ {Page1} /FitV 0] >> >>
On open, goto the fifth page and fit vertically:
<</OpenAction << /S /GoTo /D [ {Page5} /FitV 0] >> >>
and others.
They could be set with:
@prince-pdf {
prince-pdf-command: "..."; /* or string() */
}
You would have to allow being able to set multiple commands this way.
I see you have added recently the ability to show bookmarks automatically with:
@prince-pdf {
prince-pdf-page-mode: show-bookmarks
}
What about adding support for generic PDF commands. With my previous HTML to PDF converter (which didn't cut it in most areas), you could do this. I used it to do a whole array of commands. It would also allow you to tell people to use a specific PDF string ass oppsoed to needing to come out with a new version of the product for a little feature, as long as you could make it into a command.
The commands I used were:
Show the bookmarks:
<</PageMode /UseOutlines>>
Auto-print the document:
<</OpenAction << /Type /Action /S /Named /N /Print >> >>
On open goto the first page and fit horizontally:
<</OpenAction << /S /GoTo /D [ {Page1} /FitH 800] >> >>
On open, goto the first page and fit vertically:
<</OpenAction << /S /GoTo /D [ {Page1} /FitV 0] >> >>
On open, goto the fifth page and fit vertically:
<</OpenAction << /S /GoTo /D [ {Page5} /FitV 0] >> >>
and others.
They could be set with:
@prince-pdf {
prince-pdf-command: "..."; /* or string() */
}
You would have to allow being able to set multiple commands this way.