{"id":2320,"date":"2012-10-09T16:14:11","date_gmt":"2012-10-09T07:14:11","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2320"},"modified":"2016-02-03T10:36:00","modified_gmt":"2016-02-03T01:36:00","slug":"acrobat%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6pdf%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e6%95%b0%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8bvba%e3%83%9e","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2320","title":{"rendered":"Acrobat\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed"},"content":{"rendered":"<p><a href=\"\/\/www.ka-net.org\/blog\/?p=2317\" title=\"[PowerShell]iTextSharp\u3092\u4f7f\u3063\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306fPowerShell+iTextSharp\u3001<a href=\"\/\/www.ka-net.org\/blog\/?p=2314\" title=\"Adobe Reader\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed\" target=\"_blank\">\u524d\u3005\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306fVBA+Adobe Reader\u3067PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fAcrobat\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub Sample()\r\n  Dim num As Long\r\n  \r\n  num = GetPDFPages(&quot;C:\\Test&#92;&#48;01.pdf&quot;)\r\n  If num = 0&amp; Then\r\n    Debug.Print &quot;Err.&quot;\r\n  Else\r\n    Debug.Print &quot;\u30da\u30fc\u30b8\u6570:&quot; &amp; num\r\n  End If\r\nEnd Sub\r\n\r\nPublic Function GetPDFPages(ByVal PdfPath As String) As Long\r\n  Dim ret As Long\r\n  \r\n  ret = 0&amp; '\u521d\u671f\u5316\r\n  With CreateObject(&quot;AcroExch.AVDoc&quot;)\r\n    If .Open(PdfPath, vbNullString) Then\r\n      ret = CLng(.GetPDDoc.GetNumPages)\r\n      .Close 1&amp;\r\n    End If\r\n  End With\r\n  GetPDFPages = ret\r\nEnd Function<\/pre>\n<p>Acrobat\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u975e\u5e38\u306b\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3067\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3082PDF\u7de8\u96c6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u672c\u5bb6\u672c\u5143\u3067\u3042\u308bAcrobat\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4fe1\u983c\u6027\u3082\u9ad8\u304f\u5b89\u5fc3\u611f\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u500b\u4eba\u7684\u306b\u306f\u3001PDF\u30d5\u30a1\u30a4\u30eb\u95a2\u9023\u306e\u51e6\u7406\u3092\u30de\u30af\u30ed\u3067\u884c\u3046\u5834\u5408\u306f\u3001Acrobat\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u85a6\u3081\u3057\u307e\u3059\u3002<\/p>\n<h4>\u25a0 \u95a2\u9023Web\u30da\u30fc\u30b8\uff1a<\/h4>\n<p><strong>\u30fbAdobe Reader\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/blog\/?p=2314\" title=\"Adobe Reader\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed\" target=\"_blank\">\/\/www.ka-net.org\/blog\/?p=2314<\/a><br \/>\n<strong>\u30fb[PowerShell]iTextSharp\u3092\u4f7f\u3063\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/blog\/?p=2317\" title=\"[PowerShell]iTextSharp\u3092\u4f7f\u3063\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\" target=\"_blank\">\/\/www.ka-net.org\/blog\/?p=2317<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306fPowerShell+iTextSharp\u3001\u524d\u3005\u56de\u306e\u8a18\u4e8b\u3067\u306fVBA+Adobe Reader\u3067PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fAcrobat\u3092\u5229\u7528\u3057\u3066PDF\u30d5\u30a1\u30a4\u30eb\u306e\u30da\u30fc\u30b8\u6570 [&hellip;]","protected":false},"author":1,"featured_media":7111,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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}},"categories":[4,48,49,136],"tags":[8,93,95],"class_list":["post-2320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-word-office","category-acrobat","tag-vba","tag-pdf","tag-acrobat"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Excel.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-Bq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2320"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2320\/revisions"}],"predecessor-version":[{"id":2326,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2320\/revisions\/2326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7111"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}