Page 1 of 1
Controlling pdf toolbar in Chrome
Posted: Thu Jun 23, 2022 1:43 am
by Jeff_Reynolds
When I create an xref to a pdf file, how do I set the attributes to pass the attributes to suppress the toolbar etc.
HTML would be
Code: Select all
<embed
src="http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0"
width="425" height="425" />
Re: Controlling pdf toolbar in Chrome
Posted: Thu Jun 23, 2022 3:14 am
by Jeff_Reynolds
Re: Controlling pdf toolbar in Chrome
Posted: Thu Jun 23, 2022 6:53 am
by Radu
Hi Jeff,
That original <embed> structure you showed was probably for embedding the PDF directly in the HTML output.
Your solution seems to be by creating a link to the PDF which is not exactly the same thing but at least it works both in HTML-based and PDF-based outputs.
You could also embed directly HTML content in DITA content for the HTML based outputs:
https://www.oxygenxml.com/doc/versions/ ... -html.html
Regards,
Radu
Re: Controlling pdf toolbar in Chrome
Posted: Thu Jun 23, 2022 3:45 pm
by Jeff_Reynolds
Yes you are right, I was focused on the attributes (everything after #) which will suppress the tool bar for both an xref to a pdf and a pdf embedded in a webhelp topic.
Thanks for your quick response!