aws / aws/containers-roadmap

[Fargate] [request]: wkhtmltopdf smart-shrinking not working

Open
#1,144 1 comment 0 reactions 0 assignees View on GitHub
Fargate Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
Enable wkhtmltopdf smart shrinking to work on Fargate

**Which service(s) is this request for?**
Fargate

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
The app converts html to pdf. It works as expected on other platforms including macOS, Ubuntu (EC2) but doesn't work on Fargate (tried both PV 1.3.0 and 1.4.0). Moreover, it doesn't work on EKS as well.

Error message:

> Adobe Acrobat Reader could not open 'something4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

**Are you currently working around this issue?**
By disabling smart shrinking:

mkPage := topdf.NewPageReader(&buf)
mkPage.DisableSmartShrinking.Set(true)
pdfg.AddPage(mkPage)

But the ask is to make it work with smart shrinking enabled.

**Additional context**
Opened on behalf of a customer.

**Attachments**
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

Contributor guide

Open the contributing guide

Research direction

Start by investigating the reported wkhtmltopdf smart-shrinking behavior on AWS Fargate and EKS, comparing it with macOS and Ubuntu on EC2. The work is complete when HTML-to-PDF conversion produces a valid PDF with smart shrinking enabled, without relying on DisableSmartShrinking.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.