bugGNUstep - Bugs: bug #37162, Problem when convert RTFD to PDF

Group
 
 

bug #37162: Problem when convert RTFD to PDF

Submitter:  Germán Arias <espectador>
Submitted:  Tue 21 Aug 2012 07:00:29 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 08 Oct 2014 12:44:29 AM UTC, comment #6: 

Now works, thanks.

Germán Arias <espectador>
Sun 05 Oct 2014 08:01:17 PM UTC, comment #5: 

Should be fixed in SVN. Please give it a try.

The final fix is still my workaround as any clean solution is not possible given the way the printing code in NSView is written.

Fred Kiefer <FredKiefer>
Group Member
Wed 17 Sep 2014 08:18:43 PM UTC, comment #4: 

Looks like my theory is correct. When replacing the line in NSImage

      [_lockedView lockFocus];
with
      [_lockedView _lockFocusInContext: [window graphicsContext] inRect: [_lockedView bounds]];

the resulting PDF is correct and the images get displayed correctly after the printing. Now I only need to find a proper way to integrate this change into GNUstep. Sorry, but this will have to wait until after my holidays.

Fred Kiefer <FredKiefer>
Group Member
Sun 14 Sep 2014 08:58:51 PM UTC, comment #3: 

My current hypotheses for this problem is that it is caused by the image caching. If the image caching happens during a print operation the code in NSView _lockFocusInContext:inRect: wrongly uses the prining graphics context for the caching. I still don't have an idea how to verify this and after that fix it.

Fred Kiefer <FredKiefer>
Group Member
Wed 10 Sep 2014 11:17:57 PM UTC, comment #2: 

I discovered the following while opening and printing this to PDF from INK

1) images of the RTFD will load in Ink on demand, while scrolling down
2a) if the images are all loaded, they will print
2b) if they were not, they won't print except for the few loaded and, once printed, scrolling the document won't ever load them again

Clipping appears to be a different problem, related to window-width and page size. If, like in my case, the two match, the output is quite sensible.

Riccardo Mottola <rmottola>
Group Member
Tue 21 Aug 2012 11:38:03 PM UTC, comment #1: 

The same problem if you save as postscript.

Germán Arias <espectador>
Tue 21 Aug 2012 07:00:29 PM UTC, original submission:  

Open the attached file with Ink and then save this as PDF with the Print panel. Now open the PDF file. You will see that not all images was included in the PDF.

Germán Arias <espectador>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26409:  examples.tar.gz added by espectador (139KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by espectador (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 logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-13 FredKiefer StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2014-10-05 FredKiefer StatusConfirmed Ready For Test
        Open/ClosedOpen In Test
    2014-09-17 FredKiefer Assigned toNone FredKiefer
    2014-09-14 FredKiefer CategoryBackend Gui/AppKit
    2014-09-14 FredKiefer StatusNone Confirmed
    2012-08-21 espectador Attached File- Added examples.tar.gz, #26409

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code