artist has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have scanned images which are converted to PDF by some tools. I don't have any control over it. I am now trying to combine those PDF file using PDF::Reuse and when it creates the file, it says it contains the errors.

I don't have any problem combining simple pdfs which are made with htmldoc.

I need to know why this is happening. Any alternative module can provide similar functionality?

Thanks,
Artist.
Update: Here is the code on dragonchild's request.

prFile($outpdf); prText(10, 300, "My Mixbook"); prText(10, 200, $date); prPage(); foreach (@pdf_files){ prForm($_); prPage(); } prEnd();

Replies are listed 'Best First'.
Re: Combining PDFs containing images.
by dragonchild (Archbishop) on Apr 05, 2004 at 19:07 UTC
    I have found that PDFs created through tools are sometimes wonky. If you open the PDF in Acrobat and then save it to another file, that file should be fine.

    Of course, it would be helpful to see your code and the errors you're receiving, but that's just me.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

Re: Combining PDFs containing images.
by rob_au (Abbot) on Apr 06, 2004 at 02:10 UTC
    I do not know the specifics of PDF combination using PDF::Reuse, however, you may find this snippet of code which I posted previously for PDF concatenation using PDF::API2 to be of use if you are simply looking for combination by way of concatenation (which at first glance it would appear that you are doing).

     

    perl -le "print unpack'N', pack'B32', '00000000000000000000001011001011'"