[pdftex] pst-pdf and large paper size

Alex Dunaevski alex_crow at bk.ru
Tue May 9 02:34:36 CEST 2006


hi!
suppose we have a file (below),
then compile it with ps4pdf.bat (pst-pdf package).

The sample draws a border 20mm from left, and 5mm from other sides.

I experience strange problem that arises if paper size
is greater than some threshold value.
The frame drawn with pstricks becomes CROPPED and misplaced
(down and left)
I found it happens when \paperheight is > 52cm.


the pacakges i'm using:
Package: pstricks 2005/12/19 v0.31 LaTeX wrapper for `PSTricks' (RN,HV)
Package: pst-pdf 2005/06/29 v1.1i PS graphics for pdfLaTeX (RN,HjG)
Package: preview 2005/09/25 11.81 (AUCTeX/preview-latex)
Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)

--cuthere--
\documentclass{article}

\setlength\paperwidth{20cm}
\setlength\paperheight{60cm}
\usepackage{pst-pdf}
%\usepackage{pstricks}
\usepackage{everyshi}

\makeatletter


\newlength\rw \rw\paperwidth \advance\rw -25mm
\newlength\rh \rh\paperheight \advance\rh -10mm

\psset{linewidth=1mm,unit=1mm,dimen=middle}

\def\ramka{
  \begin{pspicture}(0,0)(\rw,\rh)
    \psframe(0,0)(\rw,\rh)
  \end{pspicture}
}

\newsavebox\@box at ramka

\AtBeginDocument{\savebox\@box at ramka{\ramka}}

% вывод блока с абс. позиционированием (при \output)
\def\@putabs(#1,#2)#3{%
  \vbox to 0pt{%
    \vskip-1in\vskip#2
    \hbox{\hskip-1in\hskip#1 #3}
  }\nointerlineskip
}

\newcommand\stampDrawFrame{\@putabs(20mm,5mm){\usebox\@box at ramka}}

\EveryShipout{%
    \global\setbox\@cclv\vbox{%
      \let\protect\relax
      \stampDrawFrame
      \box\@cclv
    }%
}


\begin{document}
some text
\end{document}

--cuthere--

-- 
Best regards,
 Alex                          mailto:alex_crow at bk.ru



More information about the pdftex mailing list