{"id":2244,"date":"2018-10-08T20:36:36","date_gmt":"2018-10-09T00:36:36","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=2244"},"modified":"2018-10-11T11:28:57","modified_gmt":"2018-10-11T15:28:57","slug":"automation-for-pdf-viewing","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2018\/10\/08\/automation-for-pdf-viewing\/","title":{"rendered":"Automation for PDF Viewing"},"content":{"rendered":"\n<p>I&#8217;ve wanted to automate view management for PDF documents for some time. It would provide a way to make locating the document I want and getting content up on the screen amid a mass of technical documentation much easier (and with the cryptic names that many companies use for their pdf files that can be a big deal).<\/p>\n\n\n\n<p>Ideally I&#8217;d like to access the viewer over something like a DCOM automation link with full control over the view state and other particulars. In a pinch, I&#8217;d settle for process control, cross process window size and location management and some command line arguments to force the view mode and initial page view.<\/p>\n\n\n\n<p>Here are some pages that might be helpful with this (still reading things but trying to keep a record here).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/stackoverflow.com\/questions\/619158\/adobe-reader-command-line-reference\">Adobe Reader Command Line Reference (stack overflow)<\/a><\/li><li><a href=\"https:\/\/www.adobe.com\/content\/dam\/acom\/en\/devnet\/acrobat\/pdfs\/pdf_open_parameters.pdf\"> Parameters for Opening PDF Files (Adobe PDF)<\/a><\/li><li><a href=\"http:\/\/www.robvanderwoude.com\/commandlineswitches.php#Acrobat\">Adobe Reader (at robvanderwode)<\/a><\/li><li><a href=\"https:\/\/www.pdfscripting.com\/public\/Automating-Acrobat.cfm\">Automating Acrobat can save you loads of time.<\/a><\/li><li><a href=\"https:\/\/forums.adobe.com\/thread\/2157697\">How to automate so that pdf will always open in Adobe Reader DC in Windows 10<\/a><\/li><li><a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/vstudio\/en-US\/eac48ad8-6138-4c35-b462-2afa52f8d682\/automating-acrobat-through-c?forum=csharpgeneral\">Automating Acrobat Through C#<\/a><\/li><li><a href=\"https:\/\/forums.adobe.com\/community\/acrobat\/acrobat_sdk\">Acrobat SDK: Ask a question<\/a><\/li><li><a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/windowsdesktop\/en-US\/5918913f-d4b9-4272-9d4b-0951f253c618\/how-to-invoke-any-button-in-toolbar-of-acrobat-reader-9-?forum=windowsaccessibilityandautomation\">How to invoke any button in toolbar of Acrobat Reader 9<\/a><\/li><\/ul>\n\n\n\n<p>Another approach would be to find a PDF renderer that can be run inside a C# or C++ process. Looking there as well&#8230; Suspecting there may very well be a project or two on GitHub.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/stackoverflow.com\/questions\/518878\/how-to-render-pdfs-using-c-sharp\">How to render pdfs using C#<\/a><\/li><li><a href=\"https:\/\/helpx.adobe.com\/acrobat\/using\/display-pdf-in-browser.html\">Display PDF in browser | Acrobat, Acrobat Reader<\/a><\/li><li><a href=\"https:\/\/forums.adobe.com\/thread\/1386600\">Adobe PDF Reader &#8211; Internet Explorer 11 ActiveX Control failing with unspecified error.<\/a><\/li><li><a href=\"https:\/\/www.adobe.com\/devnet\/acrobat\/documentation.html\">ACROBAT DC SDK DOCUMENTATION<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve wanted to automate view management for PDF documents for some time. It would provide a way to make locating the document I want and getting content up on the screen amid a mass of technical documentation much easier (and with the cryptic names that many companies use for their pdf files that can be &hellip; <a href=\"https:\/\/ninecrows.com\/career\/2018\/10\/08\/automation-for-pdf-viewing\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Automation for PDF Viewing<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[43,9,12,2,5,7],"tags":[],"class_list":["post-2244","post","type-post","status-publish","format-standard","hentry","category-c","category-daily-blog","category-general-technical","category-projects","category-thoughts","category-topics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-Ac","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2244"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=2244"}],"version-history":[{"count":6,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2244\/revisions"}],"predecessor-version":[{"id":2260,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2244\/revisions\/2260"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=2244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=2244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=2244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}