Hi list,
i've seen this discussion before around 2006 but found no relevant answer, here
goes:
We have a Foundation tool which adds annotations to a pdf and saves the pdf to
disk again.
We use the PDFKit classes for that.
Now, when processing a pdf that has pdf-version 1.5 (Created from InDesign),
after saving our pdf, it becomes version 1.4, we also noticed the same behavior
with Preview.app, saving this same pdf also reduces the version to 1.4.
Question is, can we "force" the version to stay the same or is this a
restriction in Quartz?
Below is a code snippet.
Thanks in advance,
Florian.
NSData *pdfData = [NSData dataWithContentsOfFile:pathToPDF];
PDFDocument *pdfDoc = [[PDFDocument alloc] initWithData:pdfData];
AddAnnotationsToPDF(pdfDoc, parsedAnnotations(xmlDoc));
// Saving the pdf
if(![pdfDoc writeToFile:pathToPDF])
{
NSLog(@"Could not save pdf file");
return -1;
}
Looking for Web-to-Print Solutions?
Visit our website : http://www.vit2print.com
This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information and/or information protected by intellectual property
rights.
If you are not the intended recipient, please note that any review,
dissemination, disclosure, alteration, printing, copying or transmission of
this e-mail and/or any file transmitted with it, is strictly prohibited and may
be unlawful.
If you have received this e-mail by mistake, please immediately notify the
sender and permanently delete the original as well as any copy of any e-mail
and any printout thereof.
We may monitor e-mail to and from our network.
NSS nv - Tieltstraat 167 - 8740 Pittem - Belgium
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]