1

I noticed that \includegraphics can be used to embed either a PDF or a PNG (and possibly other things as well).

Although both are allowed, is there one which is less finicky / less prone to cause errors than the other?

Others have asked how to embed an image file or pdf, but I only want to know which choice (if it matters) is considered best practice.

7
  • That's a bit of an odd link I suggest you replace that one as its how to embed the raw ascii hex data for an image not .pdf or .png binary as such. also this question is likely to to be frowned on if you don't explain why you think there may be a preference for one over the other as PDF can be much more complex than PNG which in itself would negate your need for an answer
    – user170109
    Jan 7, 2019 at 2:57
  • 3
    The is answer is "it depends". What is your intended output destination (home printer/digital print/offset print) and the related question what is your required output colour space (Gray/RGB/CMYK). What format is the original image from which you make the PNG or PDF (or what application made it)? What type of image is it (diagram, photo, etc.)? I prefer JPG for photos and vector based PDF for anything else. Of course, there is no gain in using a PDF if your PDF is simply a PNG converted to PDF. Jan 7, 2019 at 3:22
  • 1
    @DavidPurton: There is a speed gain (PDF inclusion is in real world situations faster than PNG inclusion).
    – TeXnician
    Jan 7, 2019 at 5:39
  • 1
    If you include a PDF which does not have all its fonts included there might be viewing issues by future readers if they don't have the fonts installed locally. Jan 7, 2019 at 7:02
  • 1
    @MartinScharrer It might be an idea to add that PNG vs PDF discussion to the answer you refer to (a very good summary)
    – daleif
    Jan 7, 2019 at 8:11

0

You must log in to answer this question.

Browse other questions tagged .