{"id":56387,"date":"2025-11-05T13:57:50","date_gmt":"2025-11-05T13:57:50","guid":{"rendered":"https:\/\/www.roger-pearse.com\/weblog\/?p=56387"},"modified":"2025-11-05T13:57:50","modified_gmt":"2025-11-05T13:57:50","slug":"pdfs-and-the-perils-of-ill-get-one-of-my-students-to-do-it","status":"publish","type":"post","link":"https:\/\/roger-pearse.com\/weblog\/2025\/11\/05\/pdfs-and-the-perils-of-ill-get-one-of-my-students-to-do-it\/","title":{"rendered":"PDFs and the perils of &#8220;I&#8217;ll get one of my students to do it.&#8221;"},"content":{"rendered":"<p align=\"justify\">I was hunting around the web for an article from an Italian encyclopedia, when I struck lucky.\u00a0 All twelve volumes had been digitised to PDF, and they were available to download from Archive.org.\u00a0 Great news!<\/p>\n<p align=\"justify\">Well, I only needed volume nine, so I grabbed that.\u00a0 To my shock, the PDF was over 3 GIGABYTES in size!\u00a0 That would mean the whole encyclopedia would take a massive 40gb out of my disk space. Yet each volume is only 1200 pages, and I think all of the pages are black and white.<\/p>\n<p align=\"justify\">Nor was this the only problem.\u00a0 \u00a0A 3Gb PDF is such a large file that Abbyy Finereader wouldn&#8217;t open it.\u00a0 My anti-virus picked it up and complained about it.\u00a0 My long outdated copy of Adobe Acrobat Pro 9\u00a0 wouldn&#8217;t extract the three pages that I actually needed.\u00a0 Nor would it print those three pages.\u00a0 I thought about just buying a copy of whatever the latest version of Acrobat Pro might be; but dear old Adobe, an evil company, has quietly removed the option.\u00a0 All you can buy is a monthly subscription.<\/p>\n<p align=\"justify\">So what on earth to do?\u00a0 Why was the file so large anyway?<\/p>\n<p align=\"justify\">Thankfully I found a free downloadable tool for Windows called <a href=\"http:\/\/pdfsam.org\/download-pdfsam-basic\/\">PDFSam Basic<\/a>.\u00a0 This allowed me to split off the first\u00a0 few pages, and then I could work with them in Adobe Acrobat 9 as usual.\u00a0 I extracted the first page to png format, and found that that one page alone was more than 3 megabytes in size.\u00a0 That&#8217;s the same size as a full-colour photograph on my digital camera.\u00a0 Whoever had made the scans had done so at maximum resolution, in full colour.\u00a0 For black-and-white text pages.\u00a0 [Update: do NOT use PDFSam!\u00a0 It also silently installed it&#8217;s paid for model, and the uninstall did not work.]<\/p>\n<p align=\"justify\">Well, I used PDFSam to chop the 3Gb monster up into three files, and then I used Adobe Acrobat to &#8220;save as&#8221; these out to PNG, with settings RGB=off, colourspace=Monochrome.\u00a0 This produced a directory full of .png files, one for each page, none larger than 150kb, and often much less.\u00a0 The first page was no longer 3mb but 36kb.\u00a0 Then I gathered these up into a PDF using Adobe Acrobat and&#8230; the PDF file for all the pages was now a\u00a0 mere 109mb.\u00a0 Much more sensible.<\/p>\n<p align=\"justify\">Only afterwards did it occur to me that this sort of task is what ImageMagick is for.\u00a0 It&#8217;s a very powerful command line tool.\u00a0 But I don&#8217;t currently have that installed because it has so many switches and options that I use it rarely.\u00a0 And working out what option to use takes a while.<\/p>\n<p align=\"justify\">Inspecting the new PDF, I saw that the scanning had been done extremely carelessly.\u00a0 The opening pages had a large stain across them:<\/p>\n<p align=\"justify\"><a href=\"https:\/\/roger-pearse.com\/weblog\/wp-content\/uploads\/2025\/11\/p__Page_002-scaled.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-56388\" src=\"https:\/\/roger-pearse.com\/weblog\/wp-content\/uploads\/2025\/11\/p__Page_002-226x300.png\" alt=\"\" width=\"226\" height=\"300\" \/><\/a><\/p>\n<p align=\"justify\">Anybody who has used a photocopier knows that this happens when you haven&#8217;t got the page flat on the copier.\u00a0 Sheer carelessness.<\/p>\n<p align=\"justify\">And that&#8217;s actually the cause of the huge page sizes too.\u00a0 Whoever did the scan didn&#8217;t bother to set the copier up correctly.\u00a0 They just scanned at max resolution, full colour, and let the output be whatever size it might be.\u00a0 Whoever did it was NOT the person who was going to need to use the file.<\/p>\n<p align=\"justify\">I think we can all guess how this might happen.\u00a0 What sort of person has young people at their disposal to do chores like this?<\/p>\n<p align=\"justify\">So&#8230; my friends, whenever you get a student to scan a book for you, do please remember that they don&#8217;t want to do it, and CHECK the results?\u00a0 Thank you.<\/p>\n<p align=\"justify\">Update: Further experiments show that I don&#8217;t need to use PDFSam &#8211; Acrobat will save as the whole file to .png, even if it won&#8217;t do much else.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was hunting around the web for an article from an Italian encyclopedia, when I struck lucky.\u00a0 All twelve volumes had been digitised to PDF, and they were available<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_awef_post_faq_schema":[],"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_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},"jetpack_post_was_ever_published":false},"categories":[19],"tags":[],"class_list":["post-56387","post","type-post","status-publish","format-standard","hentry","category-from-my-diary-announcements"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/posts\/56387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/comments?post=56387"}],"version-history":[{"count":0,"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/posts\/56387\/revisions"}],"wp:attachment":[{"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/media?parent=56387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/categories?post=56387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roger-pearse.com\/weblog\/wp-json\/wp\/v2\/tags?post=56387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}