LaTeX: What kind of bounding boxes do dvipdfmx use in including PDF image files? (original) (raw)

LaTeX: What kind of bounding boxes do dvipdfmx use in including PDF image files?

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

% This is a pdfLaTeX document.
\documentclass{article}
% The papersize is set to 250bp x 250bp, which will
% make the MediaBox equal [0 0 250 250].
\usepackage[papersize=250bp,margin=0pt,noheadfoot]{geometry}
\pagestyle{empty}
% No compression; PDF version still might be 1.5.
\pdfcompresslevel=0
\pdfobjcompresslevel=0
\setlength{\parindent}{0pt}
\begin{document}
\pdfpageattr{%
% Enable or disable each of the following lines.
/BleedBox [0 0 200 200]
/CropBox [0 0 150 150]
/TrimBox [0 0 100 100]
/ArtBox [0 0 50 50]
}
\vspace*{\fill}
\setlength{\unitlength}{1bp}\Large
\begin{picture}(50,50)
\put( 0, 0){\makebox(0,0)[lb]{O}}
\put( 50, 50){\makebox(0,0)[rt]{A}}
\put(100,100){\makebox(0,0)[rt]{T}}
\put(150,150){\makebox(0,0)[rt]{C}}
\put(200,200){\makebox(0,0)[rt]{B}}
\put(250,250){\makebox(0,0)[rt]{M}}
\end{picture}
\end{document}

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

% This is a pdfLaTeX document.
\documentclass{article}
\usepackage[papersize={900pt,300pt},scale=0.9]{geometry}
\usepackage{graphicx}
\begin{document}\noindent
% THe 'pagebox' option specifies which box should be used.
\includegraphics[pagebox=mediabox]{image.pdf}
\includegraphics[pagebox=bleedbox]{image.pdf}
\includegraphics[pagebox=cropbox]{image.pdf}
\includegraphics[pagebox=trimbox]{image.pdf}
\includegraphics[pagebox=artbox]{image.pdf}
\end{document}