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


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

bug #37162: Problem when convert RTFD to PDF

Submitted by:  Germán Arias <espectador>
Submitted on:  Tue Aug 21 19:00:29 2012  
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Wed Oct 8 00:44:29 2014, comment #6:

Now works, thanks.

Germán Arias <espectador>
Sun Oct 5 20:01:17 2014, 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>
Project MemberIn charge of this item.
Wed Sep 17 20:18:43 2014, comment #4:

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

[_lockedView lockFocus];
[_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>
Project MemberIn charge of this item.
Sun Sep 14 20:58:51 2014, 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>
Project MemberIn charge of this item.
Wed Sep 10 23:17:57 2014, 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>
Project Member
Tue Aug 21 23:38:03 2012, comment #1:

The same problem if you save as postscript.

Germán Arias <espectador>
Tue Aug 21 19:00:29 2012, 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>


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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by rmottola (Posted a comment)
  • -unavailable- added by espectador (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):



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Oct 13 21:13:50 2014FredKieferStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Sun Oct 5 20:01:17 2014FredKieferStatusConfirmed=>Ready For Test
      Open/ClosedOpen=>In Test
    Wed Sep 17 20:18:43 2014FredKieferAssigned toNone=>FredKiefer
    Sun Sep 14 20:59:23 2014FredKieferCategoryBackend=>Gui/AppKit
    Sun Sep 14 20:58:51 2014FredKieferStatusNone=>Confirmed
    Tue Aug 21 19:00:29 2012espectadorAttached File-=>Added examples.tar.gz, #26409

    Back to the top

    Powered by Savane 3.1-cleanup1