dataWithPDFInsideRect produces PDFs that lockup Preview

Originator:peter
Number:rdar://21646389 Date Originated:02-Jul-2015 11:30 AM
Status:Open Resolved:
Product:OS X Product Version:10.10.4
Classification:Usability Reproducible:
 
Summary:
NSData* d = [v dataWithPDFInsideRect:v.bounds];
	[d writeToFile:@"/Users/peter/dataWithPDFInsideRect.pdf" atomically:YES];

or
	NSData* d = [v dataWithPDFInsideRect:v.bounds];
	PDFDocument* p = [[PDFDocument alloc] initWithData:d];
	[p writeToFile:@"/Users/peter/dataWithPDFInsideRect2.pdf"];

Produces PDFs (attached) that show in Quick Look, but lock up Preview when you open them.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
10.10.4

Notes:


Configuration:


Attachments:
'dataWithPDFInsideRect.pdf' and 'dataWithPDFInsideRect2.pdf' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!