{"id":3320,"date":"2021-01-13T18:03:43","date_gmt":"2021-01-13T09:03:43","guid":{"rendered":"http:\/\/autooffice.co.kr\/?p=3320"},"modified":"2025-09-15T18:10:40","modified_gmt":"2025-09-15T09:10:40","slug":"google-apps-script-%ec%a0%84%ec%b2%b4-%ec%8b%9c%ed%8a%b8-pdf%eb%a1%9c-pc%ec%97%90-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c","status":"publish","type":"post","link":"https:\/\/www.autooffice.co.kr\/en\/blog\/2021\/01\/13\/google-apps-script-%ec%a0%84%ec%b2%b4-%ec%8b%9c%ed%8a%b8-pdf%eb%a1%9c-pc%ec%97%90-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c\/","title":{"rendered":"Google Apps Script: \uc804\uccb4 \uc2dc\ud2b8 PDF\ub85c PC\uc5d0 \ub2e4\uc6b4\ub85c\ub4dc\ud558\ub294 \ubc29\ubc95"},"content":{"rendered":"\n<p>\uad6c\uae00 \uc2dc\ud2b8\uc758 \uc0c1\ub2e8 \uba54\ub274\uc5d0 <strong>\uc804\uccb4 \uc2dc\ud2b8\ub97c PDF\ub85c PC\uc5d0 \ub2e4\uc6b4\ub85c\ub4dc\ud558\ub294 \uba54\ub274<\/strong>\ub97c \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud569\ub2c8\ub2e4. <\/p>\n\n\n\n<p><a aria-label=\"Google Apps Script: \uba54\ub274 \uc0dd\uc131 (opens in a new tab)\" href=\"http:\/\/autooffice.co.kr\/spreadsheet\/google-apps-script-%eb%a9%94%eb%89%b4-%ec%83%9d%ec%84%b1\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">Google Apps Script: \uba54\ub274 \uc0dd\uc131<\/a>\uc5d0\uc11c \uc774\uc5b4\uc9c0\ub294 \ud3ec\uc2a4\ud305\uc785\ub2c8\ub2e4. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"http:\/\/autooffice.co.kr\/wp\/wp-content\/uploads\/2021\/01\/image-1-1024x678.png\" alt=\"PDF \uc804\uccb4 \uc2dc\ud2b8 \ubc1b\uae30\" class=\"wp-image-3331\" srcset=\"https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2021\/01\/image-1-1024x678.png 1024w, https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2021\/01\/image-1-300x199.png 300w, https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2021\/01\/image-1-768x508.png 768w, https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2021\/01\/image-1.png 1470w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"gb-headline gb-headline-31a78f82\"><span class=\"gb-icon\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 512\" width=\"1em\" height=\"1em\" aria-hidden=\"true\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\" fill=\"currentColor\"><\/path><\/svg><\/span><span class=\"gb-headline-text\"> \ubc29\ubc95<\/span><\/h4>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"width-set:true width:800 top-margin:30 bottom-margin:30 toolbar-overlay:false toolbar-hide:false toolbar-delay:false show-title:false ranges:false nums:false nums-toggle:false plain:false plain-toggle:false copy:false popup:false expand-toggle:false lang:as decode:true \" title=\"Export Whole Sheet to PDF\">function wholeSheet2Pdf() {\n  var ssID = SpreadsheetApp.getActive().getId()       \/\/ \ud30c\uc77c\uc758 \uace0\uc720 ID \uac12\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.\n  \/\/PDF\ub85c \ub2e4\uc6b4\ub85c\ub4dc\ud558\ub294 \uc635\uc158\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. \n  var URL = 'https:\/\/docs.google.com\/spreadsheets\/d\/'\n              +ssID                                   \/\/ \ud30c\uc77c\uc758 \uace0\uc720 ID \uac12\uc744 \ub123\uc5b4 \ub9c1\ud06c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.\n              +'\/export?format=pdf'                   \/\/ PDF\ub85c \ucd9c\ub825 \ud569\ub2c8\ub2e4. \n              + '&amp;size=A4'                            \/\/ \ucd9c\ub825 \uc0ac\uc774\uc988\uc785\ub2c8\ub2e4: legal \/ letter \/ A4\n              + '&amp;portrait=false'                     \/\/ \ucd9c\ub825 \ubc29\ud5a5\uc785\ub2c8\ub2e4. \uc138\ub85c\uba74 true, \uac00\ub85c\uba74 false\n              + '&amp;fitw=true'                          \/\/ \uac00\ub85c \ud06c\uae30 \ub9de\ucda4 true, \uc2e4\uc81c \uc0ac\uc774\uc988 false\n              + '&amp;sheetnames=false&amp;printtitle=false'  \/\/ \ud5e4\ub354, \ud478\ud130 \uc228\uae30\uae30\n              + '&amp;pagenumbers=false&amp;gridlines=false'  \/\/ \ud398\uc774\uc9c0 \ubc88\ud638, \uadf8\ub9ac\ub4dc \ub77c\uc778 \uc228\uae30\uae30 \n              + '&amp;fzr=false'                          \/\/ \uace0\uc815\ud589 \ubc18\ubcf5 true, \ubc18\ubcf5\ud558\uc9c0 \uc54a\uc73c\uba74 false\n  \/\/PDF \ub2e4\uc6b4\ub85c\ub4dc\ub97c \uc704\ud55c \ud31d\uc5c5\ucc3d\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. \n  var htmlOutput = HtmlService                        \n                  .createHtmlOutput('&lt;a href=\"'+URL+'\"&gt;PDF \ub2e4\uc6b4\ub85c\ub4dc&lt;\/a&gt;')   \/\/\ub2e4\uc6b4\ub85c\ub4dc \ub9c1\ud06c \ubc84\ud2bc\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. \n                  .setSandboxMode(HtmlService.SandboxMode.IFRAME)\n                  .setWidth(500)                                          \/\/\ud31d\uc5c5\ucc3d \ub108\ube44\ub97c \uc124\uc815\ud569\ub2c8\ub2e4. \n                  .setHeight(100)                                         \/\/\ud31d\uc5c5\ucc3d \ub192\uc774\ub97c \uc124\uc815\ud569\ub2c8\ub2e4 \n  SpreadsheetApp.getUi().showModalDialog(htmlOutput, '\uc804\uccb4 \uc2dc\ud2b8 \ub2e4\uc6b4\ub85c\ub4dc')   \/\/\ud31d\uc5c5\ucc3d\uacfc \uc81c\ubaa9\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. \n};\n<\/pre><\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"gb-headline gb-headline-a3167fe1\"><span class=\"gb-icon\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 512\" width=\"1em\" height=\"1em\" aria-hidden=\"true\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\" fill=\"currentColor\"><\/path><\/svg><\/span><span class=\"gb-headline-text\">\uc0d8\ud50c \ub9c1\ud06c<\/span><\/h4>\n\n\n\n\n<a class=\"gb-button gb-button-fa331f83 gb-button-text button\" href=\"https:\/\/vo.la\/fnxvy\">\uad6c\uae00\uc2dc\ud2b8 \uc0d8\ud50c<\/a>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"gb-headline gb-headline-b44220e5\"><span class=\"gb-icon\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 512\" width=\"1em\" height=\"1em\" aria-hidden=\"true\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\" fill=\"currentColor\"><\/path><\/svg><\/span><span class=\"gb-headline-text\">\uc124\uba85<\/span><\/h4>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/developers.google.com\/apps-script\/reference\/html\/html-service?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">\uad6c\uae00 \uc124\uba85 (\uc601\ubb38) HtmlService<\/a><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"512\" src=\"https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2025\/08\/image-27.png\" alt=\"\" class=\"wp-image-17075\" srcset=\"https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2025\/08\/image-27.png 691w, https:\/\/www.autooffice.co.kr\/wp\/wp-content\/uploads\/2025\/08\/image-27-300x222.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"aioseo-\uc5c5\ubb34-\ud6a8\uc728\uc131-200-\uc62c\ub9ac\uae30-with-autooffice\">\uc5c5\ubb34 \ud6a8\uc728\uc131 200% \uc62c\ub9ac\uae30, with autooffice<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"aioseo-\ub8e8\ucee4-\uc2a4\ud29c\ub514\uc624-\uac1c\ubc1c-\ubb38\uc758\ub294-\uad6c\uae00\ud3fc\uc744-\uc774\uc6a9\ud574\uc8fc\uc138\uc694\">\ud504\ub85c\uc81d\ud2b8 \uac1c\ubc1c \ubb38\uc758\ub294 \uad6c\uae00\ud3fc\uc744 \uc774\uc6a9\ud574\uc8fc\uc138\uc694!<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSc-FiMM9foF0jEAWqL7IePJTEdQ0X9asQTENOIv_3mltyq2zg\/viewform?pli=1\" target=\"_blank\" rel=\"noopener\" title=\"\">\uc624\ud1a0\uc624\ud53c\uc2a4 \ud504\ub85c\uc81d\ud2b8 \ubb38\uc758<\/a><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uad6c\uae00 \uc2dc\ud2b8\uc758 \uc0c1\ub2e8 \uba54\ub274\uc5d0 \uc804\uccb4 \uc2dc\ud2b8\ub97c PDF\ub85c PC\uc5d0 \ub2e4\uc6b4\ub85c\ub4dc\ud558\ub294 \uba54\ub274\ub97c \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc18c\uac1c\ud569\ub2c8\ub2e4. Google Apps Script: \uba54\ub274 \uc0dd\uc131\uc5d0\uc11c \uc774\uc5b4\uc9c0\ub294 \ud3ec\uc2a4\ud305\uc785\ub2c8\ub2e4. \uad6c\uae00 \uc124\uba85 (\uc601\ubb38) HtmlService \uc5c5\ubb34 \ud6a8\uc728\uc131 200% \uc62c\ub9ac\uae30, with autooffice \ud504\ub85c\uc81d\ud2b8 \uac1c\ubc1c \ubb38\uc758\ub294 \uad6c\uae00\ud3fc\uc744 \uc774\uc6a9\ud574\uc8fc\uc138\uc694! \uc624\ud1a0\uc624\ud53c\uc2a4 \ud504\ub85c\uc81d\ud2b8 \ubb38\uc758<\/p>\n","protected":false},"author":1,"featured_media":3331,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[5],"tags":[355,72,73,70],"class_list":["post-3320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spreadsheet","tag-apps-script","tag-export","tag-pdf","tag-70"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["ko","en"],"languages":{"ko":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/posts\/3320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/comments?post=3320"}],"version-history":[{"count":2,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/posts\/3320\/revisions"}],"predecessor-version":[{"id":17200,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/posts\/3320\/revisions\/17200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/media\/3331"}],"wp:attachment":[{"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/media?parent=3320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/categories?post=3320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.autooffice.co.kr\/en\/wp-json\/wp\/v2\/tags?post=3320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}