Re: Converting TIFF to multipage pdf
Re: Converting TIFF to multipage pdf
- Subject: Re: Converting TIFF to multipage pdf
- From: Jeff LaMarche <email@hidden>
- Date: Sat, 13 Jul 2002 12:51:35 -0700
On Saturday, July 13, 2002, at 11:39 AM, Ben Mackin wrote:
My problem is that, say I have 3 tiff files I want to put into one
multipage
pdf. I run through the following code, and it puts it into a 1 page pdf
file
(the 1 page is just as tall as the 3 pages added up). Not what I
wanted. If
any one has an idea on how to get the pdf file to come out as multiple
pages, please let me know. I am guessing that I wont be able to use the
dataWithPDFInsideRect, but who knows.
IIRC, I believe that dataWithPDFInsideRect: actually does what it does
using an NSPrintOperation. The docs aren't clear - dataWithEPSInsideRect
is documented as using an NSPrintOperation, I believe that they forgot
to add dataWithPDFInsideRect: when they updated the docs. If that is
true, (and someone correct me if it's not), then you can just implement
knowsPageRange: and rectForPage: in your view. If you are using a
standard appkit view, you may have to subclass it to override these two
methods. Once these two methods are implemented to return the correct
rectangle for each page, your existing code should generate a multi-page
PDF.
In theory. =-)
Jeff
_______________________________________________
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.