boazsegev / combine_pdf

A Pure ruby library to merge PDF files, number pages and maybe more...
MIT License
735 stars 157 forks source link

paragraph text is collapsing when trying to combine file #237

Open usman-authorea opened 10 months ago

usman-authorea commented 10 months ago

The text of the paragraph collapses when we try to combine the cover page with the attached PDF. See the attached image of the issue.

Screenshot 2024-01-18 at 3 42 55 AM

You can also see the generated output on our site https://www.techrxiv.org/doi/full/10.36227/techrxiv.24574513.v1 Click on Download PDF and see the issue.

Insights_and_Challenges_of_Co_Simulation_based_Optimal_Pulse_Pattern_Evaluation_for_Electric_Drives.pdf

ntayloratypon commented 9 months ago

Hi @boazsegev ... Sorry if inappropriate to ping directly on this list, but I've seen the above issue quite a few times...

Basically, where PDFs are being combined - here simply to add a cover page - but something in the original PDF seems to break the formatting (above, that's both the colliding column text as well as missing images) as well as subsequent pages being missing...

Not mentioned above, but visible from the original PDF below, is the fact that 3 pages are missing after encountering the formatting problem.

Insights_and_Challenges_of_Co_Simulation_based_Optimal_Pulse_Pattern_Evaluation_for_Electric_Drives.pdf

It would be interesting to understand if there is a known issue here... maybe something we can have corrected in the PDF original maybe (or another workaround).