i wrote this code to get output without margin spaces. but i saw there is some extra vertical space between charater A and up edge of pdf file. 1 inch vertical and horizontal extra space is the default margin space in PDFTeX.


is that a bug for plain tex?

1 Answer 1


You're missing \topskip:



Old Answer

This is the intended behaviour of TeX, although it admittedly seems questionable today.

You can remove the "extra" 1in offset in modern engines, although this will likely confuse any layout-related packages that you load.




\pdfvariable horigin 0pt
\pdfvariable vorigin 0pt
  • thanks, but no difference.
    – Minoo
    Sep 4, 2022 at 3:06
  • @Minoo Whoops, I totally misread the question. See the new edit. Sep 4, 2022 at 3:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .