Thank's LostS for giving me a hint of how to do this.
I tried the 0.06 version with your script (removed parts that I didn't need) just to see if it would include jpg's as expected,
but no...
I get the following:
Not a JPEG file.
Can't use string ("1.2") as a HASH ref while "strict refs" in use at D:/Perl/site/lib/PDF/Create/Page.pm
I'm 100% sure that it's a JPG-picture so I'm a bit confused...
Second, when I try and open the file after removing the part with the image (just trying to create a PDF-document)
Acrobat Reader says:
"This file is damaged and is beeing repaired"
Anyone got a clue about this???
Thanks for your posting ronzo.
It might be an idea to go through a postscript-file, but I'm trying to avoid it as far as I can...
This should be posible to do with the PDF::Create even if I can't get it working at the moment ;-)
/k2
(I tried to include the code I used but I can't post my message when the code is included...)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.