bugGNU Octave - Bugs: bug #65968, Printing to pdf produces distorted...

 
 

bug #65968: Printing to pdf produces distorted result

Submitter:  Dennis Cote <dennisc_hi>
Submitted:  Tue 09 Jul 2024 05:24:29 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Need Info Assigned to:  None
Originator Name:  Dennis Cote Open/Closed:  * Open
Release:  * 9.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Jul 2024 06:38:12 PM UTC, comment #4: 

I didn't see these artifacts, running GNU Octave Version: 10.0.0 (hg id: f7c791ad5f32) on ubuntu 24.04 in VM ware player. See screenshot and code attached. Cheers.

Ben E <benjewmin>
Wed 10 Jul 2024 02:35:51 PM UTC, comment #3: 


comment #2:

> @dennisc_hi: Where did you download Octave?


I downloaded octave-9.2.0-w64-installer.exe from the Octave website at https://octave.org/download#ms-windows

> Could you please provide steps to reproduce the issue?


As I said, I was following the examples in the official documentation at https://docs.octave.org/v9.1.0/Simple-Examples.html. The data is produced by the ODE in section 1.2.5. The plot and the PDF file are produced in section 1.2.6.

> Do you see the same if you print to other vector formats, e.g., .svg?


I just printed to foo.svg and opened the resulting file Inkscape. I see similar but different artifacts in the svg file (attached).

> Do you see the same if you print to raster formats, e.g., .png?


I also printed the figure to foo.jpg. The JPEG image looks the same as the figure window.

file #56247,

Dennis Cote <dennisc_hi>
Wed 10 Jul 2024 07:22:57 AM UTC, comment #2: 

Re comment #1: The "official" installer for Octave 9.2.0 for Windows bundles Mesa 24.0.1. That thread on Discourse is about an issue with Mesa 24.1.0 or newer. So, unless that issue somehow affects different versions on Windows and Linux or OP got Octave from somewhere else, this is probably something different.

@dennisc_hi: Where did you download Octave?
Could you please provide steps to reproduce the issue?
Do you see the same if you print to other vector formats, e.g., .svg?
Do you see the same if you print to raster formats, e.g., .png?

Markus M├╝tzel <mmuetzel>
Group administrator
Wed 10 Jul 2024 02:08:49 AM UTC, comment #1: 
Anonymous
Tue 09 Jul 2024 05:24:29 PM UTC, original submission:  

I'm using Octave 9.2.0 on Windows 10. I'm following the examples in the manual at https://docs.octave.org/v9.1.0/Simple-Examples.html.

When I get to section "1.2.6 Producing Graphical Output" I print the on-screen plot to foo.pdf. The on-screen plot window looks fine. The foo.pdf file is created but displays strange artifacts when viewed with Adobe Acrobat.

I have attached screen shots of the plot window and the displayed pdf page, and the foo.pdf file that Octave generated.

This would be an unfortunate start to using Octave for a new user.


Dennis Cote <dennisc_hi>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56267:  bug_65968_printing_to_pdf.m added by benjewmin (530B - text/x-objcsrc)
file #56246:  svg_in_inkscape.png added by dennisc_hi (77KiB - image/png)
file #56247:  foo.svg added by dennisc_hi (15KiB - image/svg+xml)
file #56248:  foo.jpg added by dennisc_hi (10KiB - image/jpeg)
file #56240:  plot_window.png added by dennisc_hi (65KiB - image/png)
file #56241:  pdf_page.png added by dennisc_hi (93KiB - image/png)
file #56242:  foo.pdf added by dennisc_hi (8KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by benjewmin (Updated the item)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dennisc_hi (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.

    Only group members can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-13 benjewmin Attached File- Added bug_65968_printing_to_pdf.m, #56267
        Attached File- Added Screenshot@from@2024-07-13@14-20-28.png, #56268
    2024-07-10 dennisc_hi Attached File- Added svg_in_inkscape.png, #56246
        Attached File- Added foo.svg, #56247
        Attached File- Added foo.jpg, #56248
    2024-07-10 mmuetzel StatusNone Need Info
    2024-07-09 dennisc_hi Attached File- Added plot_window.png, #56240
        Attached File- Added pdf_page.png, #56241
        Attached File- Added foo.pdf, #56242

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code