Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri May 29, 2009 2:34 am Post subject: PDF & Printing |
|
|
iphonedevsdk.com - Using PDF
"I have the book in PDF format and was wondering if there was a way for me
to load the PDF file into a UIScrollView or any other way." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Jul 06, 2009 5:53 pm Post subject: |
|
|
MF - Creating a PDF document
"I am trying to create a pdf document with CGPDFContextCreateWithURL().
Everything seems ok from the code, but final pdf contains only rectangles
and other graphics, but no text at all." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Tue Jun 08, 2010 3:06 pm Post subject: |
|
|
Slashdot - HP Gives Printers Email Addresses
"HP is set to unveil a line of printers with their own email addresses, allow-
ing people to print from devices such as smartphones and tablets. The ad-
dresses will allow users to email their documents or photos directly to their
own — or someone else's — printer. It will also let people more easily share
physical documents; rather than merely emailing links around, users can
email a photo to a friend's printer. 'HP plans to offer a few of these new
printers to consumers this month, and then a few more of the products to
small businesses in September.'" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Jul 14, 2010 12:51 am Post subject: |
|
|
iphonedevsdk.com - PDF Creation Tutorial
"I have written an intro to PDF tutorial for those that are interested in PDF
interactivity within your iPhone apps. This first tutorial, shows how to simply
create a PDF that contains an image, some text and a border around the
page." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Thu May 05, 2011 11:35 pm Post subject: |
|
|
MF - CGPDFViewController and multipage PDF (zooming)
"I am trying to create a basic PDF viewer for iOS, and I am pretty much
stuck. I only want it to be able to view PDFs and jump to a specific page." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Jan 15, 2012 8:52 pm Post subject: |
|
|
iOS Learner - Generate PDF programmatically in iPhone/iPad SDK
"Moreover, if you are targeting ARC, you have to use __bridge or any such
keyword related to Core Foundation, because ARC does not control Core-
Foundation objects. So I’d personally prefer the methods provided by UIKit,
unless there is a strong need to use the CoreGraphics approach, which till
now I didn’t find." |
|
Back to top |
|
|
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Thu Feb 02, 2012 11:21 pm Post subject: |
|
|
so - iOS SDK - Programmatically generate a PDF file
"Using the CoreGraphics framework is tedious work, in my honest opinion,
when it comes to programmatically drawing a PDF file.
I would like to programmatically create a PDF, using various objects from
views throughout my app." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Mon Apr 15, 2019 7:37 pm Post subject: |
|
|
so - How to send a PDF file using UIActivityViewController
Code: | NSData *pdfData = [NSData dataWithContentsOfFile:pdfFilePath];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[@"Test", pdfData] applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:nil]; |
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Mon Apr 15, 2019 7:47 pm Post subject: |
|
|
so - How to display pdf on ios
"... The faster, cleaner, way is to use Quicklook. ..." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Tue Nov 03, 2020 11:13 pm Post subject: |
|
|
git - OceanLabs / iOS-Print-SDK
"The Kite SDK makes it easy to add print on demand functionality to your app." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Nov 08, 2020 6:50 pm Post subject: |
|
|
TestDevLab Blog - How To Print From iOS Applications
"But what if your printer is not on the supported AirPrint printers list, but still
has wireless printing option? Then you probably connect your iOS device to
printer's Wi-Fi and then print your content using some third party apps. For
example, for Canon printers or for Brother printers and for label printers" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Aug 27, 2023 8:15 pm Post subject: |
|
|
git - Basic PDF Reader/Viewer for iOS
"I've written this basic PDF reader/viewer app for fellow iOS developers
struggling with wrangling PDF files onto iOS device screens. This project
consists of two separate parts" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Aug 27, 2023 8:48 pm Post subject: |
|
|
so - How to attach CGPDFDocument/CGPDFPage to MFMailComposeViewController
Code: | // input
CGDataProviderRef provider = CGDataProviderCreateWithCFData((__bridge CFDataRef)inputData);
CGPDFDocumentRef document = CGPDFDocumentCreateWithProvider(provider);
CGPDFPageRef page = CGPDFDocumentGetPage(document, pageIndex);
CGRect mediaBox = CGPDFPageGetBoxRect(page, kCGPDFMediaBox);
// output
CGDataConsumerRef consumer = CGDataConsumerCreateWithCFData((__bridge CFMutableDataRef)outputData);
CGContextRef context = CGPDFContextCreate(consumer, &mediaBox, NULL);
// draw
CGContextBeginPage(context, &mediaBox);
CGContextDrawPDFPage(context, page);
CGContextEndPage(context);
// cleanup
CGDataProviderRelease(provider);
CGPDFDocumentRelease(document);
CGDataConsumerRelease(consumer);
CGContextRelease(context); |
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Fri Apr 05, 2024 7:58 pm Post subject: |
|
|
apple - Printing From Your App
"When printing to a view object that your app uses only for printing you need to:
- Create a view that will be used only for printing, making sure you size it appropriately.
- Create a print operation using the print view."
Code: | NSPrintOperation *printOp = [NSPrintOperation printOperationWithView:myPrintingView
printInfo:[self printInfo]]; |
|
|
Back to top |
|
|
|