bugGNU TeXmacs - Bugs: bug #18930, PDF export ghostscript error

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18930: PDF export ghostscript error

Submitted by:  Michael LeMay <lemaymd>
Submitted on:  Thu 01 Feb 2007 05:31:41 PM UTC  
 
Category: ConversionPriority: 5 - Normal
Item Group: ErrorStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 1.0.6.8Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Tue 13 Mar 2012 12:40:47 PM UTC, comment #3:

This bug seems fixed in current svn (r5007). In particular the scheme code responsible for calling papersize explicitly check for empty string and substitute "a4" in case. See tm_print.scm :

(define (get-default-paper-size-bis)
(with psize (getenv "PAPERSIZE")
(if (and psize (!= psize "")) psize
(with papersizefile (or (getenv "PAPERCONF") "/etc/papersize")
(and (access? papersizefile R_OK)
(with pps-port (open-input-file papersizefile)
(with size (read-line pps-port)
(close-input-port pps-port)
size)))))))

(tm-define (correct-paper-size s)
(if (and (string? s) (in? s supported-sizes)) s "a4"))

(tm-define (get-default-paper-size)
(correct-paper-size (get-default-paper-size-bis)))

Massimiliano Gubinelli <mgubi>
Project Administrator
Tue 18 Nov 2008 09:37:05 AM UTC, comment #2:

I had the same problem, gs is crashing because the ps file created by TexMacs that is used to create the pdf contains the following lines:

%%DocumentPaperSizes: # Simply write the paper name. See papersize(5) for possible values

and

%%BeginSetup
%%Feature: *Resolution 600dpi
TeXDict begin
%%BeginPaperSize: # Simply write the paper name. See papersize(5) for possible values
# Simply write the paper name. See papersize(5) for possible values
%%EndPaperSize
%%EndSetup

This is due to the fact that the default /etc/papersize in Centos 5 (and probably on other RedHat distros) contains:

# Simply write the paper name. See papersize(5) for possible values

To fix the problem for new documents change the content of /etc/papersize to "a4" without quotes.

To fix the problem for existing documents select "Document" -> "Page" -> "Size" -> "A4".

Lorenzo Keller <lokeller>
Thu 01 Feb 2007 05:33:45 PM UTC, comment #1:

I'm sorry, my first sentence should have read:

When I attempt to export any file from TeXmacs as PDF on Fedora Core 6, I receive the following error...

Michael LeMay <lemaymd>
Thu 01 Feb 2007 05:31:41 PM UTC, original submission:

When I attempt any file from TeXmacs as PDF on Fedora Core 6, I receive the following error:

ERROR: /undefined in #
Operand stack:

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--
Dictionary stack:
--dict:1120/1686(ro)(G)-- --dict:0/20(G)-- --dict:103/200(L)-- --dict:116/250(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 358024
ESP Ghostscript 815.03: Unrecoverable error, exit code 1

Michael LeMay <lemaymd>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mgubi (Posted a comment)
  • -unavailable- added by lokeller (Posted a comment)
  • -unavailable- added by lemaymd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Mar 2012 12:40:47 PM UTCmgubiOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1