{"id":147840,"date":"2023-07-04T17:44:42","date_gmt":"2023-07-04T08:44:42","guid":{"rendered":"https:\/\/support.questetra.com\/?p=147840"},"modified":"2023-07-04T17:44:44","modified_gmt":"2023-07-04T08:44:44","slug":"adobe-pdf-services-asset-download-2023","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-download-2023\/","title":{"rendered":"Adobe PDF Services #ASSET: Download"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-background\" style=\"background-color:#ffccff;margin-top:var(--wp--preset--spacing--30);margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><strong>Adobe PDF Services #ASSET: Download<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-background has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#ffccff;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-download-2023\/\"><span class=\"material-icons\">translate<\/span> Adobe PDF Services #ASSET: \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/p>\n\n\n\n<p class=\"has-background mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#fff0ff;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--60);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--40)\">Downloads ASSET file stored in the internal storage for PDF Services. It is also possible to get the file size and Content-Type. The default file name is the process ID and the extension is automatically added.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA9VJREFUWEfF\nl21Ik1EUx\/93K1dOLZfKZq\/GatOi90QXfciiD+GHMvpgWUQRVCJlLDJCoi\/ai7mIskAL0cgiEaJP\nQWSvBtE70Z7VjGxaltoEnc3K3bi3tp7N6e6s2PP1Oed\/fufec889lyDCHxGN\/2jhwuj+3t4colAs\nA6XzAUwDEP\/b3wngHQh5Sj2eRlVMTMOix4\/7RLRDAjxMS9P+GBjYB0K2AxgjIgrADUrPjlIqj6S\/\netU+nM+wAA8Mhu2UkDIAasHAgWYuQqk502Y7O5T\/kAAPUlMrKKU7RhjYz40QcibTat0ZTCsoQJPR\neBFA7r8ILtOoM0nS+kDNQQAimcfOnYvkbdu41ofKSvQ8fy7EGmwl\/AB+7\/mZUGr6khL86OlBzJw5\n+N7ZCVtBQSgX339C6Q55TfgAeLV7PHaRgptx\/Di6b99G4po1iEpMxLPsbGEAAK5RCoXeezp8AE0G\ngwWE7BZRmmmxoPflSySsWgWFShUuAEDpCZPNVshicQDWZL65XF2i53xaURGUajXGL12K711deLF2\nrQi33MYdpVZPYM2KA9w3GPIIIbWiKmzptbm5iNbr4bx1C6\/37BF19dlRSjcusdkucICm1NRzoHSL\nqArLflZtLQdoq6qC4+RJUdc\/doScN1mtW38BGI1PALD+LvQxgNmXLmF0fDyai4vhbGwU8gswemqS\npAVegC+yiyWkGFv+KWYzPG43PtfX473FEtIniIHTJEkaLwANR2FmeTnis7Lw6fJlxM6bB8fp0+i+\ncyccCW5rkiQSNsC4jAzoDx+Gp78fb8xmaJYvR1xGBpoPHMDX5uawIOQAwlsw\/eBBJK1bh85r12Df\nv58HZCuimjSJH0mVTueDcDsc6Lh6FV9u3AgG5rcFQkXI7oAZZWVQxsai++5dRBuNrKnA3dIColRC\nNXEiWo4dQ\/e9e7xPTC4oQFJODj7W1MBx6lQghKwIBY5hlFaLqXv3YsLKleiz23lmn69cwYDL5RPW\nbd4M3YYNcLe28v7AgDUrVqC9rg7vSkv9AeTHcLhGxAJPKSxE3OLFGK3R4Ft7O6T8\/GH3OyE7G+NN\nJkQlJ6PPauXZy0EZiV8jGqoVs4ySVq9G1\/XriEtP5xXfWlGBtsrKsIotiLF\/K+bNKOAyYvvHKr7l\n6FF+5HSbNnEQe1HR3wYffBkxxcDrOK26Gh0NDRibkgJtXh4fOl7v2jVoKUdAE\/w6ZkLygSSluBhs\nL1l1O2\/exNtDh\/5FcAw5kHgzERnJRpA1dwk5knmFIzqU\/o+VCHss90FE8mHihYjo00xebBF7nI60\n4kX9fgLpibowdLFqugAAAABJRU5ErkJggg==\n\" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-6-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"margin: 0 0 -0.7em 0\">\n<div style=\"margin:4px 0px 1em; border:1px dotted #aaa; padding:4px 0 0 4px\" title=\"Main\"><dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">AuthzConfU1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U1: Select Authz for PDF-SERVICES-API Client ID (Fixed Value)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">AuthzConfU2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U2: Select Authz for PDF-SERVICES-API Client Secret (FixedValue)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfA1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A1: Set AssetID<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfB1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B1: Select FILE that stores Asset File (update)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfB2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B2: Select NUMERIC that stores Size of Asset in Byte (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfB3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B3: Select STRING that stores Content-Type of Asset (update)<\/dd>\n<\/div>\n<div style=\"margin:4px 0px 1em; border:1px dotted #aaa; padding:4px 0 0 4px\" title=\"Advanced\"><dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfU3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U3: Set {regionCode} to process in a specified region (&#8220;ew1&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfB1b<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B1b: Select FILE that stores Asset File (append)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfC1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: To save-as, Set new File Name<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<\/div>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS standard mode Script Script (engine type: 3)\n\/\/ cf. &#39;engine type: 2&#39;: &quot;GraalJS Nashorn compatible mode&quot; (renamed from &quot;GraalJS&quot; at 20230526)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzId          = configs.get( &quot;AuthzConfU1&quot; );       \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz ID: &quot; + strAuthzId );\n  const strClientId       = httpClient.getOAuth2Token( strAuthzId );\n  if (  strClientId     === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {U1: ClientId} is empty \\n&quot; );\n  }\nconst strAuthzSecret      = configs.get( &quot;AuthzConfU2&quot; );       \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz SECRET: &quot; + strAuthzSecret );\n  const strClientSecret   = httpClient.getOAuth2Token( strAuthzSecret );\n  if (  strClientSecret === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {U2: ClientSecret} is empty \\n&quot; );\n  }\nconst strRegionCode       = configs.get( &quot;StrConfU3&quot; );         \/\/ Not Required\n  let strRegionPostfix    = strRegionCode !== &quot;&quot; ? (&quot;-&quot; + strRegionCode) : &quot;&quot;;\n  engine.log( &quot; AutomatedTask Config: strRegionPostfix: &quot; + strRegionPostfix );\n  \/\/ https:\/\/developer.adobe.com\/document-services\/docs\/overview\/pdf-services-api\/howtos\/service-region-configuration-for-apis\/\nconst strAssetId          = configs.get( &quot;StrConfA1&quot; );         \/\/\/ REQUIRED\n\nconst filesPocketUpdate = configs.getObject( &quot;SelectConfB1&quot; ); \/\/ NotRequired\n  let filesUpdate       = new java.util.ArrayList();\nconst filesPocketAppend = configs.getObject( &quot;SelectConfB1b&quot; ); \/\/ NotRequired\n  let filesAppend       = new java.util.ArrayList();\n  if ( filesPocketAppend !== null ) {\n    if ( engine.findData( filesPocketAppend ) !== null ) {\n      filesAppend       = engine.findData( filesPocketAppend ); \/\/ java.util.ArrayList\n      engine.log( &quot; AutomatedTask FilesArray {B1b}: &quot; +\n                  filesAppend.size() + &quot; files&quot; );\n    }\n  }\nconst numPocketSize        = configs.getObject( &quot;SelectConfB2&quot; );  \/\/ Not Required\nconst strPocketContentType = configs.getObject( &quot;SelectConfB3&quot; );  \/\/ Not Required\nlet   strSaveAs            = configs.get( &quot;StrConfC1&quot; );           \/\/ NotRequired\nif ( strSaveAs === &quot;&quot; ) {\n  strSaveAs = processInstance.getProcessInstanceId().toString();\n}\n\n\n\/\/\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\n\/\/\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\n\/\/\/\/ Adobe Developer &gt; PDF Services API &gt; Generate Token\n\/\/\/\/ Generate access token to perform PDF Services operations\n\/\/\/\/ https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Generate-Token\n\n\/\/\/ prepare request1\nlet request1Uri = &quot;https:\/\/pdf-services&quot; + strRegionPostfix + &quot;.adobe.io\/token&quot;;\nlet request1 = httpClient.begin(); \/\/ HttpRequestWrapper\n\/\/\/ prepare application\/x-www-form-urlencoded\n    request1 = request1.formParam ( &quot;client_id&quot;,     strClientId );\n    request1 = request1.formParam ( &quot;client_secret&quot;, strClientSecret );\n\n\/\/\/ try request1\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nconst response1Body = response1.getResponseAsString();\nengine.log( &quot; AutomatedTask ApiResponse1 Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\/* engine.log( response1Body ); \/\/ debug\n{\n  &quot;access_token&quot;:&quot;xxxxxxxxxx975yyyyyyyyyy&quot;,\n  &quot;token_type&quot;:&quot;bearer&quot;,\n  &quot;expires_in&quot;:86399\n}\n*\/\n\n\/\/\/ parse response1 (OAuth Server-to-Server)\nconst response1Obj = JSON.parse( response1Body );\nconst strAccessToken = response1Obj.access_token;\n\n\n\/\/\/\/ Adobe Developer &gt; PDF Services API &gt; Assets\n\/\/\/\/ Get download pre-signed URI.\n\/\/\/\/ https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Assets\/operation\/asset.get\n\n\/\/\/ prepare request2\nlet request2Uri = &quot;https:\/\/pdf-services&quot; + strRegionPostfix + &quot;.adobe.io\/assets\/&quot; +\n                   strAssetId;\nlet request2 = httpClient.begin(); \/\/ HttpRequestWrapper\n\/\/\/ prepare header parameters\n    request2 = request2.bearer ( strAccessToken );\n    request2 = request2.header ( &quot;x-api-key&quot;, strClientId );\n\n\/\/\/ try request2\nconst response2     = request2.get ( request2Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest2 Start: &quot; + request2Uri );\nconst response2Code = response2.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nconst response2Body = response2.getResponseAsString();\nengine.log( &quot; AutomatedTask ApiResponse2 Status: &quot; + response2Code );\nif( response2Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response2Code + &quot;\\n&quot; + response2Body + &quot;\\n&quot; );\n}\n\/* engine.log( response2Body ); \/\/ debug\n{\n  &quot;type&quot;:&quot;image\/jpeg&quot;,\n  &quot;size&quot;:257519,\n  &quot;downloadUri&quot;:&quot;https:\/\/dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com\/xxxxx850yyyyy&quot;\n  \/\/ X-Amz-Security-Token=... X-Amz-Algorithm=... X-Amz-Date=... X-Amz-SignedHeaders=host\n  \/\/ X-Amz-Expires=3600 X-Amz-Credential=... X-Amz-Signature=... \n}\n*\/\n\n\/\/\/ parse response2\nconst response2Obj   = JSON.parse( response2Body );\nconst strDownloadUri = response2Obj.downloadUri;\nconst numSize        = response2Obj.size;\nconst strContentType = response2Obj.type;\n\n\n\/\/\/\/ SET File Name\nstrSaveAs = user_correctFileExtension ( strSaveAs, strContentType );\n\n\n\/\/\/\/ GET API call\n\/\/ Downloading the asset\n\/\/ https:\/\/developer.adobe.com\/document-services\/docs\/overview\/pdf-services-api\/gettingstarted\/#step-5--downloading-the-asset\n\n\/\/\/ prepare request3\nlet request3Uri = strDownloadUri;\nlet request3 = httpClient.begin(); \/\/ HttpRequestWrapper\n\n\/\/\/ try request3\nconst response3     = request3.get ( request3Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest3 Start: &quot; + request3Uri );\nconst response3Code = response3.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nengine.log( &quot; AutomatedTask ApiResponse3 Status: &quot; + response3Code );\nif( response3Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response3Code + &quot;\\n&quot; + response3.getResponseAsString() + &quot;\\n&quot; );\n}\n\n\/* \n\/\/ debug\nlet jarrHeaders = response3.getHeaderNames();\nfor ( let j = 0; j &lt; jarrHeaders.size() - 0 ; j++ ) {\n  engine.log( &quot; &quot; + jarrHeaders.get(j) + &quot;: &quot; +\n              response3.getHeaderValues(jarrHeaders.get(j)).get(0) );\n}\n Content-Type: image\/jpeg\n Content-Length: 257519\n Connection: keep-alive\n x-amz-id-2: \/WmNxZ6bT8oI6llv+sL4CLw3sSG28E8fGP82o3teUUPmNnD8\/3XZJqcfNT3YcsJlB7n9BXEM3dM=\n x-amz-request-id: 8N4EKAQ20WE38E55\n Date: Mon, 03 Jul 2023 06:31:19 GMT\n Last-Modified: Mon, 03 Jul 2023 05:52:49 GMT\n x-amz-expiration: expiry-date=&quot;Wed, 05 Jul 2023 00:00:00 GMT&quot;, rule-id=&quot;YTNmNmJlMTktM2U4YS00NDhhLTkyNzEtNjk1NTc3NGZlMDBj&quot;\n ETag: &quot;ded1380f5a6b28ad2234df5a32fb7008&quot;\n x-amz-server-side-encryption: aws:kms\n x-amz-server-side-encryption-aws-kms-key-id: arn:aws:kms:us-east-1:420533445982:key\/d51f5664-5955-44c4-abef-d01808a6c45e\n x-amz-server-side-encryption-bucket-key-enabled: true\n x-amz-version-id: sOXA53Uzkbr0nifTnmrLskShMJHlZBJ6\n Accept-Ranges: bytes\n Server: AmazonS3\n X-Cache: Miss from cloudfront\n Via: 1.1 eddf9e6940bd96929e1096ef63815d52.cloudfront.net (CloudFront)\n X-Amz-Cf-Pop: NRT57-P3\n X-Amz-Cf-Id: 3bXlBBE-SxtaSRuh3dppQLcpuWZtMZdN4Aid4zbmzaJI1QepO6gxqQ==\n\n Content-Type: application\/vnd.openxmlformats-officedocument.wordprocessingml.document\n Content-Length: 14604\n Connection: keep-alive\n x-amz-id-2: icaAogX0Dr+E3zFMkew0PxoZ6sHptQCEg8VYo+MSIkBjXk9v3WglwE\/gwJrxwoQy2XVrjn22rYQ=\n x-amz-request-id: A9X9TKH8V2GSQV6V\n Date: Fri, 30 Jun 2023 06:10:00 GMT\n Last-Modified: Thu, 29 Jun 2023 05:20:41 GMT\n x-amz-expiration: expiry-date=&quot;Sat, 01 Jul 2023 00:00:00 GMT&quot;, rule-id=&quot;YTNmNmJlMTktM2U4YS00NDhhLTkyNzEtNjk1NTc3NGZlMDBj&quot;\n ETag: &quot;120d041498437619f2a201fddbe41083&quot;\n x-amz-server-side-encryption: aws:kms\n x-amz-server-side-encryption-aws-kms-key-id: arn:aws:kms:us-east-1:420533445982:key\/d51f5664-5955-44c4-abef-d01808a6c45e\n x-amz-server-side-encryption-bucket-key-enabled: true\n x-amz-version-id: UZFC9SQ605UZwc.A_LIXqN1liO3MW3PH\n Accept-Ranges: bytes\n Server: AmazonS3\n X-Cache: Miss from cloudfront\n Via: 1.1 14dae839e44c027b553fbd7cea9e1334.cloudfront.net (CloudFront)\n X-Amz-Cf-Pop: NRT57-P1\n X-Amz-Cf-Id: IyXlGjzW_YAnNpinmT7Q4L6gUcWAQa3HZ_6EGTffUXwj7kvxJjhMig==\n*\/\n\nconst qfileTmp = new com.questetra.bpms.core.event.scripttask.NewQfile(\n    strSaveAs, response3.getContentType(), response3.getResponse()\n  );\nfilesUpdate.add( qfileTmp );\nfilesAppend.add( qfileTmp );\n\n\n\/\/\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n\nif( filesPocketUpdate !== null ){\n  engine.setData( filesPocketUpdate, filesUpdate );\n}\nif( filesPocketAppend !== null ){\n  engine.setData( filesPocketAppend, filesAppend );\n}\nif( numPocketSize !== null ){\n  engine.setData( numPocketSize, new java.math.BigDecimal( numSize ) );\n}\nif( strPocketContentType !== null ){\n  engine.setData( strPocketContentType, strContentType );\n}\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\/\/ Get the default extension for a content-type (PDF Services targetFormat)\n\/**\n * Corrects the file extension of the provided save-as name, returns a resultant save-as name with correct extension.\n * If the save-as name does not end with an extension, it appends the correct one according to the MIME type of the content.\n *\n * @param {string} strSaveAs - The name to save the file as. Can be with or without extension.\n * @param {string} strContentType - The MIME type of the content. For example, &quot;application\/pdf&quot;, &quot;image\/jpeg&quot;, etc.\n *\n * @returns {string} A corrected save-as name with the correct extension, if needed, according to the content type.\n *\n * @example\n * \/\/ returns &#39;document.pdf&#39;\n * user_correctFileExtension(&#39;document&#39;, &#39;application\/pdf&#39;)\n * \n * @example\n * \/\/ returns &#39;image.jpg&#39;\n * user_correctFileExtension(&#39;image&#39;, &#39;image\/jpeg&#39;)\n * \n * @example\n * \/\/ returns &#39;image.jpg&#39; - although &#39;png&#39; is provided, but jpg image type is given, so it corrects the extension\n * user_correctFileExtension(&#39;image.png&#39;, &#39;image\/jpeg&#39;)\n *\/\nfunction user_correctFileExtension ( strSaveAs, strContentType ){\n  const objMime2Extension = {\n    &#39;application\/pdf&#39;: &#39;.pdf&#39;,\n    &#39;text\/html&#39;: &#39;.htm&#39;,\n    &#39;application\/zip&#39;: &#39;.zip&#39;,\n    &#39;image\/bmp&#39;: &#39;.bmp&#39;,\n    &#39;application\/msword&#39;: &#39;.doc&#39;,\n    &#39;application\/vnd.openxmlformats-officedocument.wordprocessingml.document&#39;: &#39;.docx&#39;,\n    &#39;image\/gif&#39;: &#39;.gif&#39;,\n    &#39;image\/jpeg&#39;: &#39;.jpg&#39;,\n    &#39;image\/png&#39;: &#39;.png&#39;,\n    &#39;application\/vnd.ms-powerpoint&#39;: &#39;.ppt&#39;,\n    &#39;application\/vnd.openxmlformats-officedocument.presentationml.presentation&#39;: &#39;.pptx&#39;,\n    &#39;application\/rtf&#39;: &#39;.rtf&#39;,\n    &#39;image\/tiff&#39;: &#39;.tif&#39;,\n    &#39;text\/plain&#39;: &#39;.txt&#39;,\n    &#39;application\/vnd.ms-excel&#39;: &#39;.xls&#39;,\n    &#39;application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet&#39;: &#39;.xlsx&#39;\n  };\n\n  let strExtension = objMime2Extension?.[ strContentType ] ?? &quot;&quot;;\n  if ( ! strSaveAs.endsWith( strExtension ) ){\n    strSaveAs += strExtension;\n  }\n  return strSaveAs;\n}\n\n\n\/*\nNotes:\n- If you place this &quot;Automated Step&quot; in the Workflow diagram, the request will be automatically sent every time the process token arrives.\n    - A request is automatically sent to the Adobe PDF Services API server. (REST API)\n    - The response from the Adobe PDF Services API server is automatically parsed.\n- This &quot;Automated Step&quot; will automatically download the file (Asset) stored in Adobe&#39;s internal storage.\n    - Default file name is process id.\n        - Filename extensions (.pdf, etc.) are autocompleted.\n    - In addition to ASSET files, the following metadata can also be acquired.\n        - Size of the file (Asset) in Byte\n        - Content-Type of the file (Asset)\n- To activate a Workflow App that includes this Automated Step, &quot;HTTP Authz Setting&quot; is required\n    - Set Credentials to &quot;Token Fixed Value&quot; in Workflow App.\n    - Obtain Credentials (&quot;Client ID&quot; and &quot;Client Secret&quot;) in advance.\n        - https:\/\/acrobatservices.adobe.com\/dc-integration-creation-app-cdn\/main.html?api=pdf-services-api\n    - Adobe Developer Console\n        - https:\/\/developer.adobe.com\/console\/projects\n\nAPPENDIX\n- PDF Services: \n    - Essential PDF tools to store and share files online, as well as create, combine, export, organize, and fill & sign documents.\n    - https:\/\/helpx.adobe.com\/enterprise\/using\/optional-services.html\n- PDF Services API to automate for your document workflows\n    - create a PDF from a dynamic HTML report\n    - set a password to prevent unauthorized opening of the document\n    - compress it for sharing as an attachment\n    - extract text, tables, images and document structure to enable downstream solutions\n    - https:\/\/developer.adobe.com\/document-services\/docs\/overview\/#pdf-services-api-to-automate-for-your-document-workflows\n- Adobe PDF Services API Free Tier\n    - 500 freeDocument Transactions per month. No credit card required. (asof 202306)\n    - https:\/\/developer.adobe.com\/document-services\/docs\/overview\/limits\/#usage-limits\n- Internal storage retention period\n    - Each ASSET is deleted after a certain period of time.\n    - AutomatedTask UnexpectedResponseError: 404\n    - `{&quot;error&quot;:{&quot;code&quot;:&quot;Not Found&quot;,&quot;message&quot;:&quot;The requested resource does not exist.&quot;}}`\n\nNotes-ja:\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u56f3\u306b\u914d\u7f6e\u3059\u308c\u3070\u3001\u6848\u4ef6\u304c\u5230\u9054\u3059\u308b\u5ea6\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u81ea\u52d5\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\n    - Adobe PDF Services API \u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u81ea\u52d5\u9001\u51fa\u3055\u308c\u307e\u3059\u3002\uff08REST API\u901a\u4fe1\uff09\n    - Adobe PDF Services API \u30b5\u30fc\u30d0\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u81ea\u52d5\u4fdd\u5b58\u89e3\u6790\u3055\u308c\u307e\u3059\u3002\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u306f\u3001Adobe \u5185\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\uff08Asset\uff09\u3092\u81ea\u52d5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\n    - Default\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u30d7\u30ed\u30bb\u30b9ID\u3067\u3059\u3002\n        - \u30d5\u30a1\u30a4\u30eb\u540d\u306e\u62e1\u5f35\u5b50\uff08.pdf\u7b49\uff09\u304c\u81ea\u52d5\u88dc\u5b8c\u3055\u308c\u307e\u3059\u3002\n    - ASSET\u30d5\u30a1\u30a4\u30eb\u4ee5\u5916\u306b\u4ee5\u4e0b\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3082\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002\n        - \u7d20\u6750\u30d5\u30a1\u30a4\u30eb\uff08Asset\uff09\u306e\u30b5\u30a4\u30ba\uff08Byte\uff09\n        - \u7d20\u6750\u30d5\u30a1\u30a4\u30eb\uff08Asset\uff09\u306e Content-Type\n- \u3053\u306e\uff3b\u30a2\u30c9\u30aa\u30f3\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u542b\u3080\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u3092\u904b\u7528\u3059\u308b\u306b\u306f\uff3bHTTP \u8a8d\u8a3c\u8a2d\u5b9a\uff3d\u304c\u5fc5\u8981\u3067\u3059\u3002\n    - Credentials \u306f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u306e\uff3b\u30c8\u30fc\u30af\u30f3\u76f4\u63a5\u6307\u5b9a\uff3d\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\n    - \u3042\u3089\u304b\u3058\u3081 Credentials (&quot;Client ID&quot; \u304a\u3088\u3073 &quot;Client Secret&quot;) \u3092\u53d6\u5f97\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\n        - https:\/\/acrobatservices.adobe.com\/dc-integration-creation-app-cdn\/main.html?api=pdf-services-api\n    - Adobe Developer Console\n        - https:\/\/developer.adobe.com\/console\/projects\n\nAPPENDIX-ja\n- PDF Services\u3068\u306f\n    - \u30d5\u30a1\u30a4\u30eb\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u306e\u4fdd\u5b58\u3001\u5171\u6709\u306e\u307b\u304b\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4f5c\u6210\u3001\u7d50\u5408\u3001\u66f8\u304d\u51fa\u3057\u3001\u6574\u7406\u3001\u5165\u529b\u3068\u7f72\u540d\u3092\u884c\u3046\u305f\u3081\u306e PDF \u57fa\u672c\u30c4\u30fc\u30eb\u3067\u3059\u3002\n    - https:\/\/helpx.adobe.com\/jp\/enterprise\/using\/optional-services.html\n- Document \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u81ea\u52d5\u5316\u3059\u308b PDF Services API\n    - \u52d5\u7684 HTML \u30ec\u30dd\u30fc\u30c8\u304b\u3089 PDF \u3092\u7c21\u5358\u306b\u4f5c\u6210\n    - \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u4e0d\u6b63\u306b\u958b\u304b\u308c\u306a\u3044\u3088\u3046\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\n    - \u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u5171\u6709\u3059\u308b\u305f\u3081\u306b\u5727\u7e2e\n    - \u30c6\u30ad\u30b9\u30c8\u3001\u8868\u3001\u753b\u50cf\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u69cb\u9020\u3092\u62bd\u51fa\u3057\u3066\u30c0\u30a6\u30f3\u30b9\u30c8\u30ea\u30fc\u30e0 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\n    - https:\/\/developer.adobe.com\/document-services\/docs\/overview\/#pdf-services-api-to-automate-for-your-document-workflows\n- Adobe PDF Services API \u306e\u7121\u6599\u5229\u7528\u67a0\n    - \u6bce\u6708500\u4ef6\u306e\u7121\u6599\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3002\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306f\u5fc5\u8981\u306a\u3057\u3002(202306\u73fe\u5728)\n    - https:\/\/developer.adobe.com\/document-services\/docs\/overview\/limits\/#usage-limits\n- \u5185\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u4fdd\u5b58\u671f\u9593\n    - \u5404ASSET\u306f\u3001\u4e00\u5b9a\u6642\u9593\u7d4c\u904e\u3067\u524a\u9664\u3055\u308c\u307e\u3059\u3002\n    - AutomatedTask UnexpectedResponseError: 404\n    - `{&quot;error&quot;:{&quot;code&quot;:&quot;Not Found&quot;,&quot;message&quot;:&quot;The requested resource does not exist.&quot;}}`\n*\/\n\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Download<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1gdP7KIGhArGSZCXTO2bi1KbypdWYkaBx\/view?usp=drivesdk\" target=\"_blank\">adobe-pdf-services-asset-download-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-07-03 (C) Questetra, Inc. (MIT License)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"has-small-font-size\" style=\"text-align: right;\"><div style=\"display: inline-block; background: #FBE7DD; text-align: center;\">\n<span class=\"material-icons\">warning<\/span> Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<br>\n(Installing <em><strong>Addon Auto-Steps<\/strong><\/em> are available only on the <em><strong><span style=\"color: #1970B9\">Professional<\/span><\/strong><\/em> edition.)\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you place this &#8220;Automated Step&#8221; in the Workflow diagram, the request will be automatically sent every time the process token arrives.\n<ul class=\"wp-block-list\">\n<li>A request is automatically sent to the Adobe PDF Services API server. (REST API)<\/li>\n\n\n\n<li>The response from the Adobe PDF Services API server is automatically parsed.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>This &#8220;Automated Step&#8221; will automatically download the file (Asset) stored in Adobe&#8217;s internal storage.\n<ul class=\"wp-block-list\">\n<li>Default file name is process id.\n<ul class=\"wp-block-list\">\n<li>Filename extensions (.pdf, etc.) are autocompleted.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In addition to ASSET files, the following metadata can also be acquired.\n<ul class=\"wp-block-list\">\n<li>Size of the file (Asset) in Byte<\/li>\n\n\n\n<li>Content-Type of the file (Asset)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To activate a Workflow App that includes this Automated Step, &#8220;HTTP Authz Setting&#8221; is required\n<ul class=\"wp-block-list\">\n<li>Set Credentials to &#8220;Token Fixed Value&#8221; in Workflow App.<\/li>\n\n\n\n<li>Obtain Credentials (&#8220;Client ID&#8221; and &#8220;Client Secret&#8221;) in advance.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/acrobatservices.adobe.com\/dc-integration-creation-app-cdn\/main.html?api=pdf-services-api\" rel=\"nofollow\">https:\/\/acrobatservices.adobe.com\/dc-integration-creation-app-cdn\/main.html?api=pdf-services-api<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Adobe Developer Console\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.adobe.com\/console\/projects\" rel=\"nofollow\">https:\/\/developer.adobe.com\/console\/projects<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?ssl=1\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" data-attachment-id=\"147836\" data-permalink=\"https:\/\/support.questetra.com\/en\/templates\/meeting-report-process\/attachment\/adobe-pdf-services-asset-download-2023-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"adobe-pdf-services-asset-download-2023-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en-1024x576.png?resize=1024%2C576&#038;ssl=1\" alt=\"Adobe PDF Services #ASSET: Download\" class=\"wp-image-147836\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Appendix<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PDF Services:\n<ul class=\"wp-block-list\">\n<li>Essential PDF tools to store and share files online, as well as create, combine, export, organize, and fill &amp; sign documents.<\/li>\n\n\n\n<li><a href=\"https:\/\/helpx.adobe.com\/enterprise\/using\/optional-services.html\" rel=\"nofollow\">https:\/\/helpx.adobe.com\/enterprise\/using\/optional-services.html<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>PDF Services API to automate for your document workflows\n<ul class=\"wp-block-list\">\n<li>create a PDF from a dynamic HTML report<\/li>\n\n\n\n<li>set a password to prevent unauthorized opening of the document<\/li>\n\n\n\n<li>compress it for sharing as an attachment<\/li>\n\n\n\n<li>extract text, tables, images and document structure to enable downstream solutions<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/overview\/#pdf-services-api-to-automate-for-your-document-workflows\" rel=\"nofollow\">https:\/\/developer.adobe.com\/document-services\/docs\/overview\/#pdf-services-api-to-automate-for-your-document-workflows<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Adobe PDF Services API Free Tier\n<ul class=\"wp-block-list\">\n<li>500 freeDocument Transactions per month. No credit card required. (asof 202306)<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/overview\/limits\/#usage-limits\" rel=\"nofollow\">https:\/\/developer.adobe.com\/document-services\/docs\/overview\/limits\/#usage-limits<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Internal storage retention period\n<ul class=\"wp-block-list\">\n<li>Each ASSET is deleted after a certain period of time.<\/li>\n\n\n\n<li>AutomatedTask UnexpectedResponseError: 404<\/li>\n\n\n\n<li><code>{\"error\":{\"code\":\"Not Found\",\"message\":\"The requested resource does not exist.\"}}<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">See Also<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"QgkquHrXVE\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-upload-2023\/\">Adobe PDF Services #ASSET: Upload<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Adobe PDF Services #ASSET: Upload&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/adobe-pdf-services-asset-upload-2023\/embed\/#?secret=Po4qsFNbG3#?secret=QgkquHrXVE\" data-secret=\"QgkquHrXVE\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Downloads ASSET file stored in the internal storage for PDF Services. It is also possible to get the file size and Content-Type. The default file name is the process ID and the extension is automatically added.<\/p>\n","protected":false},"author":2,"featured_media":147836,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","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,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[3461],"class_list":["post-147840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-adobe-pdf-services-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-download-2023-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":0,"uagb_excerpt":"Downloads ASSET file stored in the internal storage for PDF Services. It is also possible to get the file size and Content-Type. The default file name is the process ID and the extension is automatically added.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-Csw","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":147835,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-get-metadata-2023\/","url_meta":{"origin":147840,"position":0},"title":"Adobe PDF Services #ASSET: Get Metadata","author":"IMAMURA, Genichi","date":"2023-07-04","format":false,"excerpt":"Retrieves metadata for ASSET (file) stored in internal storage for PDF Services; the accessible user ID, file size, and Content-Type.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #ASSET: Get Metadata","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-get-metadata-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-get-metadata-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-get-metadata-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-get-metadata-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-get-metadata-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":147821,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-upload-2023\/","url_meta":{"origin":147840,"position":1},"title":"Adobe PDF Services #ASSET: Upload","author":"IMAMURA, Genichi","date":"2023-07-04","format":false,"excerpt":"Uploads an ASSET (file) to the internal storage for PDF Service. AssetID is used in the downstream PDF Services operations.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #ASSET: Upload","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-upload-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-upload-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-upload-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-upload-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-upload-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":147861,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-asset-delete-2023\/","url_meta":{"origin":147840,"position":2},"title":"Adobe PDF Services #ASSET: Delete","author":"IMAMURA, Genichi","date":"2023-07-04","format":false,"excerpt":"Deletes the ASSET (file) stored in internal storage for PDF Services.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #ASSET: Delete","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-delete-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-delete-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-delete-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-delete-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-asset-delete-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":147866,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-nonpdf-create-pdf-2023\/","url_meta":{"origin":147840,"position":3},"title":"Adobe PDF Services #NonPDF: Create PDF","author":"IMAMURA, Genichi","date":"2023-07-04","format":false,"excerpt":"Creates PDF document from Non PDF Asset stored in the internal storage for PDF Services. Note that the job result (PDF file) will be obtained in an automated task that downloads it using the Polling-URI in the downstream process.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #NonPDF: Create PDF","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":150501,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-results-download-202308\/","url_meta":{"origin":147840,"position":4},"title":"Adobe PDF Services #Results: Download","author":"IMAMURA, Genichi","date":"2023-08-29","format":false,"excerpt":"Downloads the files (results of PDF OPERATIONS) from PDF Services storage using Polling-URI; Job status URI for polling the results. Note that if the Job is in progress, the FILE type data will be updated as empty, and errors will not occur.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #NonPDF: Create PDF","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-nonpdf-create-pdf-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":147871,"url":"https:\/\/support.questetra.com\/en\/addons\/adobe-pdf-services-results-download-2023\/","url_meta":{"origin":147840,"position":5},"title":"Adobe PDF Services #Results: Download","author":"IMAMURA, Genichi","date":"2023-07-04","format":false,"excerpt":"Downloads the files (results of PDF OPERATIONS) from PDF Services storage using Polling-URI; Job status URI for polling the results. Note that if the Job is in progress, the FILE type data will be updated as empty, and errors will not occur.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Adobe PDF Services #Results: Download","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-results-download-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-results-download-2023-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-results-download-2023-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-results-download-2023-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/adobe-pdf-services-results-download-2023-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/147840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=147840"}],"version-history":[{"count":2,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/147840\/revisions"}],"predecessor-version":[{"id":147853,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/147840\/revisions\/147853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/147836"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=147840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=147840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=147840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}