1,070 questions
1 vote
1 answer
41 views
How do I return a PDF (from PDFKit) using a SvelteKit POST handler?
I am currently working on building an application using SvelteKit, and as such am currently having a VERY difficult time figuring out why I can't trigger the client downloading a PDF (generated by ...
1 vote
0 answers
146 views
Disable line break between two .text() calls with pdfkit
I'm using pdfkit to generate text where syllables are differently colored. I'm having an issue avoiding line breaks in the middle of a word because I call .text() each time I want to change color. Is ...
0 votes
1 answer
130 views
PDFKit go(:to) not working in SwiftUI when loading data from a saved model object
in my SwiftUI app, I have a simple class that loads a PDF and then tries to jump to page 2: struct PDFKitView2: UIViewRepresentable { let pdf: PDF func makeUIView(context: Context) -&...
0 votes
1 answer
67 views
Is there any way to solve the page break row Span issues in pdfKit Table?
I am using PDFKit library to build a table in my nodejs project. There are no issues if the table can fit in one page. The table break into next page when there are no enough spaces to fit the whole ...
2 votes
0 answers
94 views
How to fix the gestureRecognizer over PDFKit breaking the paging in the new ios26 version?
I had project going great, where i needed to do stuff with pdfs, drawing on top them etc. Since apple is all closed sourced i needed to become a bit hacky. Anyways, i have a problem since the new ios ...
2 votes
0 answers
184 views
CanvasView overlay on PDFKit loses quality when zoomed
I’m currently building a SwiftUI app that overlays a PKCanvasView onto each page of a PDFView using PDFPageOverlayViewProvider. It works well at the initial scale, but once I zoom into the PDF, the ...
1 vote
0 answers
58 views
iOS createPDF from WKWebView shows black background for SVG elements
WKWebView has a createPDF function: https://developer.apple.com/documentation/webkit/wkwebview/createpdf(configuration:completionhandler:) It works fine for everything except SVG elements on the page. ...
0 votes
0 answers
64 views
pkg giving error - The 'ascii' encoding is not supported
I am using pdfkit to generate a PDF with images and tables. I am building the project using pkg command - pkg --target <node version> -o app.exe I am getting the below error when executing the ....
0 votes
0 answers
36 views
Next.js and PDFKit stream to response problem
I have a problem with next.js and PDFKit stream. When I create new PDFDocument, convert the stream into new Readable stream and push the data to response, client receives data when doc.end() is fired ...
0 votes
0 answers
33 views
The PKCanvasView Created by PDFPageOverlayViewProvider cannot work normally
By setting the PKCanvasView background color to blue, I can tell that the PKCanvasView for each PDFPage is created normally, but it does not respond to touch. Specifically, whether it is finger or ...
0 votes
0 answers
35 views
SVG Image Flips in PDF while viewing in iOS 18 – How to Fix It?
I'm working with an SVG file that contains two images. One of the images appears as a mirrored (flipped) version when the view in the iOS 18, while the other image renders correctly. Also, for the ...
0 votes
0 answers
90 views
python why is the conversion from HTML to PDF not working properly
I'm trying to create an invoice in A4 format dynamically using airium in python. The creation of the HTML page works as expected. the porblem comes with the conversion to a .pdf, I tried many tools ...
0 votes
0 answers
111 views
HTML page to PDF using pdfkit in python django returning blank
I am trying to convert an html file to pdf after passing and populating it with some data. But it is returning a blank white page.I am using pdfkit and django and below is my code. def generate_pdf(...
-1 votes
1 answer
131 views
Create smaller pdfs with pdfkit
In my django project, i am creating pdfs in python using pdfkit library. However my pdfs with 15 pages have 16mb size. my lib pdfkit==1.0.0 How can I reduce its size, considering my code above: ...
0 votes
0 answers
48 views
How do I rerun the PDFPageOverlayViewProvider?
I want to rerun the function pdfView(_ view: PDFView, overlayViewFor page: PDFPage) -> UIView? in PDFPageOverlayViewProvider. This function is executed when a page is rendered, but I need to update ...