pdfkit

PDFKit framework available on the iPhone OS?

I'm curious to know whether the PDFKit framework is available for use within the iPhone OS, in order to build a PDF reader a bit more sophisticated than the one available by simply opening PDF documents with UIWebView. Just wondering if this is an option or not. ...

NSImage - after crop PDF is blurry

I'm trying to crop a NSImage which contains a PDF. When printing I am using NSImage's drawInRect to have it draw only what I need - and this works great. But, now instead I'm trying to create a new NSImage of just the cropped area. I played with it for a while, then found this code on CocoaBuilder: - (NSImage *) imageFromRect: (NSRect)...

editing PDF with PDFKit

i'm writing an application in objective-c (using cocoa). i have a PDF template, i need to substitute actual values into placeholders in PDF and then save the result into new PDF. how can i edit PDF with PDF Kit? can't find anything about editing in documentation, it's all about parsing... or maybe anyone will recommend other library to...

Cocoa PDFKit Unlocking Encrypted Files

Hi all I have a PDF document that has an owner password set but no user password. Therefore it is encrypted. I know the owner password and want to use PDFKit to confirm when the document has been decrypted. I have used the PDFDocument unlockWithPassword method which returns YES when the file is unlocked. However this method also retur...

Printing Off-screen PDFViews

I have a situation where I want to print a multi-page PDF. While I could use the PDFKit utility classes and/or quartz functions to get the information to manually write drawing/pagination code for a NSView subclass, I had thought that quicker alternative would be to create an off-screen PDFView and tell it to print itself. When I tried t...

Attaching Files to PDFs?

PDF files can contain attachments (see here). This is useful when you need machine-readable data (e.g., XML) to be associated with a human-readable PDF. Does Cocoa's PDFKit support adding file attachments to an existing PDF? I'm looking through the documentation and I don't see anything. ...

Is it possible to NOT embed fonts in a PDF generated with PDFKit?

I'm generating PDF documents with PDFKit and I'd like to have it not embed the standard PDF fonts (Times, Helvetica, Courier) if possible. Is there a way to accomplish this? ...

PDFKit in rails gives service 500 error

I am trying to use pdfkit in windows in my rails 2.3 environment. However the middleware that pdfkit gives some error which causes rails to load the service error. What do i do about this? Are there any alternatives to PDFkit which are easy to use ? Well i am currently following the Rails screencast on PDFKit. I installed the pdfkit ge...

Rails 3 - wkhtmltopdf command failed when using PDFKit to create PDF documents

Hello, I have setup PDFKit in my Rails 3 application, using RVM (had to manually copy the wkhtmltopdf binary). When I try to render the PDF version of a page, I get this error: RuntimeError in AgenciesController#show command failed: ["lib/wkhtmltopdf/wkhtmltopdf", "--disable-smart-shrinking", "--page-size", "Letter", "--margin-top", ...

PDFView (PDFKit) not displaying with core animation layers turned on.

I'm doing a sort of kiosk app with a number of buttons that swap out the subviews in a window. There are about a half dozen subviews, all of which are NSViews. One of the subviews has in it a PDFView displaying a local PDF file. Without any core animation, everything works as expected. When I click the button corresponding to the PDF...

PDFKit middleware problem on Rails 2.3.8

I have installed PDFKit and wkhtmltopdf on my Ubuntu 8.04 server. I am trying to use PDFKit as middleware in my Rails 2.3.8 app and have added the following lines to environment.rb (as directed on the jdpace pdfkit page): require 'pdfkit' config.middleware.use PDFKit::Middleware My Mongrel seems to start up but as soon as I request a p...

Change PDF font colour with PDFKit

Hello, Is there a way to render the font of a PDF document in a different colour using the PDFKit library in Cocoa? If not, is there another technology that I should explore? Thanks. ...

Superimposing PDF pages

Hello, I am trying to superimpose two pdf pages; one on top of the other. I am using Cocoa and the PDFKit framework. When I superimpose the second page onto the first, the second page covers the content of the first page entirely (so the first page is no longer visible). Is there a way to change the transparency of the second page so tha...

Rendering fullcalendar in wkthmltopdf generated document in ruby on rails app

Calendar in our app is displayed using Fullcalendar plugin by arshaw Here it is: http://avatara.su/calendar There is a need to export this page to pdf. I always used PDFkit gem to do this, but with fullcalendar it doesn't work. It just renders an empty calendar grid, without rendered events. I tried to set 10 seconds for wkhtmltopdf t...