{"id":1961,"date":"2010-12-10T21:00:00","date_gmt":"2010-12-10T21:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/12\/10\/campdf-pdf-manipulation-library-by-clotho-advanced-media\/"},"modified":"2010-12-10T21:00:00","modified_gmt":"2010-12-10T21:00:00","slug":"campdf-pdf-manipulation-library-by-clotho-advanced-media","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/12\/10\/campdf-pdf-manipulation-library-by-clotho-advanced-media\/","title":{"rendered":"CAM::PDF &#8211; PDF manipulation library by &#8220;Clotho Advanced Media&#8221;"},"content":{"rendered":"<p>\t\t\t\t<a href=\"http:\/\/search.cpan.org\/perldoc?CAM::PDF\">CAM::PDF &#8211; search.cpan.org<\/a><\/p>\n<p>I am currently into PDF &#8220;reading&#8221;, and this software looks rather promising.<\/p>\n<p>There are also a couple of nice command line utilities in the TAR ball&#8217;s <span>bin\/<\/span> subdirectory.<\/p>\n<ul>\n<li>appendpdf.pl<\/li>\n<li>asciify<\/li>\n<li>changepagestring.pl<\/li>\n<li>changepdfstring.pl<\/li>\n<li>changerefkeys.pl<\/li>\n<li>crunchjpg_tmpl.pdf<\/li>\n<li>crunchjpgs.pl<\/li>\n<li>deillustrate.pl<\/li>\n<li>deletepdfpage.pl<\/li>\n<li>extractallimages.pl<\/li>\n<li>extractjpgs.pl<\/li>\n<li>fillpdffields.pl<\/li>\n<li>getpdffontobject.pl<\/li>\n<li>getpdfpage.pl<\/li>\n<li>getpdfpageobject.pl<\/li>\n<li>getpdftext.pl<\/li>\n<li>listfonts.pl<\/li>\n<li>listimages.pl<\/li>\n<li>listpdffields.pl \u2013 sic!!! \u2013 I adapted that a little, now it shows page num. (with a little extra help from Chris Dolan) and the position for each field<\/li>\n<li>pdfinfo.pl<\/li>\n<li>readpdf.pl \u2013 shows you the PDF data structure as perl data dump<\/li>\n<li>renderpdf.pl<\/li>\n<li>replacepdfobj.pl<\/li>\n<li>revertpdf.pl<\/li>\n<li>rewritepdf.pl<\/li>\n<li>setpdfbackground.pl<\/li>\n<li>setpdfpage.pl<\/li>\n<li>stamppdf.pl<\/li>\n<li>uninlinepdfimages.pl<\/li>\n<\/ul>\n<p>Of course, they all use <span>\/usr\/bin\/perl<\/span> and not <span>\/usr\/local\/perlbrew\/bin\/perl<\/span>, and I am currently still into <i>perlbrew<\/i>., so how would I replace all these occurrences?<br \/>\nThat reminded me of that <span>fixin<\/span> utility from the very old days, which updates the <span>#!<\/span>\u00a0(&#8220;shebang&#8221;) line appropriately.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CAM::PDF &#8211; search.cpan.org I am currently into PDF &#8220;reading&#8221;, and this software looks rather promising. There are also a couple of nice command line utilities in the TAR ball&#8217;s bin\/ subdirectory. appendpdf.pl asciify changepagestring.pl changepdfstring.pl changerefkeys.pl crunchjpg_tmpl.pdf crunchjpgs.pl deillustrate.pl deletepdfpage.pl extractallimages.pl extractjpgs.pl fillpdffields.pl getpdffontobject.pl getpdfpage.pl getpdfpageobject.pl getpdftext.pl listfonts.pl listimages.pl listpdffields.pl \u2013 sic!!! \u2013 I adapted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-1961","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-vD","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=1961"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1961\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=1961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=1961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=1961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}