Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PDF & Printing

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Fri May 29, 2009 2:34 am    Post subject: PDF & Printing Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Mon Jul 06, 2009 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Tue Jun 08, 2010 3:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Wed Jul 14, 2010 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Tue Jul 20, 2010 6:26 pm    Post subject: Reply with quote

iphonedevsdk.com - How to parse PDF in Objective C for iPad

"I am stack with parsing a PDF file. Please guide me how to do this."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Thu May 05, 2011 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Sun Jan 15, 2012 8:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Thu Feb 02, 2012 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Mon Jun 24, 2013 6:25 pm    Post subject: Reply with quote

so - Implementing an interactive pdf in iOS

"You should read PDF file using Quartz APIs and present it in your own
view if you want to support editing. See below links

Is it possible to combine multiple pdf files into a single pdf file programmatically in iphone?

PDF editing with iPhone sdk

http://www.iphonedevsdk.com/forum/iphone-sdk-tutorials/10989-pdf-creation-tutorial.html

The idea is if you just want text editing, read and draw your pdf file using
quartz 2D APIs, show all text objects inside pdf in editable text elements,
let user change and and on save create/replace text objects in original pdf
using Quartz 2D."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Fri Feb 26, 2016 3:27 pm    Post subject: Reply with quote

so - Cocoa (Mac Os X) Printing Multiple Pages, Why is Preview Window Displaying 2 pages instead of 1?

"I have a cocoa app I'm working on in which I created a customView that
I want to send to the printer. In the subclassed NSView, I set some frame
options as well, the code is below."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Mon Apr 15, 2019 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Mon Apr 15, 2019 7:47 pm    Post subject: Reply with quote

so - How to display pdf on ios

"... The faster, cleaner, way is to use Quicklook. ..."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Tue Nov 03, 2020 11:13 pm    Post subject: Reply with quote

git - OceanLabs / iOS-Print-SDK

"The Kite SDK makes it easy to add print on demand functionality to your app."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Sun Nov 08, 2020 6:34 pm    Post subject: Reply with quote

so - Default paper size and unit for PDF documents on iOS

"For creating PDF documents in iOS, in the official documentation, the default
size is given as 612x792"


http://developer.apple.com/library/ios/#documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GeneratingPDF/GeneratingPDF.html#//apple_ref/doc/uid/TP40010156-CH10-SW3
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Sun Nov 08, 2020 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Sun Aug 27, 2023 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Sun Aug 27, 2023 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group