Controlling pdf toolbar in Chrome

Post here questions and problems related to editing and publishing DITA content.
Jeff_Reynolds
Posts: 37
Joined: Tue Apr 13, 2021 9:48 pm

Controlling pdf toolbar in Chrome

Post 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" />
Jeff_Reynolds
Posts: 37
Joined: Tue Apr 13, 2021 9:48 pm

Re: Controlling pdf toolbar in Chrome

Post by Jeff_Reynolds »

Got it!
image.png
image.png (7.47 KiB) Viewed 909 times
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Controlling pdf toolbar in Chrome

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Jeff_Reynolds
Posts: 37
Joined: Tue Apr 13, 2021 9:48 pm

Re: Controlling pdf toolbar in Chrome

Post 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!
Post Reply