Re: Printing PDFDocument combined with NSView objects
Re: Printing PDFDocument combined with NSView objects
- Subject: Re: Printing PDFDocument combined with NSView objects
- From: Ferhat Ayaz <email@hidden>
- Date: Mon, 8 Jan 2007 22:19:44 +0100
Now I found a solution: I'm using the documentView of my PDFView and
add my own views to this view. Example:
PDFView *pdfView = //...
[[pdfView documentView] addSubview:myView];
My next problem is to print the documentView "without" any shadows.
The view [pdfView documentView] contains a shadow.
How can I disable it?
On Jan 8, 2007, at 2:46 PM, Ferhat Ayaz wrote:
Hello,
how can I print a PDF document as background on a page with several
NSView objects?
I tryed to use NSImageView for PDFDocument representation. Here is
a code snippet, how I assigned the PDF document.
NSImageView * imgView = //..
PDFDocument *pdfDoc = //...
[[NSImage alloc] initWithData:[pdfDoc dataRepresentation]]
// ...
[imgView addSubview:<some-views>]
But this produces an "image" as background of course. When I'm
scaling the preview (from PrintDialog), the image will became a
very bad resolution.
I want to keep the background as PDF and not as image. Additionally
I want my NSViews on the document. How can I do this?
Or .. is there a completely other solution, what I don't know?
Thanks,
Ferhat
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden