Comment 5 for bug 771957

Revision history for this message
Johan Engelen (johanengelen) wrote :

Great work!

The simple_test.svg contains a text object at the bottom, then a square, and then text on top. This creates a pdf with two pages.
Could you tweak the code so that it only creates one page in this case? (perhaps detect an empty page?) Interestingly, the tex output seems to know that page 0 is empty:
  \begin{picture}(1,0.91051562)%
    \put(0.31889273,0.41323565){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{bottom}}}%
    \put(0,0){\includegraphics[width=\unitlength,page=1]{patch.pdf}}%
    \put(0.57766272,0.5146827){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{top}}}%
  \end{picture}%

Thanks!