Change PDF figure appearance in HTML format document #3899
-
I have a few HTML documents that use the default png figure format (images would be stored as I need to change this format to PDF when these images are to be used elsewhere (e.g. my Thesis)
The output of this document leads to an embedded PDF in the HTML document. That is, is has a scroll box instead of scaling to a readable size. Is it possible to control how PDF images are displayed within a HTML document? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
If you are using HTML, why do you want pdf figures? This being said your question is independent of Quarto CLI, you are more likely to ask/search using your favourite web search engine to find an answer. |
Beta Was this translation helpful? Give feedback.
-
If you're producing a document with two separate formats, then it's probably a better idea to do something like
And now your HTML document will have bitmap (PNG) images, and your PDF document will have vector (PDF) images. If you're not using quarto to produce your thesis, then you can do something like
Which would produce "out.pdf" as a side effect of knitting your HTML document, while displaying the HTML document with a PNG image. |
Beta Was this translation helpful? Give feedback.
-
Thanks both, It is the case that I want a HTML version for viewing as there are a few tabsets to organise many plots. I think the multiple outputs in the YAML route would work best for me so marked @mcanouil as correct. |
Beta Was this translation helpful? Give feedback.
If you're producing a document with two separate formats, then it's probably a better idea to do something like
And now your HTML document will have bitmap (PNG) images, and your PDF document will have vector (PDF) images.
If you're not using quarto to produce your thesis, then you can do something like
Which would produce "out.pdf" as a side effect of knitting your HTML document, while displaying the HTML document with a PNG image.