PDFOperationWithView
PDFOperationWithView
- Subject: PDFOperationWithView
- From: Brock Brandenberg <email@hidden>
- Date: Thu, 12 Dec 2002 00:23:11 -0600
This subject has come up before, but I have not been able to find an answer
to the earlier questions, only a suggested replacement.
Has anyone ever successfully written a multi-page PDF file using any of the
three PDFOperationWithView methods? While the documentation would lead you
to believe that they are like a normal print operation and call the NSView
knowsPageRange: method to allow you to paginate, they don't actually appear
to. It seems as though the documentation is incomplete or leaves out the
fact that the methods can only generate a single page output from the
contents of a view. Is this correct?
Interestingly, in one of my cases where I paid attention, a single page PDF
result from a PDFOperationWithView: method was the exact same size as a
three page PDF file written out with the more traditional
printOperationWithView: method, using the same PDFImageRep data being drawn
into the NSView. The first method made one pass thru the view. The other
made three passes setting the current page of the NSPDFImageRep on each
pass. I don't know yet what it means, but it is very suspicious of something
going awry behind the scenes, or possibly just being inefficient and
including the entire PDF data stream in the file when only a single page of
data is needed.
I successfully use a normal print operation and set the print info
appropriately to spit out a PDF file to disk, so I'm not looking for an
answer to do so. I'm just trying to fill in the gaps in the not-so-clear
Cocoa docs that cost me half the day.
Thanks,
Brock Brandenberg
----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.