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
-2
votes
1 answer

can't create PDFDocument(url: url) with local url in SwiftUI

I have used .fileImporter to import a pdf url from the local device into my swiftui app. Now I wish to convert to data and save. .fileImporter(isPresented: $isPresented, allowedContentTypes: [.pdf]) { result in switch result { case…
alionthego
  • 8,508
  • 9
  • 52
  • 125
-2
votes
2 answers

Sample python code to replace a substring value in an xlsx cell

Sample code snippet tried: for row in range(1,sheet.max_row+1): for col in range(1, sheet.max_column+1): temp = None cell_obj = sheet.cell(row=row,column=col) temp = re.search(r"requestor", str(cell_obj.value)) if…
user956424
  • 1,611
  • 2
  • 37
  • 67
-2
votes
1 answer

PDFKIT , Swift How to remove pdf (PDFDocument) from uitableview

i have this code for download PDF file : var documents = [PDFDocument]() DispatchQueue.global(qos: .default).async(execute: { //All stuff here print("Download PDF"); let url=NSURL(string: urlString); …
user2296278
  • 528
  • 1
  • 4
  • 17
-3
votes
1 answer

NoMethodError: undefined method `chomp' for nil:NilClass

Logs /gems/pdfkit-0.6.2/lib/pdfkit/configuration.rb:22 in "wkhtmltopdf" /gems/pdfkit-0.6.2/lib/pdfkit/pdfkit.rb:32 in "initialize" /gems/pdfkit-0.6.2/lib/pdfkit/middleware.rb:22 in "new" /gems/pdfkit-0.6.2/lib/pdfkit/middleware.rb:22 in…
Dipak Panchal
  • 5,996
  • 4
  • 32
  • 68
1 2 3
72
73