Page Layout ⇒ PDF prints various sizes
PDF prints various sizes
Page is sized with geometry and I am using crop.
In my office I print the PDF and I get one size.
My colleague prints from Windows to a different printer and the size is more than a centimeter different.
The printers are both set for 100%.
Is this a known problem? Sorry if it is, I have not found it by searching this forum.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
PDF prints various sizes
To be on the safe side, I specify my page size at every step
Code: Select all
\documentclass[a4paper,11pt]{article}
%Physical A4 size - 21.0 x 29.7 cm
\usepackage[a4paper,dvips,showframe,
top = 2.75cm,
bottom = 2.50cm,
left = 3.00cm,
right = 2.50cm]{geometry}
\begin{document}
\end{document}Code: Select all
latex file.tex
dvips -ta4 file.dvi
ps2pdf -sPAPERSIZE=a4 file.ps- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
PDF prints various sizes
[1] View topic: Avoidable mistakes
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: PDF prints various sizes
Thank you, I am very pleased to be here on this board. I am a long-time LaTeX user but on a very amateur level.
Thank you for your suggestions. I am away from my machine now but I will post my code as soon as I can.
I should have specified: I created the PDF file by running XeLaTeX on my file.tex file. Then I emailed the same PDF file to my colleague. Thus, we experienced different size printout from the same PDF file, one printed off Ubuntu and the other printed off Windows.
I will make more tests and post more information as soon as I can. many thanks.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
PDF prints various sizes
Appears to me more like a hardware problem with the involved printers or their driver settings. PDF is known to be platform independent and should yield the same results in printing. Try to reproduce the problem with other none LaTeX generated (PDF) documents.billmagee wrote:[...] I created the PDF file by running XeLaTeX on my file.tex file. Then I emailed the same PDF file to my colleague. Thus, we experienced different size printout from the same PDF file, one printed off Ubuntu and the other printed off Windows. [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
PDF prints various sizes
Code: Select all
\documentclass[a4paper,11pt,english]{book}
\usepackage[paperwidth=15truecm,
paperheight=21truecm,
headsep=1.0cm,
left=3.0truecm,
right=2.4truecm,
centering
] {geometry}
\usepackage[cam,a4,center]{crop}
\usepackage{blindtext}
\begin{document}
\blindtext
\end{document}Code: Select all
\documentclass[a4paper,11pt]{book}
\usepackage[paperwidth=17.4truecm,
paperheight=24truecm,
headsep=1.0cm,
left=3.0truecm,
right=2.4truecm,
centering
] {geometry}
\usepackage[cam,a4,center]{crop}
\usepackage{blindtext}
\begin{document}
\blindtext
\end{document}
Re: PDF prints various sizes
I will do as you suggest, many thanks.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
PDF prints various sizes
Code: Select all
\documentclass[11pt]{book}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage[%
papersize={15truecm,21truecm},
headsep=1.0truecm,
left=3.0truecm,
right=2.4truecm,
centering,
dvips=false,
pdftex=false,
vtex=false
]{geometry}
\usepackage[a4,cam,center]{crop}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: PDF prints various sizes
Re: PDF prints various sizes
Due to my Taiwanese time zone it is now 3 a.m. I will post results when the office opens.