I know you already have your solution, but two more comments:

> Often text lines go beyond the page limit of the A4 format at the right side. So the text is there but not visible.

(Kind of off topic here :)

I'm not sure if you're talking about print or online viewing, but this sounds like the document was produced for another paper size like letter ¹.

So rescaling "to fit" or changing the page format on the creator level should help here.

Maybe try this inside your "Pro Acrobat" tool ? ²

> Or much better could I automatically minimize the right border of all text boxes to be in the visible are plus a small margin?

Hmm this depends on the level of semantic info available. Many tools only have positional informations and lack your/ artificial "intelligence" to tell what should be resized and what not.

For instance you don't want your page numbers and headings to skip because the main body is reflown.

Even with an elaborate CPAN module you'd need a lot of try and error.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Updates

¹) PS: metric rules! =D

²) there are plenty of online services offering to resize PDF


In reply to Re: pdf with too long lines (OT) by LanX
in thread pdf with too long lines by Dirk80

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.