Re: Printing questions
Re: Printing questions
- Subject: Re: Printing questions
- From: Daryle Walker <email@hidden>
- Date: Sun, 12 Mar 2017 17:23:17 -0400
Sent from my iPhone
> On Mar 12, 2017, at 5:18 AM, Daryle Walker <email@hidden> wrote:
>
> I hope it’s a nice first try, but I have some concerns.
>
> 1. I also added an “Export as PDF…” menu item, which uses the save-as-PDF default action. I guess it calls my code, but the docs for “NSDocument.pdfPrintOperation” say I should use a separate print-information objects for PDF mode. Does the default code take care of that already? Or do I have to figure out somehow if I’m in print-to-PDF mode or regular print mode and change the initialization of “info” above to be “self.pdfPrintOperation” as needed?
And this is why you shouldn't post half-tired. It's "pdfPrintOperation," not "pdfPrintInfo," so my override wouldn't be called by definition. I guess I would override "pdfPrintOperation" to attach a custom print-info, but what should be in it? Is there some Apple sample code on this property? I didn't find it at all on GitHub.
> 2. The RTF files I saved with the conversion operation have wrapping when viewed through QuickLook. But the print-outs don’t do that; they do wrap, but the limit is past the page margins so I lose part of the text. How can I set the wrapping-mode/margins correctly.
I forgot to mention that another symptom was a second page appearing if the document only used one. I guess it was trying to represent the cut-off text on the right side. But it doesn't show up if more than one page is used.
> 3. Are there any other (subtle) problems with the text-view code, since I just took it from Stack Overflow?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden