[{"data":1,"prerenderedAt":1116},["ShallowReactive",2],{"parentPage":3,"subPages":462,"useCases":463,"content-query-lGfqhvuOlN":464},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"slug":10,"weight":11,"body":12,"_type":456,"_id":457,"_source":458,"_file":459,"_stem":460,"_extension":461},"/integration/n8n","integration",false,"","n8n - Work With PDF Toolkit Community Node","Learn how you can use CustomJS Official PDF toolkit node on n8n","n8n",0,{"type":13,"children":14,"toc":449},"root",[15],{"type":16,"tag":17,"props":18,"children":24},"element","div",{"className":19},[20,21,22,23],"grid","md:grid-cols-3","grid-cols-1","gap-4",[25,28,101,113,407,414,434],{"type":26,"value":27},"text","\n    ",{"type":16,"tag":17,"props":29,"children":33},{"className":30},[31,32],"md:col-span-2","col-span-1",[34,36,74,91],{"type":26,"value":35},"\n        ",{"type":16,"tag":17,"props":37,"children":41},{"className":38},[39,40],"pe-12","pt-3",[42,44,51,53,57,60,62,65,73],{"type":26,"value":43},"\n          ",{"type":16,"tag":45,"props":46,"children":48},"h1",{"id":47},"automate-pdf-workflows-in-n8n",[49],{"type":26,"value":50},"Automate PDF workflows in n8n",{"type":26,"value":52},"\n          Design flexible, robust workflow with creating PDF files from HTML, merging multiple PDF files, and taking screenshots of websites.\n          ",{"type":16,"tag":54,"props":55,"children":56},"br",{},[],{"type":16,"tag":54,"props":58,"children":59},{},[],{"type":26,"value":61},"\n          You must first install our community node:",{"type":16,"tag":54,"props":63,"children":64},{},[],{"type":16,"tag":66,"props":67,"children":70},"a",{"href":68,"target":69},"https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit","_blank",[71],{"type":26,"value":72},"@custom-js/n8n-nodes-pdf-toolkit",{"type":26,"value":35},{"type":16,"tag":75,"props":76,"children":78},"callout",{"type":77},"warning",[79],{"type":16,"tag":80,"props":81,"children":82},"p",{},[83,89],{"type":16,"tag":84,"props":85,"children":86},"strong",{},[87],{"type":26,"value":88},"Important:",{"type":26,"value":90}," CustomJS community nodes are available on both n8n Cloud and self-hosted n8n instances. You can choose whichever setup fits your workflow best.",{"type":16,"tag":92,"props":93,"children":95},"pre",{"code":94},"\u003C/div>\n\u003Cdiv class=\"col-span-1\">\n    \u003Cimg src=\"/images/integration/n8n/workflow2.png\" alt=\"n8n Connectd App\" />\n\u003C/div>\n",[96],{"type":16,"tag":97,"props":98,"children":99},"code",{"__ignoreMap":7},[100],{"type":26,"value":94},{"type":16,"tag":102,"props":103,"children":110},"h2",{"className":104,"id":109},[105,106,107,108],"text-2xl","font-bold","mt-12","mb-6","our-community-node-provides",[111],{"type":26,"value":112},"Our community node provides:",{"type":16,"tag":17,"props":114,"children":119},{"className":115},[20,116,117,118],"md:grid-cols-2","lg:grid-cols-3","gap-6",[120,122,164,165,191,192,218,219,245,246,272,273,299,300,326,327,353,354,380,381],{"type":26,"value":121},"\n  ",{"type":16,"tag":66,"props":123,"children":136},{"href":124,"className":125},"/integration/n8n/html-to-pdf",[126,127,128,129,130,131,132,133,134,135],"border","rounded-lg","p-4","shadow-sm","flex","flex-col","justify-between","no-underline","hover:shadow-md","transition-shadow",[137,138,163],{"type":26,"value":27},{"type":16,"tag":17,"props":139,"children":140},{},[141,143,152,153,162],{"type":26,"value":142},"\n      ",{"type":16,"tag":144,"props":145,"children":149},"h4",{"className":146,"id":148},[106,147],"text-gray-900","html-to-pdf",[150],{"type":26,"value":151},"HTML to PDF",{"type":26,"value":142},{"type":16,"tag":80,"props":154,"children":159},{"className":155},[156,157,158],"text-gray-600","mt-2","text-sm",[160],{"type":26,"value":161},"Convert HTML content into high-quality PDF documents with ease, enabling automated report generation and document processing workflows.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":166,"children":169},{"href":167,"className":168},"/integration/n8n/merge-pdfs",[126,127,128,129,130,131,132,133,134,135],[170,171,190],{"type":26,"value":27},{"type":16,"tag":17,"props":172,"children":173},{},[174,175,182,183,189],{"type":26,"value":142},{"type":16,"tag":144,"props":176,"children":179},{"className":177,"id":178},[106,147],"merge-pdfs",[180],{"type":26,"value":181},"Merge PDFs",{"type":26,"value":142},{"type":16,"tag":80,"props":184,"children":186},{"className":185},[156,157,158],[187],{"type":26,"value":188},"Combine multiple PDF files into a single document seamlessly, making it ideal for document compilation and organization tasks.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":193,"children":196},{"href":194,"className":195},"/integration/n8n/website-screenshot",[126,127,128,129,130,131,132,133,134,135],[197,198,217],{"type":26,"value":27},{"type":16,"tag":17,"props":199,"children":200},{},[201,202,209,210,216],{"type":26,"value":142},{"type":16,"tag":144,"props":203,"children":206},{"className":204,"id":205},[106,147],"website-screenshot",[207],{"type":26,"value":208},"Website Screenshot",{"type":26,"value":142},{"type":16,"tag":80,"props":211,"children":213},{"className":212},[156,157,158],[214],{"type":26,"value":215},"Capture full-page screenshots of websites and save them as PDF files, useful for archiving web content or generating visual reports.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":220,"children":223},{"href":221,"className":222},"/integration/n8n/compress-pdfs",[126,127,128,129,130,131,132,133,134,135],[224,225,244],{"type":26,"value":27},{"type":16,"tag":17,"props":226,"children":227},{},[228,229,236,237,243],{"type":26,"value":142},{"type":16,"tag":144,"props":230,"children":233},{"className":231,"id":232},[106,147],"compress-pages-from-pdf",[234],{"type":26,"value":235},"Compress Pages from PDF",{"type":26,"value":142},{"type":16,"tag":80,"props":238,"children":240},{"className":239},[156,157,158],[241],{"type":26,"value":242},"Convert HTML or code into a PDF, compress the generated PDF, and return it as a binary response using the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":247,"children":250},{"href":248,"className":249},"/integration/n8n/extract-pdf",[126,127,128,129,130,131,132,133,134,135],[251,252,271],{"type":26,"value":27},{"type":16,"tag":17,"props":253,"children":254},{},[255,256,263,264,270],{"type":26,"value":142},{"type":16,"tag":144,"props":257,"children":260},{"className":258,"id":259},[106,147],"extract-pdf-files",[261],{"type":26,"value":262},"Extract PDF files",{"type":26,"value":142},{"type":16,"tag":80,"props":265,"children":267},{"className":266},[156,157,158],[268],{"type":26,"value":269},"Extract selected pages from a generated PDF with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":274,"children":277},{"href":275,"className":276},"/integration/n8n/pdf-to-png",[126,127,128,129,130,131,132,133,134,135],[278,279,298],{"type":26,"value":27},{"type":16,"tag":17,"props":280,"children":281},{},[282,283,290,291,297],{"type":26,"value":142},{"type":16,"tag":144,"props":284,"children":287},{"className":285,"id":286},[106,147],"convert-pdf-to-png",[288],{"type":26,"value":289},"Convert PDF to PNG",{"type":26,"value":142},{"type":16,"tag":80,"props":292,"children":294},{"className":293},[156,157,158],[295],{"type":26,"value":296},"Convert PDF files into png with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":301,"children":304},{"href":302,"className":303},"/integration/n8n/pdf-to-text",[126,127,128,129,130,131,132,133,134,135],[305,306,325],{"type":26,"value":27},{"type":16,"tag":17,"props":307,"children":308},{},[309,310,317,318,324],{"type":26,"value":142},{"type":16,"tag":144,"props":311,"children":314},{"className":312,"id":313},[106,147],"convert-pdf-to-text",[315],{"type":26,"value":316},"Convert PDF to Text",{"type":26,"value":142},{"type":16,"tag":80,"props":319,"children":321},{"className":320},[156,157,158],[322],{"type":26,"value":323},"Convert PDF files into text with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":328,"children":331},{"href":329,"className":330},"/integration/n8n/scraper",[126,127,128,129,130,131,132,133,134,135],[332,333,352],{"type":26,"value":27},{"type":16,"tag":17,"props":334,"children":335},{},[336,337,344,345,351],{"type":26,"value":142},{"type":16,"tag":144,"props":338,"children":341},{"className":339,"id":340},[106,147],"web-scraping",[342],{"type":26,"value":343},"Web Scraping",{"type":26,"value":142},{"type":16,"tag":80,"props":346,"children":348},{"className":347},[156,157,158],[349],{"type":26,"value":350},"The Scraper node can simulate clicks, typing, and waits, making it ideal for scraping dynamic or protected content. Extract HTML or screenshots for monitoring, research, or integration.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":355,"children":358},{"href":356,"className":357},"/integration/n8n/ssl-checker",[126,127,128,129,130,131,132,133,134,135],[359,360,379],{"type":26,"value":27},{"type":16,"tag":17,"props":361,"children":362},{},[363,364,371,372,378],{"type":26,"value":142},{"type":16,"tag":144,"props":365,"children":368},{"className":366,"id":367},[106,147],"ssl-checker-ssl-certificate",[369],{"type":26,"value":370},"SSL Checker (SSL Certificate)",{"type":26,"value":142},{"type":16,"tag":80,"props":373,"children":375},{"className":374},[156,157,158],[376],{"type":26,"value":377},"The SSL Checker node checks certificate validity, expiration dates, and configuration, helping you prevent downtime and maintain security compliance with automated alerts and reporting.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":382,"children":385},{"href":383,"className":384},"/integration/n8n/split-pdf",[126,127,128,129,130,131,132,133,134,135],[386,387,406],{"type":26,"value":27},{"type":16,"tag":17,"props":388,"children":389},{},[390,391,398,399,405],{"type":26,"value":142},{"type":16,"tag":144,"props":392,"children":395},{"className":393,"id":394},[106,147],"split-pdf-into-pages",[396],{"type":26,"value":397},"Split PDF into Pages",{"type":26,"value":142},{"type":16,"tag":80,"props":400,"children":402},{"className":401},[156,157,158],[403],{"type":26,"value":404},"Split a PDF into individual single-page PDFs and get one n8n item per page — perfect for processing, OCR, or storing each page separately.",{"type":26,"value":27},{"type":26,"value":121},{"type":16,"tag":408,"props":409,"children":411},"h3",{"id":410},"getting-started",[412],{"type":26,"value":413},"Getting Started",{"type":16,"tag":415,"props":416,"children":417},"ol",{},[418,424,429],{"type":16,"tag":419,"props":420,"children":421},"li",{},[422],{"type":26,"value":423},"Install the CustomJS PDF Toolkit node from the n8n community nodes.",{"type":16,"tag":419,"props":425,"children":426},{},[427],{"type":26,"value":428},"Add the node to your workflow and configure the desired action.",{"type":16,"tag":419,"props":430,"children":431},{},[432],{"type":26,"value":433},"Integrate it with other n8n nodes to automate your PDF processing tasks.",{"type":16,"tag":80,"props":435,"children":436},{},[437,439,447],{"type":26,"value":438},"For detailed documentation and examples, visit n8n's ",{"type":16,"tag":66,"props":440,"children":444},{"href":441,"rel":442},"https://n8n.io/workflows/?q=customjs",[443],"nofollow",[445],{"type":26,"value":446},"workflow templates list",{"type":26,"value":448},".",{"title":7,"searchDepth":450,"depth":450,"links":451},2,[452],{"id":109,"depth":450,"text":112,"children":453},[454],{"id":410,"depth":455,"text":413},3,"markdown","content:integration:n8n:index.md","content","integration/n8n/index.md","integration/n8n/index","md",[],[],{"_path":465,"_dir":10,"_draft":6,"_partial":6,"_locale":7,"title":466,"description":467,"slug":468,"body":469,"_type":456,"_id":1113,"_source":458,"_file":1114,"_stem":1115,"_extension":461},"/integration/n8n/file-to-base64","File to Base64 (from URL)","Download a file from a URL and get it back as Base64 and data URI in n8n, ideal for embedding logos and fonts into PDF templates","file-to-base64",{"type":13,"children":470,"toc":1103},[471,476,519,531,549,561,567,579,627,633,639,707,713,721,739,747,860,866,971,977,988,1060,1065,1071,1097],{"type":16,"tag":45,"props":472,"children":474},{"id":473},"file-to-base64-from-url",[475],{"type":26,"value":466},{"type":16,"tag":75,"props":477,"children":479},{"type":478},"note",[480],{"type":16,"tag":80,"props":481,"children":482},{},[483,485,490,492,497,499,505,507,518],{"type":26,"value":484},"This operation is available on both ",{"type":16,"tag":84,"props":486,"children":487},{},[488],{"type":26,"value":489},"n8n Cloud and self-hosted n8n",{"type":26,"value":491}," and requires the ",{"type":16,"tag":84,"props":493,"children":494},{},[495],{"type":26,"value":496},"CustomJS community package",{"type":26,"value":498},". It ships with the next release of the ",{"type":16,"tag":97,"props":500,"children":502},{"className":501},[],[503],{"type":26,"value":504},"@custom-js/n8n-nodes-pdf-toolkit-v2",{"type":26,"value":506}," package, available from version 0.12.0. ",{"type":16,"tag":66,"props":508,"children":510},{"href":509},"/integration/n8n/installation",[511,513],{"type":26,"value":512},"See ",{"type":16,"tag":84,"props":514,"children":515},{},[516],{"type":26,"value":517},"Installation",{"type":26,"value":448},{"type":16,"tag":80,"props":520,"children":521},{},[522,524,529],{"type":26,"value":523},"The ",{"type":16,"tag":84,"props":525,"children":526},{},[527],{"type":26,"value":528},"File to Base64",{"type":26,"value":530}," operation downloads a file from a URL and returns it as a Base64 string and a ready-to-use data URI.",{"type":16,"tag":80,"props":532,"children":533},{},[534,536,540,542,548],{"type":26,"value":535},"The typical use case: embed logos, images, or fonts as a data URI directly into the HTML template of the ",{"type":16,"tag":66,"props":537,"children":538},{"href":124},[539],{"type":26,"value":151},{"type":26,"value":541}," node. The PDF renderer then needs no external requests, your assets always load, and the generated PDF looks the same every time. The same trick works with the ",{"type":16,"tag":66,"props":543,"children":545},{"href":544},"/integration/pdf-api/html-to-pdf",[546],{"type":26,"value":547},"HTML to PDF API",{"type":26,"value":448},{"type":16,"tag":80,"props":550,"children":551},{},[552,554,559],{"type":26,"value":553},"Files are capped at ",{"type":16,"tag":84,"props":555,"children":556},{},[557],{"type":26,"value":558},"8 MB",{"type":26,"value":560},". Larger files return an error instead of a truncated result.",{"type":16,"tag":102,"props":562,"children":564},{"id":563},"where-to-find-it",[565],{"type":26,"value":566},"Where to find it",{"type":16,"tag":80,"props":568,"children":569},{},[570,572,577],{"type":26,"value":571},"The operation lives in the ",{"type":16,"tag":84,"props":573,"children":574},{},[575],{"type":26,"value":576},"CustomJS (PDF & File Toolkit)",{"type":26,"value":578}," node:",{"type":16,"tag":415,"props":580,"children":581},{},[582,594,612],{"type":16,"tag":419,"props":583,"children":584},{},[585,587,592],{"type":26,"value":586},"Add the ",{"type":16,"tag":84,"props":588,"children":589},{},[590],{"type":26,"value":591},"PDF Toolkit",{"type":26,"value":593}," node to your workflow",{"type":16,"tag":419,"props":595,"children":596},{},[597,599,604,606],{"type":26,"value":598},"Set ",{"type":16,"tag":84,"props":600,"children":601},{},[602],{"type":26,"value":603},"Resource",{"type":26,"value":605}," to ",{"type":16,"tag":97,"props":607,"children":609},{"className":608},[],[610],{"type":26,"value":611},"Data",{"type":16,"tag":419,"props":613,"children":614},{},[615,616,621,622],{"type":26,"value":598},{"type":16,"tag":84,"props":617,"children":618},{},[619],{"type":26,"value":620},"Operation",{"type":26,"value":605},{"type":16,"tag":97,"props":623,"children":625},{"className":624},[],[626],{"type":26,"value":466},{"type":16,"tag":102,"props":628,"children":630},{"id":629},"configuration",[631],{"type":26,"value":632},"Configuration",{"type":16,"tag":408,"props":634,"children":636},{"id":635},"node-parameters",[637],{"type":26,"value":638},"Node Parameters",{"type":16,"tag":640,"props":641,"children":642},"table",{},[643,667],{"type":16,"tag":644,"props":645,"children":646},"thead",{},[647],{"type":16,"tag":648,"props":649,"children":650},"tr",{},[651,657,662],{"type":16,"tag":652,"props":653,"children":654},"th",{},[655],{"type":26,"value":656},"Parameter",{"type":16,"tag":652,"props":658,"children":659},{},[660],{"type":26,"value":661},"Description",{"type":16,"tag":652,"props":663,"children":664},{},[665],{"type":26,"value":666},"Required",{"type":16,"tag":668,"props":669,"children":670},"tbody",{},[671],{"type":16,"tag":648,"props":672,"children":673},{},[674,683,702],{"type":16,"tag":675,"props":676,"children":677},"td",{},[678],{"type":16,"tag":84,"props":679,"children":680},{},[681],{"type":26,"value":682},"File URL",{"type":16,"tag":675,"props":684,"children":685},{},[686,688,694,696],{"type":26,"value":687},"URL of the file to download, must start with ",{"type":16,"tag":97,"props":689,"children":691},{"className":690},[],[692],{"type":26,"value":693},"http://",{"type":26,"value":695}," or ",{"type":16,"tag":97,"props":697,"children":699},{"className":698},[],[700],{"type":26,"value":701},"https://",{"type":16,"tag":675,"props":703,"children":704},{},[705],{"type":26,"value":706},"Yes",{"type":16,"tag":102,"props":708,"children":710},{"id":709},"example",[711],{"type":26,"value":712},"Example",{"type":16,"tag":80,"props":714,"children":715},{},[716],{"type":16,"tag":84,"props":717,"children":718},{},[719],{"type":26,"value":720},"Input:",{"type":16,"tag":92,"props":722,"children":725},{"className":723,"code":724,"language":26,"meta":7,"style":7},"language-text shiki shiki-themes github-light","File URL: https://example.com/logo.png\n",[726],{"type":16,"tag":97,"props":727,"children":728},{"__ignoreMap":7},[729],{"type":16,"tag":730,"props":731,"children":734},"span",{"class":732,"line":733},"line",1,[735],{"type":16,"tag":730,"props":736,"children":737},{},[738],{"type":26,"value":724},{"type":16,"tag":80,"props":740,"children":741},{},[742],{"type":16,"tag":84,"props":743,"children":744},{},[745],{"type":26,"value":746},"Output:",{"type":16,"tag":92,"props":748,"children":752},{"className":749,"code":750,"language":751,"meta":7,"style":7},"language-json shiki shiki-themes github-light","{\n  \"base64\": \"iVBORw0KGgoAAAANSUhEUgAA...\",\n  \"dataUri\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\",\n  \"contentType\": \"image/png\",\n  \"bytes\": 34210\n}\n","json",[753],{"type":16,"tag":97,"props":754,"children":755},{"__ignoreMap":7},[756,765,790,811,833,851],{"type":16,"tag":730,"props":757,"children":758},{"class":732,"line":733},[759],{"type":16,"tag":730,"props":760,"children":762},{"style":761},"--shiki-default:#24292E",[763],{"type":26,"value":764},"{\n",{"type":16,"tag":730,"props":766,"children":767},{"class":732,"line":450},[768,774,779,785],{"type":16,"tag":730,"props":769,"children":771},{"style":770},"--shiki-default:#005CC5",[772],{"type":26,"value":773},"  \"base64\"",{"type":16,"tag":730,"props":775,"children":776},{"style":761},[777],{"type":26,"value":778},": ",{"type":16,"tag":730,"props":780,"children":782},{"style":781},"--shiki-default:#032F62",[783],{"type":26,"value":784},"\"iVBORw0KGgoAAAANSUhEUgAA...\"",{"type":16,"tag":730,"props":786,"children":787},{"style":761},[788],{"type":26,"value":789},",\n",{"type":16,"tag":730,"props":791,"children":792},{"class":732,"line":455},[793,798,802,807],{"type":16,"tag":730,"props":794,"children":795},{"style":770},[796],{"type":26,"value":797},"  \"dataUri\"",{"type":16,"tag":730,"props":799,"children":800},{"style":761},[801],{"type":26,"value":778},{"type":16,"tag":730,"props":803,"children":804},{"style":781},[805],{"type":26,"value":806},"\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...\"",{"type":16,"tag":730,"props":808,"children":809},{"style":761},[810],{"type":26,"value":789},{"type":16,"tag":730,"props":812,"children":814},{"class":732,"line":813},4,[815,820,824,829],{"type":16,"tag":730,"props":816,"children":817},{"style":770},[818],{"type":26,"value":819},"  \"contentType\"",{"type":16,"tag":730,"props":821,"children":822},{"style":761},[823],{"type":26,"value":778},{"type":16,"tag":730,"props":825,"children":826},{"style":781},[827],{"type":26,"value":828},"\"image/png\"",{"type":16,"tag":730,"props":830,"children":831},{"style":761},[832],{"type":26,"value":789},{"type":16,"tag":730,"props":834,"children":836},{"class":732,"line":835},5,[837,842,846],{"type":16,"tag":730,"props":838,"children":839},{"style":770},[840],{"type":26,"value":841},"  \"bytes\"",{"type":16,"tag":730,"props":843,"children":844},{"style":761},[845],{"type":26,"value":778},{"type":16,"tag":730,"props":847,"children":848},{"style":770},[849],{"type":26,"value":850},"34210\n",{"type":16,"tag":730,"props":852,"children":854},{"class":732,"line":853},6,[855],{"type":16,"tag":730,"props":856,"children":857},{"style":761},[858],{"type":26,"value":859},"}\n",{"type":16,"tag":102,"props":861,"children":863},{"id":862},"output-fields",[864],{"type":26,"value":865},"Output Fields",{"type":16,"tag":640,"props":867,"children":868},{},[869,884],{"type":16,"tag":644,"props":870,"children":871},{},[872],{"type":16,"tag":648,"props":873,"children":874},{},[875,880],{"type":16,"tag":652,"props":876,"children":877},{},[878],{"type":26,"value":879},"Field",{"type":16,"tag":652,"props":881,"children":882},{},[883],{"type":26,"value":661},{"type":16,"tag":668,"props":885,"children":886},{},[887,903,933,955],{"type":16,"tag":648,"props":888,"children":889},{},[890,898],{"type":16,"tag":675,"props":891,"children":892},{},[893],{"type":16,"tag":84,"props":894,"children":895},{},[896],{"type":26,"value":897},"base64",{"type":16,"tag":675,"props":899,"children":900},{},[901],{"type":26,"value":902},"The raw Base64 encoded file content",{"type":16,"tag":648,"props":904,"children":905},{},[906,914],{"type":16,"tag":675,"props":907,"children":908},{},[909],{"type":16,"tag":84,"props":910,"children":911},{},[912],{"type":26,"value":913},"dataUri",{"type":16,"tag":675,"props":915,"children":916},{},[917,919,925,927],{"type":26,"value":918},"The complete data URI including content type, ready to drop into an ",{"type":16,"tag":97,"props":920,"children":922},{"className":921},[],[923],{"type":26,"value":924},"src",{"type":26,"value":926}," attribute or a CSS ",{"type":16,"tag":97,"props":928,"children":930},{"className":929},[],[931],{"type":26,"value":932},"url()",{"type":16,"tag":648,"props":934,"children":935},{},[936,944],{"type":16,"tag":675,"props":937,"children":938},{},[939],{"type":16,"tag":84,"props":940,"children":941},{},[942],{"type":26,"value":943},"contentType",{"type":16,"tag":675,"props":945,"children":946},{},[947,949],{"type":26,"value":948},"The content type reported by the server, e.g. ",{"type":16,"tag":97,"props":950,"children":952},{"className":951},[],[953],{"type":26,"value":954},"image/png",{"type":16,"tag":648,"props":956,"children":957},{},[958,966],{"type":16,"tag":675,"props":959,"children":960},{},[961],{"type":16,"tag":84,"props":962,"children":963},{},[964],{"type":26,"value":965},"bytes",{"type":16,"tag":675,"props":967,"children":968},{},[969],{"type":26,"value":970},"The file size in bytes",{"type":16,"tag":102,"props":972,"children":974},{"id":973},"embedding-a-logo-into-a-pdf-template",[975],{"type":26,"value":976},"Embedding a logo into a PDF template",{"type":16,"tag":80,"props":978,"children":979},{},[980,982,986],{"type":26,"value":981},"Connect this operation to the ",{"type":16,"tag":66,"props":983,"children":984},{"href":124},[985],{"type":26,"value":151},{"type":26,"value":987}," node and reference the data URI in your template:",{"type":16,"tag":92,"props":989,"children":993},{"className":990,"code":991,"language":992,"meta":7,"style":7},"language-html shiki shiki-themes github-light","\u003Cimg src=\"{{ $json.result.dataUri }}\" alt=\"Company logo\" style=\"height: 48px\">\n","html",[994],{"type":16,"tag":97,"props":995,"children":996},{"__ignoreMap":7},[997],{"type":16,"tag":730,"props":998,"children":999},{"class":732,"line":733},[1000,1005,1011,1017,1022,1027,1032,1036,1041,1046,1050,1055],{"type":16,"tag":730,"props":1001,"children":1002},{"style":761},[1003],{"type":26,"value":1004},"\u003C",{"type":16,"tag":730,"props":1006,"children":1008},{"style":1007},"--shiki-default:#22863A",[1009],{"type":26,"value":1010},"img",{"type":16,"tag":730,"props":1012,"children":1014},{"style":1013},"--shiki-default:#6F42C1",[1015],{"type":26,"value":1016}," src",{"type":16,"tag":730,"props":1018,"children":1019},{"style":761},[1020],{"type":26,"value":1021},"=",{"type":16,"tag":730,"props":1023,"children":1024},{"style":781},[1025],{"type":26,"value":1026},"\"{{ $json.result.dataUri }}\"",{"type":16,"tag":730,"props":1028,"children":1029},{"style":1013},[1030],{"type":26,"value":1031}," alt",{"type":16,"tag":730,"props":1033,"children":1034},{"style":761},[1035],{"type":26,"value":1021},{"type":16,"tag":730,"props":1037,"children":1038},{"style":781},[1039],{"type":26,"value":1040},"\"Company logo\"",{"type":16,"tag":730,"props":1042,"children":1043},{"style":1013},[1044],{"type":26,"value":1045}," style",{"type":16,"tag":730,"props":1047,"children":1048},{"style":761},[1049],{"type":26,"value":1021},{"type":16,"tag":730,"props":1051,"children":1052},{"style":781},[1053],{"type":26,"value":1054},"\"height: 48px\"",{"type":16,"tag":730,"props":1056,"children":1057},{"style":761},[1058],{"type":26,"value":1059},">\n",{"type":16,"tag":80,"props":1061,"children":1062},{},[1063],{"type":26,"value":1064},"The logo is now part of the HTML itself, so the PDF renders correctly even if the original URL is slow, protected, or temporarily offline.",{"type":16,"tag":102,"props":1066,"children":1068},{"id":1067},"related",[1069],{"type":26,"value":1070},"Related",{"type":16,"tag":1072,"props":1073,"children":1074},"ul",{},[1075,1082,1090],{"type":16,"tag":419,"props":1076,"children":1077},{},[1078],{"type":16,"tag":66,"props":1079,"children":1080},{"href":509},[1081],{"type":26,"value":517},{"type":16,"tag":419,"props":1083,"children":1084},{},[1085],{"type":16,"tag":66,"props":1086,"children":1087},{"href":124},[1088],{"type":26,"value":1089},"HTML to PDF (n8n)",{"type":16,"tag":419,"props":1091,"children":1092},{},[1093],{"type":16,"tag":66,"props":1094,"children":1095},{"href":544},[1096],{"type":26,"value":547},{"type":16,"tag":1098,"props":1099,"children":1100},"style",{},[1101],{"type":26,"value":1102},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":450,"depth":450,"links":1104},[1105,1106,1109,1110,1111,1112],{"id":563,"depth":450,"text":566},{"id":629,"depth":450,"text":632,"children":1107},[1108],{"id":635,"depth":455,"text":638},{"id":709,"depth":450,"text":712},{"id":862,"depth":450,"text":865},{"id":973,"depth":450,"text":976},{"id":1067,"depth":450,"text":1070},"content:integration:n8n:file-to-base64.md","integration/n8n/file-to-base64.md","integration/n8n/file-to-base64",1787727652714]