2,449 questions
1
vote
1
answer
28
views
“Repeat Header and Footer” is not working as expected for custom print formats
When we switch to the documented approach using #header-html and #footer-html together with print_settings.repeat_header_footer, the header is only rendered on the first page and the footer only on ...
0
votes
0
answers
52
views
How to add [page] , [topage] in the body of PDF [closed]
I am confused about generating the PDF. I have a case
Table of content
A-1 .......................................................................... 2
B-2 ..............................................
0
votes
0
answers
36
views
DinkToPdf / wkhtmltopdf prints only 19 pages even with 64-bit DLL
I am generating a PDF in ASP.NET Core using DinkToPdf (wkhtmltopdf wrapper).
My HTML report is around 20+ pages, but the generated PDF always stops at 19 pages. It never prints the full content.
PDF ...
0
votes
0
answers
62
views
WKHTMLTOPDF doesnt see my custom fonts when i use it by font face
i use wkhtmltopdf in my project to generate pdf files from html, but when i put some custom fonts to html , wkhtmltopdf outputs file where doesnt use my fonts instead uses some default font
i put html ...
0
votes
0
answers
46
views
How to generate a PDF with fixed header and footer (no header/footer switches, no extra borders)?
I'm trying to create a PDF using wkhtmltopdf without the --header-html and --footer-html switches, because those require the "patched qt" build (which I don't have or want, due to licensing)....
0
votes
0
answers
53
views
Header not displaying
I am using dink2Pdf tool for converting html to pdf. i am trying to display dynamic content and a fixed header and footer on each page. the main content and footer inclusion is successful. But i am ...
2
votes
1
answer
561
views
ERPNext (wkhtmltopdf) PDF Generates Incorrect Layout (Font Size, Margins, Page Size)
I'm facing an issue in ERPNext when generating PDFs from the Sales Invoice print screen. There are two options for PDF generation:
Print → Save as PDF (Works perfectly, maintains layout and ...
0
votes
0
answers
41
views
wkhtmltopdf options : How to handle Non-English file name across different OS systems
I'm encountering issues with wkhtmltopdf when passing non-English file names as arguments. For example passing the file named Japan日本.xml, the output file is saved as Japan.xml missing non-english ...
0
votes
1
answer
77
views
How can I pass an XSLT variable to a JavaScript function in an XSLT template?
I am working with XSLT and need to pass an XSLT variable to a JavaScript function to dynamically update the content on the page. Specifically, I have a variable in my XSLT template that I want to use ...
0
votes
1
answer
172
views
Issue with wkhtmltopdf
So in my project i when i am submitting a form i get the html to a action class and then clean it up as per my requirement and load the view form page in the backend for wkhtmltopdf to be able to ...
1
vote
1
answer
75
views
wkhtmltopdf --toc-header-text truncates non-English characters
I’m trying to generate a Table of Contents (TOC) in a PDF using wkhtmltopdf (version 0.12.6). I want the header text for the TOC to display non-English characters, like Japanese characters. However, ...
1
vote
1
answer
103
views
Wkhtmltopdf with inline svg
I'm attempting to turn this page into a pdf.
version: wkhtmltopdf 0.12.6 (with patched qt)
I use the following code for css:
@media print {
body > div:nth-child(1) {
top: -50px !...
0
votes
0
answers
15
views
How to avoid Heading level conflict for categories and child pages in Table of Contents?
I’m using wkhtmltopdf to generate a PDF from HTML, and I'm running into an issue with the table of contents. Here's the structure of my HTML:
<h1>Sub-Category-1-1</h1>
<h1>...
0
votes
0
answers
27
views
How can "Leader Dots" be added between page links and numbers in Table of Contents of PDF
I want to generate Table of Contents(TOC) in PDF as like the fllowing format.
I want to put leader dots dynamically fill up the space between links and numbers in the same line without wrapping any ...
0
votes
0
answers
44
views
vendor\knplabs\knp-snappy\src\Knp\Snappy\AbstractGenerator.php:473
I'm trying to generate a pdf in my laravel application using snappy. But I get a runtime exception specified on vendor\\knplabs\\knp-snappy\\src\\Knp\\Snappy\\AbstractGenerator.php:473.
I'm trying to ...
0
votes
0
answers
30
views
WKHTMLTOPDF converting pdf with parent tag font family in place of child tag font family
When I am converting html to pdf with wkhtmltopdf, then converted pdf using the parent tag style attribute font in place of mentioned font in child tag style attribute.
<div class="efile-tiny-...
0
votes
1
answer
33
views
TypeError: callback is not a function when using wkhtmltopdf in AWS Lambda with custom binary path
I am working on an AWS Lambda function that uses the wkhtmltopdf Node.js library to generate PDFs. I have deployed a custom binary of wkhtmltopdf in a Lambda layer, and I am specifying its path using ...
0
votes
0
answers
50
views
Wkhtmltopdf Caching Options in Laravel Job Queues Causing Configuration Issues
I am using wkhtmltopdf in my Laravel application to generate PDFs. I have two different functions, one for printing budgets and another for printing bills. These are running as job queues.
I'm using ...
0
votes
0
answers
47
views
How to fix wkhtmltopdf Warning: Failed to load image from Docker container?
I'm trying to run wkhtmltopdf inside a Docker container, but it fails to load images from external URLs. The command I'm using is:
wkhtmltopdf document.html output.pdf
Warning: Failed to load http://...
1
vote
0
answers
197
views
Migrating from WKPDF to Gotenberg
I'm trying to migrate from wkhtmlpdfto gotenberg for the pdf generation. The problem is that the pdf generated by gotenberg is not equal as the one generated with wkhtmlpdf. It's like the layout is ...
0
votes
1
answer
186
views
Pipe is broken with Wkhtmltopdf and .net 8 without docker how to solve?
I'm using wkhtmltopdf to convert a cshtml file to PDF. When running locally, it works perfectly without any problems (I'm using Windows). However, when I try to deploy the application to the Docker ...
0
votes
0
answers
74
views
Word getting cut off in the right side of page in wkhtmltopdf in golang
In this picture if you see at the right side it's actually 2013 but it gets cut off and only 20 appears in the final generated pdf.
code snippet of my html template
<!DOCTYPE html>
<html lang=...
3
votes
1
answer
226
views
Is there a way to render gt tables as PNGs with (a) no browser and (b) without wkhtmltopdf/wkhtmltoimage? (R/Python)
I have a really pretty gt table that we'd like to automate production of. Running this on our remote server has some limitations: enterprise policy is that no browsers, headless or otherwise, may be ...
0
votes
0
answers
66
views
wkhtmltopdf keeps on loading for larger HTML input
I'm using PHP Spiritix\HtmlToPdf\Converter(wkhtmltopdf) to convert an HTML page into a PDF. My single HTML page content generates around 240 pages in a PDF, all provided through a single URL input.
...
0
votes
1
answer
191
views
wkhtmltopdf (Odoo) wrong characters seen even if they're escaped but good on html source
I have to make a report on Odoo from scratch, not using the standard layout. I have some lines of the report that shows the currency symbol €. But the PDF is showing strange symbols. I tried to escape ...
0
votes
1
answer
158
views
Wkhtmltopdf is not repeating table headers
I have a very long table and the table header is supposed to be repeating on each page break, but it's not.
Furthermore, on some page breaks rows get casually cut in the middle along with their text.
...
1
vote
1
answer
308
views
Can't use wkhtmltopdf-binary due to error "PDF could not be generated!"
Trying to execute tests on project and got errors with wkhtmltopdf-binary:
Failed to execute:
["/home/o200/.asdf/installs/ruby/2.7.3/bin/wkhtmltopdf", "--margin-top", "5&...
0
votes
1
answer
122
views
DinkToPDF issues on Mac M1 - conversion process hangs
I'm trying to integrate DinkToPDF to convert my HTML reports to PDF in my application. I've made console PoC based on developer's sample and it works fine - I can see that the wkhtmltopdf process ...
5
votes
2
answers
449
views
Wkhtmltopdf Not Working on Amazon Linux 2023
I installed wkhtmltox-0.12.6-1.amazonlinux2.x86_64.rpm on my EC2 instance(t3.xlarge).
While using wkhtmltopdf in Node.js, I'm getting the following error:
Error generating PDF: Error: wkhtmltopdf: ...
0
votes
1
answer
177
views
wkhtmltopdf with pdfkit: PDF blank when referencing local CSS file
I'm experiencing an issue when using wkhtmltopdf with pdfkit to convert an HTML file to PDF. The HTML file references a local CSS file for styling. When I remove the CSS reference, the PDF is ...
1
vote
0
answers
164
views
PyPDF2.utils.PdfReadError: Cannot read an empty file
I have this code below in Odoo 16. When I want to print a single document/download it works!
But if I want to print three or more documents, I get this error:
PyPDF2.utils.PdfReadError: Cannot read an ...
0
votes
1
answer
93
views
wkhtmltopdf: runs js if I pass it a page url but not from a static html file
I'm using a native javascript plugin to highlight some text in a web page.
If I pass wkhtmltopdf the url of the page then the highlighting comes through in the resulting pdf.
However, if I render out ...
0
votes
1
answer
142
views
Conversion HTML file to PDF with using wkhtmltopdf and pdfkit Encoding Problem on Spyder
I am trying to convert some Turkish HTML files to PDF files with using pdfkit module and wkhtmltopdf on Spyder. But I got encoding issues while converting.
When I try to run same code block on Jupyter ...
0
votes
0
answers
265
views
Exception in thread "main" java.io.IOException: Cannot run program "wkhtmltopdf":
When I am trying to convert a PDF from html using wkhtmltopdf, I am facing the below error.
wkhtmltopdf is already installed in my laptop and I am able to generate using cmd using the same command.
...
0
votes
0
answers
114
views
Css problem when converting pdftohtml then html to pdf with wkhtmltopdf
Css problem when converting pdftohtml then html to pdf with wkhtmltopdf.
I'm trying to convert a pdf to html, then translate the html and finally convert it back to PDF with wkhtmltopdf for my website ...
0
votes
0
answers
149
views
wkhtmltopdf error when using as composer require instead binary
I'm trying to use the laravel-snappy package without installing the wkhtmltopdf on my own machine, so I'm using the "wkhtmltopdf binary as composer dependencies" section on this article. But ...
0
votes
0
answers
38
views
I want to pass multiple parameters to Python functions
I am using wkhtmltopdf with Python by calling Python from within the classic asp.
I defined some parameters as default in wkhtmltopdf. with the name "option".
But later, when I call the ...
0
votes
0
answers
52
views
how to make the overflow row go to the next column in wkhtmltopdf?
Everything in col-6 is a string from data, including the tag. This is from a rich text input field.
I'm using Bootstrap 4.
I want to make if the element is over 100rem, the rest of the element (or ...
0
votes
0
answers
45
views
How to Display Page Number on PDF generated by wkhtmltopdf in Laravel PHP?
I'm using Laravel PHP framework along with wkhtmltopdf to generate PDF documents from HTML. Everything works smoothly, but I'm struggling to display page numbers on the generated PDF. I've searched ...
1
vote
0
answers
412
views
Page-Break issue when converting html to pdf using jspdf
i am building a resumetemplate using react and jspdf for this i have build a template and sending it to the jspdf for download but the problem is when i added extra content for example if i add a ...
-1
votes
2
answers
111
views
How can i reduce the size of my PDF with my shell?
After using the Pdf2htmlEX command to convert my PDF to HTML, I translated my HTML and then used the wkhtmltopdf command to convert this HTML to PDF, it gave me the PDF file correctly but the problem ...
0
votes
1
answer
146
views
Saving Several Webpages as PDF Files in Python
I need to save several webpages as PDF files in Python. I have found several examples in this direction, some uses PyQt5 and and some uses wkhtmltopdf.
I could not be successful with wkhtmltopdf even ...
0
votes
0
answers
227
views
wicked_pdf not rendering template nor footer on rails 7
I am trying to render a document as pdf using wickedpdf on a rails 7 app. It works fine BUT when I try to use the --header and --footer to print pdf as stationery, wicked/wkhtmltopdf just ignores the ...
0
votes
0
answers
184
views
wkhtmltopdf not working after server migration
I'm changing server and I'm in the process of migrating the content, using a cloned copy. I'm checking that everything works.
But the generation of a pdf using wkhtmltopdf and the snappy wrapper does ...
0
votes
0
answers
234
views
Wkhtmltopdf. Word-break break-all
I have problems with converting to PDF. I get the impression that word-break break-all does not work, I seem to have climbed a branch, but nothing helped me. Everything is fine in the browser, but the ...
0
votes
1
answer
321
views
Wkhtmltopdf renders browser warning on pdfs
Recently any generated pdf contains a 50% wide column containing:
You are currently using a browser that is no longer 100% supported. It can cause display
problems.
Please upgrade your browser.
...
0
votes
0
answers
222
views
Wkhtmltopdf failed (error code: -9) when printing a report with a large number of records
Odoo Community Edition version 14 / Wkhtmltopdf version 0.12.6 (with patched qt)
When printing a report with a large number of records (for example, printing standard Sale Order report with more than ...
1
vote
0
answers
132
views
wkhtmltopdf Table is starting from next page instead of breaking
Table is starting from next page instead of breaking in the same page, It breaks properly if I reduce few rows or add few rows.
I have break-inside: avoid; in parent container and in Table Row break-...
-1
votes
1
answer
390
views
Images randomly not rendering using wkhtmltopdf or DinkToPdf
When using DinkToPdf, had issues where random pictures would not render whether only 1 image or multiple were in the html being converted. The picture could be moved anywhere in the html, above other ...
0
votes
1
answer
230
views
The process has been signaled with signal "11" on CentOS using snappy laravel
I have been successfully using the Snappy library to generate PDFs on my Windows machine. However, when attempting to generate the same PDF on a CentOS-based server, I encountered an error. This issue ...