Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: Missing File to PDF feature when deploy to k8s

Open Baron1234 opened this issue 9 months ago • 8 comments

Installation Method

Docker

The Problem

Image

Version of Stirling-PDF

0.44.3

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

No response

Docker Configuration

helm charts

Relevant Log Output


Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • [x] I have verified that there are no existing issues raised related to my problem.

Baron1234 avatar Mar 24 '25 02:03 Baron1234

Hey @Baron1234! I'm here to help you with any bugs, questions, or contributions. Let's squash this bug together!

A similar closed issue suggests that the missing "weasyprint" dependency, which affects Markdown, URL, and HTML to PDF features, can be resolved by installing the full version of the application, as the lite version does not include "weasyprint" [1]. You might want to check if the full version is being used in your deployment. Additionally, ensure that "unoconvert" is installed to address the File to PDF conversion issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Mar 24 '25 02:03 dosubot[bot]

does anyone know the root cause?

Baron1234 avatar Mar 24 '25 02:03 Baron1234

Hey @Baron1234! I'm here to help you with any bugs, questions, or contributions. Let's squash this bug together!

A similar closed issue suggests that the missing "weasyprint" dependency, which affects Markdown, URL, and HTML to PDF features, can be resolved by installing the full version of the application, as the lite version does not include "weasyprint" [1]. You might want to check if the full version is being used in your deployment. Additionally, ensure that "unoconvert" is installed to address the File to PDF conversion issue.

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Hi dosubot, I already tried the fat image of 0.44.3-fat, but I still meet this issue.

Baron1234 avatar Mar 24 '25 02:03 Baron1234

I tried 0.41.0-fat image, and does not meet this issue.

Baron1234 avatar Mar 24 '25 02:03 Baron1234

Can you try the latest 0.45.0?

Frooodle avatar Mar 26 '25 12:03 Frooodle

Can you try the latest 0.45.0?

Using the 74df26d revision, then gradle build then docker build -t stirlingpdf . then docker run -it -p 8080:8080 stirlingpdf, I can confirm that file-to-pdf is enabled, but url-to-pdf is disabled, with no log message explaining why. (Only 08:18:50.254 [main] INFO s.s.S.config.EndpointConfiguration - Total disabled endpoints: 1. Disabled endpoints: url-to-pdf)

Edit: if it is intended, I suggest it added to the documentation somewhere ^^

Epithumia avatar Mar 28 '25 08:03 Epithumia

https://github.com/Stirling-Tools/Stirling-PDF/releases/tag/v0.45.0 This update includes a huge security fix, recommended for all users, as part of this we are disabling URL-TO-PDF as default, to enable a user must specify it within settings.yml

Frooodle avatar Mar 28 '25 08:03 Frooodle

Not on https://docs.stirlingpdf.com/search?q=url-to-pdf ;)

Epithumia avatar Mar 28 '25 13:03 Epithumia