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

 
 

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

bug #37162: Problem when convert RTFD to PDF

Submitted by:  Germán Arias <espectador>
Submitted on:  Tue 21 Aug 2012 07:00:29 PM UTC  
 
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 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project 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>

 

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 13 Oct 2014 09:13:50 PM UTCFredKieferStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Sun 05 Oct 2014 08:01:17 PM UTCFredKieferStatusConfirmed=>Ready For Test
      Open/ClosedOpen=>In Test
    Wed 17 Sep 2014 08:18:43 PM UTCFredKieferAssigned toNone=>FredKiefer
    Sun 14 Sep 2014 08:59:23 PM UTCFredKieferCategoryBackend=>Gui/AppKit
    Sun 14 Sep 2014 08:58:51 PM UTCFredKieferStatusNone=>Confirmed
    Tue 21 Aug 2012 07:00:29 PM UTCespectadorAttached File-=>Added examples.tar.gz, #26409

    Back to the top


    Powered by Savane 3.1-cleanup