• 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
PDF Kit [PDFPage setBounds:forBox:] not working!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDF Kit [PDFPage setBounds:forBox:] not working!


  • Subject: PDF Kit [PDFPage setBounds:forBox:] not working!
  • From: "A Blossom of Paradise" <email@hidden>
  • Date: Tue, 17 Oct 2006 13:37:57 +1000

hi all,

i am attempting to open a .pdf file using quartz's pdf kit framework and add programatically add a page to it and resave it.

unfortunately the page does not render when i open the resulting pdf in preview (but it is in the outline). and before you ask, yes i am setting the crop box and media box to a valid rect (see below code).

pdfPage = [[PDFPage alloc] initWithDocument : pdfDocument];
[pdfPage setBounds:NSMakeRect( 0, 0, 595.2, 841.92 ) forBox:kPDFDisplayBoxCropBox];
[pdfPage setBounds:NSMakeRect( 0, 0, 595.2, 841.92 ) forBox:kPDFDisplayBoxMediaBox];

[pdfPage setDisplaysAnnotations:YES];

[pdfDocument insertPage : pdfPage atIndex : 1]; // there is a page 0


also, how do you programatically set the label?

regards,
warwick
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Re: Error with [pluginBundle infoDictionary]
  • Next by Date: Controlling NSImage resolution when printing (DPI vs pixels)
  • Previous by thread: Re: CoreVideo to pixel level data (speed path problems)
  • Next by thread: Controlling NSImage resolution when printing (DPI vs pixels)
  • Index(es):
    • Date
    • Thread