Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Bug: Header text clipping/overflow in PDF export

Open arthiccc opened this issue 8 months ago • 4 comments

Title: Bug: Header text clipping/overflow in PDF export Description: There is a rendering discrepancy between the editor view and the exported PDF. Long words in H1 headers (e.g., "IMPLEMENTASI") are being clipped/cut off on the left margin in the PDF output, while they appear correctly in the Markpad editor. Steps to Reproduce: Create a markdown file with a long word in an H1 header (e.g., # IMPLEMENTASI). Export the file to PDF. Open the PDF and observe the left margin. Expected Behavior: The text should be fully contained within the PDF page margins, matching the editor's layout or scaling down if necessary. Actual Behavior: The beginning of the word is cut off (e.g., "IMPLEMENTASI" becomes "...LEMENTASI"). Environment: OS: Windows (based on the file path in screenshot) App: Markpad (Tauri-based) Screenshot: Image

arthiccc avatar Apr 03 '26 04:04 arthiccc

Have the same issue; it seems like a white rectangle is hiding part of the text:

Image

tosione avatar Jul 02 '26 08:07 tosione

seems solved in 3.6.11

tosione avatar Jul 06 '26 10:07 tosione

Several changes have landed here since: v2.6.4→2.6.5 added overflow-wrap: anywhere so long words break instead of overflowing, and #329/#333/#359 reworked the print layout (page margins moved onto the document body, tables and images constrained, spacing tightened for paper).

I can't reproduce the original from macOS — the Windows WebView2 print pipeline is a different renderer, and I can't account for text being clipped on the left specifically. Would you be able to export a PDF from a current build and say whether it still happens?

PathGao avatar Aug 02 '26 21:08 PathGao

I tested with 2.7.3 on windows 10 and it seems OK. Thanks.

tosione avatar Aug 13 '26 10:08 tosione