Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I have a pdf file consisting of several hundred pages. Often text lines go beyond the page limit of the A4 format at the right side. So the text is there but not visible.
When I edit the pdf file in the Adobe Acrobat Pro, I can see that text is in a frame that goes beyond the limit. When I manually draw this frame or box smaller, i.e. pulling the right part into the visible area, than the text inside is completely in the visible area.
It's too much work to do this manually and to find all places. The font size of the text can be different and often the text begins somewhere in the middle.
Is there a way to find out with a perl script, where all textboxes are that go beyond the page limit? Or much better could I automatically minimize the right border of all text boxes to be in the visible are plus a small margin?
There are a lot of pdf libraries on CPAN. But I don't really know how to begin here. Thank you very much for your input!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pdf with too long lines
by LanX (Saint) on Aug 22, 2024 at 20:08 UTC | |
by Dirk80 (Pilgrim) on Aug 23, 2024 at 07:05 UTC | |
by LanX (Saint) on Aug 23, 2024 at 10:53 UTC | |
|
Re: pdf with too long lines (OT)
by LanX (Saint) on Aug 23, 2024 at 13:36 UTC | |
|
Re: pdf with too long lines
by perlfan (Parson) on Aug 24, 2024 at 20:21 UTC | |
by Anonymous Monk on Aug 25, 2024 at 09:06 UTC | |
by Anonymous Monk on Aug 25, 2024 at 11:31 UTC | |
by Anonymous Monk on Aug 27, 2024 at 01:52 UTC | |
by Anonymous Monk on Aug 27, 2024 at 08:43 UTC | |
by Anonymous Monk on Aug 26, 2024 at 09:28 UTC | |
by perlfan (Parson) on Aug 27, 2024 at 23:15 UTC |