(This could be a question going a bit out from pure LaTeX zone - if so, feel free to migrate)
Let's assume I'd want to make an poster, for now A4 in size. Let's say I've made this poster in inkscape
, and have exported a 300 PPI bitmap; for A4, that should give me a bitmap with size of 2479x3508 pixels.
Just to make sure we have the same reference, here's some code that will generate such a bitmap (via "convert - Imagemagick: generate image with page size and resolution? - Stack Overflow"):
convert xc:white -page A4 myout.pdf
TSIZE=$(convert -density 300x300 myout.pdf -format "%[fx:w]x%[fx:h]" info:)
convert -density 300x300 -size $TSIZE myout.pdf gradient:\#4b4-\#bfb -pointsize 72 -draw "text 25,235 'test'" -flatten myout.png
Then, I'd try to include this image, myout.png
in a .tex document, and compile it with pdflatex
to get a PDF; however, the naive:
\documentclass[a4paper]{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{myout.png}
\end{document}
... will generate two pages (pdflatex
flushing the image on second page, as it cannot fit on first) - and also, article
class has margins, which here should not be needed (as the entire myout.png
should take up the entire pdf
page).
The second problem relates to the color space - the above convert
example, generates a myout.png
which is RGB. Apparently, "the PNG file format doesn't support CMYK" (Adobe Forums: png from cmyk) - so, I could use a TIFF format instead for CMYK, but then pdflatex
seems not to support TIFF ([pdftex] Why was TIF support removed?).
So, I guess my questions can be summarized as:
- How can I generate an A4 PDF, from an a4@300 PPI bitmap, using
pdflatex
(or if there is a better alternative topdflatex
, which one?) - Which image format should I use, so that I ensure that the generated PDF file is in CMYK color mode?