• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing PDFDocument combined with NSView objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Printing PDFDocument combined with NSView objects
      • From: John Calhoun <email@hidden>
References: 
 >Printing PDFDocument combined with NSView objects (From: "Ferhat Ayaz" <email@hidden>)

  • Prev by Date: Dynamically creating NSBundles
  • Next by Date: Re: ESC to cancel editing in tableview
  • Previous by thread: Printing PDFDocument combined with NSView objects
  • Next by thread: Re: Printing PDFDocument combined with NSView objects
  • Index(es):
    • Date
    • Thread