Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.17k stars 680 forks source link

Text overlapping in PDF #1395

Closed vidyah-cuelogic closed 3 years ago

vidyah-cuelogic commented 3 years ago

We are using Flask-WeasyPrint==0.6, Text are overlapping. Please refer below screenshot. image I am using it on windows machine.

For reference , we are using below font css

@page { margin: 10px 10px 25px 0px; background: white; size: 18in 18in;

  @bottom-center {
      font-family: 'Open Sans', 'serif';
      content:  "Page "counter(page)" / " counter(pages) ;
      font-size: 20px;
      color: #53565a;
  }

}

body{ font-family: 'Open Sans','serif'; }

I have tried everything. Not able to find out the exact reason of overlapping the text. I am using font-weight : 400,600 and bold in my HTML.

grewn0uille commented 3 years ago

Hello! Can you please share the HTML/CSS files?

vidyah-cuelogic commented 3 years ago

Actually we are using Jinja template in flask. to render dynamic data.

grewn0uille commented 3 years ago

Could you try to save the generated HTML with your browser?

vidyah-cuelogic commented 3 years ago

Hello,

Please find attached html file.

On Mon, Jul 12, 2021 at 6:53 PM Lucie Anglade @.***> wrote:

Could you try to save the generated HTML with your browser?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kozea/WeasyPrint/issues/1395#issuecomment-878276029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAMLJV44ILKKUVROIBYSITTXLUE7ANCNFSM5AGMAOTQ .

-- * Disclaimer This email communication (including any attachments) contains information which is confidential and may be legally privileged. It is for the exclusive use of the intended recipient/s. If you are not the intended recipient, please delete this email communication (including any attachments) and hard copies immediately, please preserve its confidentiality and notify the sender. Any unauthorized use or dissemination of this email communication (including any attachments) in any manner whatsoever, in whole or in part, is strictly prohibited. This email communication (including any attachments), may not be free of viruses, you should carry out your own virus checks before opening any attachment to this e-mail. The sender of this e-mail and Cuelogic Technologies shall not be liable for any damage that you may sustain as a result of viruses, in completeness of this message, a delay in receipt of this message. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Cuelogic Technologies. Cuelogic Technologies will not accept any liability in respect of such content of this email, and the author shall be solely responsible and will be personally liable for any damages or other liability.*

Hcp Icon
Vincent P Laudone
Opinion Leader icon
Local Opinion Leader
Speciality:Urologist
Channel Preference:Digital Pull
Address Icon 1275 York Avenue, New York, NY 10065
Affiliation IconMemorial Sloan Kettering Sidney Kimmel Center For Prostate And Urologic Cancers
Publication
20
Last 10 Years
12
Last 5 Year
Prostate Specific Antigen - 1 Paper(s)
Pten - 1 Paper(s)
Clinical Trial
1
Last 10 Years
0
Last 5 Year
Congress Abstract
9
Last 10 Years
4
Last 5 Year
Safety - 3 Abstract(s)
Efficacy - 2 Abstract(s)
Prostate Specific Antigen - 3 Abstract(s)
Date Recent Publications
09 Mar 2021 Results of a Randomized Phase II Trial of Intense Androgen Deprivation Therapy Prior to Radical Prostatectomy in Men with High-Risk Localized Prostate Cancer.
20 Jun 2020 Routine Postoperative Hemoglobin Assessment Poorly PredictsTransfusion Requirement among Patients Undergoing Minimally Invasive Radical Prostatectomy.
02 May 2020 Regenerative potential of prostate luminal cells revealed by single-cell analysis.
Date Recent Congresses
29 Jan 2020 Results of a phase II trial of intense androgen deprivation therapy prior to radical prostatectomy (RP) in men with high-risk localized prostate cancer (PC).
16 Jan 2017 A phase II study combining ipilimumab and degarelix with or without radical prostatectomy (RP) in men with newly diagnosed metastatic noncastration prostate cancer (mNCPC) or biochemically recurrent (BR) NCPC.
16 Jan 2017 Evaluation of a multimodal strategy to accelerate drug evaluations in early-stage metastatic prostate cancer.
Network
23
Last 5 Year
Network Influencer
Charles Lazelle Sawyers
HCP Network Summary
  • Vincent P Laudoneis directly connected to 4 HCPs.
  • 50% of connections are sharing patients
  • Within Network, 9 are National OL, 4 are Local OL, and 2 Rising Stars
Most Influential in the Network :
HCP Name Specialty Connection OL Level Connected through
Allyson Joy Ocean Oncologist 3 Non-OL 9 Publications; 3 Congress; 6 Patients
Anamaria Luisa Molina Oncologist 3 Non-OL 9 Publications; 3 Congress; 6 Patients
Bernard H Bochner Urologist 1 Non-OL 9 Publications; 3 Congress; 6 Patients
Most Connected in the Network :
HCP Name Specialty Connection OL Level Connected through
Allyson Joy Ocean Oncologist 3 Non-OL 9 Publications; 3 Congress; 6 Patients
Anamaria Luisa Molina Oncologist 3 Non-OL 9 Publications; 3 Congress; 6 Patients
Bernard H Bochner Urologist 1 Non-OL 9 Publications; 3 Congress; 6 Patients
grewn0uille commented 3 years ago

Thanks for the HTML. With the CSS part provided, I can’t reproduce. Could you also share the full CSS please?

liZe commented 3 years ago

@vidyah-cuelogic Is there anything more we can do for you?

liZe commented 3 years ago

This bug really looks like Kozea/CairoSVG#341, I suppose that it’s also caused by Cairo 1.17.4. Using the latest version of WeasyPrint will proably fix this issue.