pdfkit Questions

5

i'm using pdfkit for generating pdf when i generate pdf it gives me following error. command failed: "/usr/bin/wkhtmltopdf" "--page-size" "Letter" "--margin-top" "0.75in" "--margin-right" "0.75in...
Zachariah asked 21/1, 2013 at 19:2

0

Summary of problem: I cannot get the table of contents generator to work in pdfkit for Python. What I have tried: Passing argument toc. My current code: toc = {'xsl-style-sheet': 'toc.xsl'} pdfkit...
Ruwenzori asked 28/9, 2021 at 18:3

7

I am using PDFkit with rails 3.1. In the past I was able to use the render_to_string function and create a pdf from that string. I then add the stylesheets as follows. My issue is that I have no id...
Heymann asked 18/11, 2011 at 18:48

3

Solved

I am getting a JPEG from a URL using node.js requests. I then convert the image to a base64 buffer and write it to the pdf document: request({ url: url, encoding: null }, function (error, response,...
Donothing asked 14/9, 2017 at 15:18

1

Solved

I'm trying to use pdfkit v.0.12.1 with AWS CDK and a Lambda function (tried both typescript and js). When I try to run it I get this error: Error: ENOENT: no such file or directory, open '/var/task...
Gutierrez asked 23/4, 2021 at 16:55

2

I am using pdfkit to generate pdf files from strings. ASK: Each string i pass to pdfkit i want it as a new page in the output pdf. i know this is possible using from_file like below. But, i do ...
Abdul asked 18/4, 2017 at 5:34

8

Solved

I want to build an app which also includes the possibility to show and save PDFs inside the app and display them (as a FileSystem) within a tableview and open them when I tap on one PDF. Here are ...
Pga asked 6/4, 2015 at 21:14

6

Solved

I'm using PDFKit for an application. I'm just using it in the Browser in an HTML file, with Javascript (no Node.js). I downloaded PDFKit from GitHub: https://github.com/devongovett/pdfkit/releases...
Ovoviviparous asked 15/10, 2014 at 21:50

3

Solved

I need to implement a functionality of creating pdf with multiple pages of a text. class PDFCreator { func prepareData() -> Data { //1 let pdfMetaData = [ kCGPDFContextCreator: "PDF Creato...
Grogshop asked 21/10, 2019 at 10:0

2

Solved

In my iOS-App I'm using a PDFView with pdfView.usePageViewController(true, withViewOptions: nil). I want to hide the PDFThumbnailView when the user swipes to another page. I already looked inside...
Agostino asked 22/5, 2018 at 13:53

0

I get odd error messages with PDFView from PDFKit. In some instance I get non-isolated groups aren't supported. Mutating glyph 1 (code 32) in ULBEWJ+MinionPro-Regular. In another instance I get the...
Mcgraw asked 2/1, 2021 at 20:50

3

I transformed an HTML file into a pdf simply by: pdfkit.from_file("cpp.html",'cpp.pdf') Problem is that the font-size is very small. How to increase the font-size (both of headers and paragraph...
Reprimand asked 24/1, 2016 at 17:9

2

Solved

I am getting an error(Blocked access to the file) in HTML to pdf conversion using pdfkit library while using a local image in my HTML file. How can I use local images in my HTML file?
Covariance asked 9/7, 2020 at 12:16

3

Solved

I am successfully adding a highlight annotation to a pdf using swift and PDFKit, but I am unable to figure out how to let the user remove the highlight again. The user can select the text normally...
Footsore asked 29/10, 2019 at 22:53

1

Solved

I am trying to create a PDF file using Firebase Functions and save it to Firebase Storage. I used the code I found in this answers. const functions = require('firebase-functions'); const admin = r...

5

Solved

I would like to generate a pdf using node js (express). I need to add header and footer to every page with page numbers. Any help would be appreciated. Thanks.
Priestess asked 3/3, 2017 at 6:0

5

Solved

I'm using PDFKit to display simple PDF's. When I display them on the screen inside a UIView, I've used the code below. Aims: - Start off with the content to fill the view - want to fill whole sc...
Nichol asked 17/10, 2018 at 21:32

1

Solved

I have information in UIGraphicsPDFRendererFormat with height 400 and I want to attach a table in it, but I need if the table is bigger than the page to create automatically new pages and continues...
Mcculloch asked 18/12, 2019 at 19:26

2

I'm trying to make a PDFView with UIKit and pass it data from a previous SwiftUI view. The data itself is a string with the name of the file. Somehow, the string is not passed from the UIViewContro...
Matchbook asked 12/10, 2019 at 7:46

3

Solved

I am using pdfkit in order to generate pdfs from html strings, rendered by my Django's views. For some reason, the output pdf is small. My pdfkit option dictionary is - options = { 'quiet': '', ...
Perlis asked 29/1, 2017 at 18:9

2

I have reproduced my problem below : I draw a 210x297 rectangle on a web page <!DOCTYPE html> <html> <style> div.rectangle { border: solid 1px; width: 210mm; height: 297mm; ...
Tical asked 10/5, 2017 at 11:3

3

Solved

I'm trying to display a pdf on ios via apples PDFKit library, and rather than use PDFDisplayMode.singlePageContinuous mode, I want to stop at page breaks so I'm trying to use PDFDisplayMode.singleP...
Incomplete asked 12/3, 2019 at 4:16

3

I am using Rails pdfkit gem to render multi-page pdf files. The rendered pdf file picks up the CSS(SCSS) styling and page breaks as expected. However, when I try to render the same pdf document in ...
Beaujolais asked 31/3, 2017 at 23:29

1

I'm having some success with creating PDFs with PDFKit, but the images are not loading from active_storage and assets resources. It fails every single time that I create the PDF, using show.pdf.erb...
Grasmere asked 24/3, 2019 at 22:42

1

Edited this question to use a simpler version of the code. The TestPDF is all text and about 300 pages. As the loop runs it crashes after consuming 2gb of memory. I don’t need the value in the prin...
Ineffable asked 23/2, 2018 at 23:45

© 2022 - 2024 — McMap. All rights reserved.