Questions tagged [pdfkit]

PDFKit is a PDF document generation library built on top of wkhtmltopdf to convert HTML+CSS to pdf using Webkit.

Project homepage

PDFKit is for creating PDFs using plain old HTML+CSS. Uses wkhtmltopdf on the back-end which renders HTML using Webkit.

PDFKit comes with a middleware that allows users to get a PDF view of any page on your site by appending .pdf to the URL.

Uses wkhtmltopdf on the back-end which renders HTML using Webkit.

1084 questions
0
votes
1 answer

Getting paperclip database images to show in pdf generated using pdfkit

I'm using paperclip to allow users to upload a logo, which is stored in the database company_setting.rb model: has_attached_file :logo_image, :storage => :database, :styles => {:original => "160x80>", :small =>…
0
votes
1 answer

How to show PDF file Inline using PDFKit in Rails3

I want to know about PDFKit code to show the pdf inline of any html page I want the code using send_data() or send_file() or render.pdf {} something like this I am able to create the pdf file Using pdfkit but dont't know how to render it…
Mohammad Sadiq Shaikh
  • 3,160
  • 9
  • 35
  • 54
0
votes
1 answer

How to set path to PDFkit (gem can't find wkhtmltopdf)?

I'm running Rails on Windows and installed wkhtmltopdf(path - C:\Users\User\local\bin). I'm trying to configure it using documentation - https://github.com/pdfkit/pdfkit#configuration. But it gives me errors about path. I create pdfkit.rb file in…
MID
  • 1,815
  • 4
  • 29
  • 40
0
votes
1 answer

pdfkit gem generating pdf links as text (not click-able links)

I'm generating pdf with gem pdfkit (successfully) only issue that I have is that my pdf links are pure text (with color doh) but I cannot click on them Generated pdf file: http://bit.ly/MZBdmL the HTML

links

equivalent8
  • 13,754
  • 8
  • 81
  • 109
0
votes
2 answers

Creating PDF from photos on a Facebook Rails app

I'm creating a Facebook app using Rails and hosted on Heroku and I'm having a bit of trouble finding the ideal way to solve a problem. I want the user to be able to move their photos around on the screen, position them, and then download that as…
0
votes
2 answers

PDFkit Gem Not Working in Rails

I have installed both PDFKit and wkhtmltopdf. I used brew install for wkhtmltopdf, and for PDFkit, I added it to my gem file and created the following: # config/initializers/pdfkit.rb PDFKit.configure do |config| config.wkhtmltopdf =…
Noah Clark
  • 8,101
  • 14
  • 74
  • 116
0
votes
1 answer

PDFKit and new WKHTMLTOPDF binaries

According to PDFkit Documentation it could handle any wkhtml options. And that's the cool thing about it. But now with WKHTMLTOPDF-0.10.0 and higher according to it's documentation accepts Multiple Html Documents Page, Cover, Table Of Contents…
prikha
  • 1,853
  • 1
  • 16
  • 26
0
votes
1 answer

Having trouble using pdfkit in rails app

I need to use pdfkit gem. I have installed gem, and wkhtmltopdftool as written in gem githubpage.(I installed wkhtmltopdf using homebrew). Now, I was doing anything as said in railscast about pdf kit. But when I add extension .pdf to my url. It…
Pavel
  • 3,900
  • 6
  • 32
  • 41
0
votes
1 answer

PDF Generation hangs using PDFKit and wkhtmotopdf

I'm on OSX Lion using wkhtmtopdf that came with homebrew (0.9.9) and all of the sudden I cannot generate PDFs anymore. When I tack .pdf on the end of a URL, the wkhtmltopdf process fires up, but the process never completes. I suspect it's an issue…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
-1
votes
1 answer

Drawing (to PDF) an UIImage that has been written to a file does not give the same result as drawing the original UIImage

Some context first: I simply draw a UIImage to a PDFPage by subclassing PDFPage and overriding draw(with box,to context): override func draw(with box: PDFDisplayBox, to context: CGContext) { /* Draw image on PDF */ …
vomi
  • 993
  • 8
  • 18
-1
votes
1 answer

Issue loading PDF for UIActivityViewController with .dataRepresentation()

I have what I thought was a simple View Controller to displayed a preloaded PDF file. The path to the PDF is passed into var pdfPath by the pervious controller. I have an action/share button I'm trying to use for sharing and printing the PDF using …
StonedStudio
  • 507
  • 3
  • 20
-1
votes
2 answers

How can I resize an image from an existing PDF file in Node.js?

I have a PDF file that has an image and some text. I want to read that file and then resize the image, and delete the text. I tried taking a screenshot of the whole PDF with pdf-poppler and then do some image processing with Jimp, it worked but the…
DINO
  • 191
  • 1
  • 12
-1
votes
1 answer

how to put multiple images to pdf using pdfkit (node js)?

what i wanted is paste multiple images from multilpe url. to do so im downloading and one by one appending to pdf but the problem is code is not synchronous. And I'm new to node / javascript. here is my code and error please help me var download =…
rustiver
  • 81
  • 3
  • 10
-1
votes
1 answer

How to display current page using PDFKit on Swift

How to display the current PDF page when reading a PDF file using the PDFKit on swift ? That small box on the top or bottom of the page displaying “ 1 of 20 “ for example.
HCD1407
  • 11
  • 4
-1
votes
1 answer

How to get the position of my current PDFPage?

I am using PDFKit and added a PDFView to my ViewControllers view. I want to know where the current PDFPages position in my main view is. Normally i would use the convert() function given by UIView but PDFPage is not a UIView. Any ideas ?
1 2 3
72
73