Re: [ROOT] pdf output and pdflatex

From: Olivier Couet (couet@mail.cern.ch)
Date: Tue Dec 07 2004 - 14:38:58 MET


Hi Maxim,

 The c1.pdf files you sent me are polluted with <CTRL>M characters at the 
end of each lines. Just like some files coming from Windows are sometimes. 
So I cannot use it (pdf is very sensitive on the number of characters in a 
file). If I generate c1.pdf with the macro you sent me all works just 
fine. My pdflatex is:

pcepsft15> pdflatex -v
pdfTeX (Web2C 7.3) 3.14159-0.13c
kpathsea version 3.3
Copyright (C) 1999 Han The Thanh, Petr Sojka, and Jiri Zlatuska.
Kpathsea is copyright (C) 1999 Free Software Foundation, Inc.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh, Petr Sojka, and Jiri Zlatuska.
Kpathsea written by Karl Berry and others.

 Olivier


On Tue, 7 Dec 2004, Maxim Nikulin wrote:

> Hi Olivier and Christian,
> 
> Olivier Couet wrote:
> > You ROOT version is too old. It generates pdf files without cropbox in it. 
> > With 4.01/05 it is fine. I have attached the c1.pdf file I generated with 
> > the lates ROOT. With that file pdflatex works fine for me. So if this file 
> > (the one attached) doesn't work for you it means you also have a problem 
> > with pdflatex.
> 
> I've attached c1.pdf generated by 4.01/05 (yesterday morning cvs):
> 
> <session>
> $ cvs status postscript/src/TPDF.cxx postscript/inc/TPDF.h
> ===================================================================
> File: TPDF.cxx          Status: Up-to-date
> 
>     Working revision:    1.14
>     Repository revision: 1.14    /user/cvs/root/postscript/src/TPDF.cxx,v
>     Sticky Tag:          (none)
>     Sticky Date:         (none)
>     Sticky Options:      (none)
> 
> ===================================================================
> File: TPDF.h            Status: Up-to-date
> 
>     Working revision:    1.4
>     Repository revision: 1.4     /user/cvs/root/postscript/inc/TPDF.h,v
>     Sticky Tag:          (none)
>     Sticky Date:         (none)
>     Sticky Options:      (none)
> </session>
> 
> pdflatex doesn't understand this c1.pdf file. Pdflatex doesn't work with 
> your c1.pdf too. I tried
> 
> pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
> pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
> 
> Could you specify your pdflatex version?
> 
> Christian Holm Christensen wrote:
> > The problems is the line 
> > 
> >         5 0 obj
> >         <<
> >         /ProcSet [/PDF /Text]
> >         /Font 6 0 R              <=== Problematic line 
> >         >>
> >         endobj
> >         
> > In the generated PDF file.  If one interchanges the `6 0 obj' and `5 0
> > obj' PDFLaTeX succeeds, but when you view it in Acroread, it gives the
> > warning: 
> > 
> > 	Illegal operation 'BT' inside a text object. 
> > 
> > With XPdf it says 
> > 
> > 	Error: Leftover args in content stream
> > 
> > With GPDF it says nothing. 
> 
> I'm sorry, but I am not familiar with PDF internals. Do you mean ROOT 
> produces corrupted PDF files or pdflatex doesn't support some PDF features?
> 
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET