Re: [ROOT] Problem saving canvas as pdf - Mac problem?

From: cstrato (cstrato@aon.at)
Date: Wed Jul 21 2004 - 21:55:57 MEST


Dear Olivier

Starting "root -n" results in the same problem.
Maybe, this problem is Mac-specific, so running the macro on a Mac
should reproduce the problem. As I have mentioned, this problem
appears only after adding the line "gStyle->SetPalette(1,0)".

Best regards
Christian


Olivier Couet wrote:
> Hi Christian,
> 
>  This gv message doesn't give any extra information. The one I got with 
> acroread trying to display your first file was clear enough: something is 
> wrong in the binary part of that particular file. But I can only repeat 
> what I said, without a  macro reproducing it, it is hard to debug this 
> problem.
> 
>  Can you try to start root with the option "-n" to avoid to execute the 
> root logon file, and check if you still have the problem in that case ?
> 
> Cheers, Olivier
> 
> On Tue, 20 Jul 2004, cstrato wrote:
> 
> 
>>Dear Olivier
>>
>>I have tested my example again on Mac OSX, and on the Mac it is
>>reproducible, both with Adobe Reader 6.0 and with Apple´s Preview.
>>
>>When trying to open it with gv on the Mac, I get the following
>>GhostScript Message:
>>Error: /invalidfileaccess in --file--
>>Operand stack:
>>    (/Users/rabbitus/ROOT/rootcode/xpsx/c1.pdf)   (r)
>>Execution stack:
>>    %interp_exit   .runexec2   --nostringval--   --nostringval-- 
>>--nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
>>   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop 
>>1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop 
>>.runexec2   --nostringval--   --nostringval--   --nostringval--   2 
>>%stopped_push   --nostringval--   --nostringval--   --nostringval-
>>
>>I hope that this message may be helpful.
>>
>>P.S.: It seems that my mail with the example did not appear in
>>roottalk although I have sent a cc to roottalk ,so I will try to
>>send it again with separate mail so that other MacRooters could
>>try to reproduce it.
>>
>>Best regards
>>Christian
>>
>>
>>Olivier Couet wrote:
>>
>>>Hi Christian,
>>>
>>> Thanks for your example. I have tried it with ROOT 4.01/01 on my linux 
>>>machine. I have generated a PDF file from the "File" pull down menu in the 
>>>canvas menu bar. I can visualize the generated file without any problems 
>>>with: acroread version 5 and gv on my linux machine and with acrobat 
>>>reader version 6 on an XP machine. Note that I saw the problem with the 
>>>file test.pdf you previously sent me (you had generated it with ROOT 
>>>4.00/08). Looking at the recent changes in TPDF, I do not see one which 
>>>could have fixed a such problem. It is difficult for me to debug this 
>>>without a macro reproducing the it, because the error message you get 
>>>comes from a binary compressed part of the PDF file. So to debug it I 
>>>need to regenerate the file without compression.
>>>
>>> Cheers,       Olivier
>>>
>>>On Mon, 19 Jul 2004, cstrato wrote:
>>>
>>>
>>>



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