Open edardev opened 1 month ago
I'd expect a system-related issue... in order to solve this, more information is required. This error is an OS error, caused by pypdf or pdfkit library.
Can you tell us more about your env and print?
I'd expect a system-related issue... in order to solve this, more information is required. This error is an OS error, caused by pypdf or pdfkit library.
Can you tell us more about your env and print?
- OS & version
- docker? cloud?
- pypdf & pdfkit version
- Print format/ print format code
- Does this happen to all print formats and doctypes? even the default print format?
I am using the same specifications from the frappe/frappe_docker repository for both the default frappe/erpnext image and my custom images. Despite this, I'm still encountering printing issues everywhere and unformatted print formats etc.
Ok, that's a good approach to begin with 😃 Is there more you can share about your system in order to get more details about print formats, lib versions e.g.?
rint formats, lib versions e.g.?
Sure! Here’s more information about my environment and the printing issues:
OS & Version: I am using the official frappe/erpnext and/or custom docker images: ARG DEBIAN_BASE=bookworm FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base
Docker or Cloud: I’m using Docker to self-host the Frappe/ERPNext instance.
pypdf & pdfkit version: Unkown / I guess whatever is in the main repo
Print format / Print format code: The issue occurs with custom print formats and sometimes default print formats. I’ve tried using a simple custom format as well as the standard invoice format provided by ERPNext.
Does this happen to all print formats and doctypes?: Depends, the issue seems to affect some formats across various doctypes, including Sales Invoices and Payment Requests. Even the default formats are not working as expected.
The error message I keep seeing is: "PDF generation failed because of broken image links," and no PDF is generated successfully.
Let me know if there’s anything else I can provide to help troubleshoot this issue!
ARG PYTHON_VERSION=3.11.6 ARG DEBIAN_BASE=bookworm FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base ARG WKHTMLTOPDF_VERSION=0.12.6.1-3 ARG WKHTMLTOPDF_DISTRO=bookworm ARG NODE_VERSION=18.18.2
I am encountering several errors when trying to submit or print documents. The most common error message I receive is:
In addition, print formats are not functioning as expected. These issues occur frequently during various operations across both Frappe and ERPNext apps, making it difficult to complete tasks that involve printing.
Steps to reproduce the issue Submit a document or attempt to print any standard document (e.g., Sales Invoice, Purchase Order). Error message "PDF generation failed because of broken image links" appears. Print formats fail, leading to either broken layouts or incomplete documents. Observed result PDF generation fails with broken image links. Print formats do not render correctly, causing errors during the printing process.
Expected result The system should generate PDFs without broken images, and the print formats should work without errors across all operations.
Stacktrace / full error message
During handling of the above exception, another exception occurred:
Extra printing button not working either.