in reply to PDF::API2 / imporpage method hangs

Have you verified that $pdf2 is parsable by PDF::API2? (I assume you are using PDF::API2 you don't say) I have run into this problem before when the pdf I was sucking pages out of was not completly parseable by PDF::API2. I was able to resolve it a few times by opening a copy of the PDF I was working on and $pdf->clonepage as needed instead of importing from another pdf.

-Waswas

Replies are listed 'Best First'.
Re: Re: PDF::API2 / imporpage method hangs
by nothingmuch (Priest) on Feb 01, 2003 at 20:42 UTC
    see title, =)

    As the documentation is somewhat ambiguous/lacking i have yet to discover how to delete/insert page objects from/to a pdf object, without the use of importpage.

    I copied from one object to another because it's not nice to ruin your originals, which is something i tend to do more often than not, but no just that. It's also because i simply figured no other way to reorder the pages without simply inserting them into another file in the order i want.

    -nuffin
    zz zZ Z Z #!perl