bugGNU TeXmacs - Bugs: bug #30120, Exporting to PDF produces...

 
 

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

bug #30120: Exporting to PDF produces PostScript file

Submitter:  Victor Porton <porton>
Submitted:  Sat 12 Jun 2010 12:55:43 PM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.0.7.4
Fixed Release:  None Fixed Release: 
Keywords: 

Jump to the original submission

Wed 27 Nov 2013 10:27:01 PM UTC, comment #6: 

The kind of conditions that Russell mentions can easily be added when defining converters between formats.  The converters between Postscript and Pdf are defined in init-images.scm and I added the necessary preconditions in revision 7929.

Joris van der Hoeven <vdhoeven>
Group administrator
Fri 18 Mar 2011 06:08:33 PM UTC, comment #5: 

It turns out this happens when TeXmacs is configured without access to ghostscript.  The work around is to rebuild TeXmacs with a ghostscript dependency.

To "fix" the bug, PDF export should be disabled when the TeXmacs is configured without ghostscript support.  Maybe somehow the user could be directed to recompile TeXmacs with a ghostscript dependency.

Russell O Connor <roconnor>
Sat 05 Feb 2011 04:26:03 PM UTC, comment #4: 

I confirm that I have this same problem with TeXmacs 1.0.7.9 running under NixOS (specifically nixos version 7i79358jwlpq7x2r67bs6im5gxic5bqh-TeXmacs-1.0.7.9).

Russell O Connor <roconnor>
Sun 26 Sep 2010 05:14:14 AM UTC, comment #3: 

I'm using debian unstable's package version 1:1.0.7.4-2 here, and I can reproduce the problem.

Steps to reproduce :
- launch texmacs from terminal with -d ;
- open a document ;
- choose File->Export->Pdf...
- no warning printed in the terminal, but the resulting file is a perfect postscript file, which ps2pdf (present and working) can turn in a nice pdf.

I tried to debug and found the following in TeXmacs/progs/texmacs/texmacs/tm-files.scm :
(tm-define (export-buffer to)
  ;; Temporary fix for saving to postscript or pdf
  (if (string? to) (set! to (url-relative (get-name-buffer) to)))
  (if (url? to) (set! current-save-target to))
  (if (in? (url-suffix to) '("ps" "pdf"))
      (print-to-file to)
      (texmacs-save-buffer to "generic")))

which looks like in some cases, trying to save as a pdf or a ps leads to the same action being performed.

I'm not sure if it's significant.

Julien Puydt <jpuydt>
Tue 13 Jul 2010 02:47:15 PM UTC, comment #2: 

Debian Linux "testing", Linux kernel 2.6.32-5-686 with libc6 2.11.2-2.

TeXmacs 1.0.7.4 installed from a Debian package texmacs-1:1.0.7.4-2. Apparently it does not use QT.

I have a working installation of ghostscript.

There are no errors in the console.

I don't know what else to say about my system.

Victor Porton <porton>
Tue 13 Jul 2010 01:54:24 PM UTC, comment #1: 

Could you provide some context to reproduce the bug: system, texmacs flavour (x11,qt, installed from where, etc...), are there errors in the console, do you have a working installation of ghostscript, etc... ?

thanks.

Massimiliano Gubinelli <mgubi>
Group administrator
Sat 12 Jun 2010 12:55:43 PM UTC, original submission:  

When I export to PDF the resulting .pdf file is not a PDF file but a PostScript file.

This bug was introduced recently (probably in version 1.0.7.4).

Victor Porton <porton>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by roconnor (Posted a comment)
  • -email is unavailable- added by flamingspinach (I can reproduce this as well.)
  • -email is unavailable- added by jpuydt (Posted a comment)
  • -email is unavailable- added by mgubi (Posted a comment)
  • -email is unavailable- added by porton (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-27 vdhoeven StatusNone Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2010-12-28 flamingspinach Carbon-Copy- Added flamingspinach

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code