[{"data":1,"prerenderedAt":4529},["ShallowReactive",2],{"$f0kvBnnDHIzDLZEYMj0bX-xwEmr-gLLxPg_R8Q1Pofn4":3,"footer-learning-topics":1249,"\u002Flearning\u002Ftutorials\u002Fextract-from-pdf\u002F":2290,"$fckgavYb0AcZK2OLpoJka5dPkPYWwprpnBwh6X_TGsA8":2597,"\u002Flearning\u002Ftutorials\u002Fextract-from-pdf\u002F-tutorials":2695},{"data":4,"meta":1248},{"id":5,"createdAt":6,"updatedAt":7,"publishedAt":8,"stateful_cta":9,"documentId":43,"seo":44,"nav":86,"footer_developers":146,"footer_products":189,"api_tool_buckets":207},1,"2024-07-31T19:55:31.750Z","2026-07-13T21:19:43.933Z","2024-10-02T18:31:05.316Z",{"pro":10,"default":20,"premium":27,"starter":31,"enterprise":39},{"links":11,"title":18,"description":19},[12,15],{"to":13,"label":14},"\u002Fapilab\u002F","Experiment with API Lab",{"to":16,"label":17},"\u002Fpricing\u002F","Compare Plans","New Tools and Solutions!","We strive to bring you new and improved solutions to your most pressing PDF problems.  Let us know how we can help, and check back often to see what our latest updates can do for you.",{"links":21,"title":25,"description":26},[22],{"label":23,"action":24},"Get Started","signup","Generate a self-service API Key now!","Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.",{"links":28,"title":18,"description":19},[29,30],{"to":13,"label":14},{"to":16,"label":17},{"links":32,"title":37,"description":38},[33,36],{"to":34,"label":35},"\u002Fselectplan\u002F","Upgrade Your Plan",{"to":16,"label":17},"Get ready to launch!","Your Starter plan is perfect for testing and prototyping.  When you're ready to launch PDF processing in your website, application, or workflow, remember to upgrade your plan for unlimited access.",{"links":40,"title":18,"description":19},[41,42],{"to":13,"label":14},{"to":16,"label":17},"r04g5q4cjgbscjtve160zt7q",{"id":45,"metaTitle":46,"metaDescription":47,"canonicalUrl":48,"structured_data":49},720,"pdfRest | Powerful PDF API for Developers, Programmatic PDF Processing","pdfRest is a REST API toolkit for developers to programmatically integrate powerful PDF processing solutions into any application or workflow, quickly and easily.",null,{"@graph":50,"@context":85},[51,75,79],{"@id":52,"url":53,"logo":54,"name":57,"@type":58,"sameAs":59,"knowsAbout":63,"description":71,"parentOrganization":72},"https:\u002F\u002Fpdfrest.com\u002F#organization","https:\u002F\u002Fpdfrest.com\u002F",{"url":55,"@type":56},"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_Rest_logo_1500_500_dark_bg_b7059b68fc.png","ImageObject","pdfRest","Organization",[60,61,62],"https:\u002F\u002Fgithub.com\u002Fpdfrest","https:\u002F\u002Fhub.docker.com\u002Fr\u002Fpdfrest\u002Fpdf-api-toolkit","https:\u002F\u002Fpypi.org\u002Fproject\u002Fpdfrest\u002F",[64,65,66,67,68,69,70],"PDF processing","PDF conversion API","OCR","Document automation","REST API","PDF\u002FA","PDF\u002FX","pdfRest is a REST API toolkit that lets developers convert, merge, split, compress, OCR, and secure PDF files through simple API calls. Powered by Adobe PDF Library.",{"url":73,"name":74,"@type":58},"https:\u002F\u002Fwww.datalogics.com\u002F","Datalogics, Inc.",{"@id":76,"url":53,"name":57,"@type":77,"publisher":78},"https:\u002F\u002Fpdfrest.com\u002F#website","WebSite",{"@id":52},{"@id":80,"url":53,"name":46,"@type":81,"about":82,"isPartOf":83,"description":84},"https:\u002F\u002Fpdfrest.com\u002F#webpage","WebPage",{"@id":52},{"@id":76},"Integrate powerful PDF processing into any application. Deploy pdfRest in the cloud, self-host in a Docker container, or run on AWS Marketplace.","https:\u002F\u002Fschema.org",[87,91,95,99,126,138,142],{"id":88,"label":89,"description":48,"to":13,"icon":48,"external":48,"target":48,"children":48,"__component":90},133,"API Lab","header.link",{"id":92,"label":93,"description":48,"to":94,"icon":48,"external":48,"target":48,"children":48,"__component":90},134,"API Tools","\u002Fapitools\u002F",{"id":96,"label":97,"description":48,"to":98,"icon":48,"external":48,"target":48,"children":48,"__component":90},135,"Learning","\u002Flearning\u002F",{"id":100,"label":101,"description":48,"to":102,"icon":48,"external":48,"target":48,"children":103,"__component":90},136,"Products","\u002Fapi-toolkit\u002F",[104,120],{"to":102,"label":105,"children":106,"description":119},"pdfRest API Toolkit",[107,111,115],{"to":108,"label":109,"description":110},"\u002Fproducts\u002Fpdfrest-api-toolkit-cloud\u002F","Cloud","Get started fast with easy, reliable, secure integration",{"to":112,"label":113,"description":114},"\u002Fproducts\u002Fpdfrest-api-toolkit-container\u002F","Container","Achieve secure, reliable, and seamless on-premises hosting integration",{"to":116,"label":117,"description":118},"\u002Fproducts\u002Fpdfrest-api-toolkit-on-aws\u002F","On AWS","Take full control with configurable, private backend","Full-featured PDF processing power",{"to":121,"label":122,"target":123,"external":124,"description":125},"https:\u002F\u002Fpdfassistant.ai\u002F","pdfAssistant.ai","_blank",true,"No-Code PDF Automation",{"id":127,"label":128,"description":48,"to":16,"icon":48,"external":48,"target":48,"children":129,"__component":90},137,"Pricing",[130],{"to":16,"label":105,"children":131,"description":119},[132,134,136],{"to":133,"label":109,"exactHash":124,"description":110},"\u002Fpricing\u002F#cloud",{"to":135,"label":113,"exactHash":124,"description":118},"\u002Fpricing\u002F#container",{"to":137,"label":117,"exactHash":124,"description":118},"\u002Fpricing\u002F#on-aws",{"id":139,"label":140,"description":48,"to":141,"icon":48,"external":48,"target":123,"children":48,"__component":90},138,"Documentation","https:\u002F\u002Fdocs.pdfrest.com\u002F",{"id":143,"label":144,"description":48,"to":145,"icon":48,"external":48,"target":123,"children":48,"__component":90},139,"Support","\u002Fsupport\u002F",[147,157,167,184],{"id":148,"label":149,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":150,"__component":90},140,"API Reference Guides",[151,154],{"to":152,"label":153,"target":123,"external":124},"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F","Cloud API",{"to":155,"label":156,"target":123,"external":124},"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-container\u002Fapi-reference-guide\u002F","Self-Hosted API",{"id":158,"label":159,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":160,"__component":90},141,"Getting Started Guides",[161,163,165],{"to":162,"label":109,"target":123,"external":124},"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fgetting-started\u002F",{"to":164,"label":117,"target":123,"external":124},"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-on-aws\u002Fgetting-started\u002F",{"to":166,"label":113,"target":123,"external":124},"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-container\u002Fgetting-started\u002F",{"id":168,"label":169,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":170,"__component":90},142,"Resources",[171,172,175,178,181],{"to":13,"label":89},{"to":173,"label":174,"target":123,"external":124},"https:\u002F\u002Fgithub.com\u002Fdatalogics\u002Fpdf-rest-api-samples","GitHub",{"to":176,"label":177,"target":123,"external":124},"https:\u002F\u002Fwww.postman.com\u002Fpdfrest\u002F","Postman",{"to":179,"label":180,"target":123,"external":124},"https:\u002F\u002Fstatus.pdfrest.com\u002F","Status",{"to":182,"label":183,"target":123,"external":124},"https:\u002F\u002Ftrust.datalogics.com\u002F","Trust Center",{"id":185,"label":144,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":186,"__component":90},143,[187],{"to":145,"label":188,"target":123,"external":124},"Contact Us",[190,197],{"id":191,"label":105,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":192,"__component":90},144,[193,194,195,196],{"to":108,"label":109},{"to":116,"label":117},{"to":112,"label":113},{"to":16,"label":128},{"id":198,"label":122,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":199,"__component":90},166,[200,202,205],{"to":121,"label":201,"target":123,"external":124},"AI Assistant",{"to":203,"label":204,"target":123,"external":124},"https:\u002F\u002Fpdfassistant.ai\u002Fproducts\u002Fexternal-plugins-and-integrations\u002F","Plugins & Integrations",{"to":206,"label":128,"target":123,"external":124},"https:\u002F\u002Fpdfassistant.ai\u002Fpricing\u002F",[208,272,503,664,810,933,1054,1152],{"id":209,"name":210,"description":211,"createdAt":212,"updatedAt":213,"publishedAt":214,"rank":215,"documentId":216,"api_tools":217},8,"Analyze","Leverage advanced AI to evaluate, interpret, and transform document content, performing complex enhancements and analysis.","2025-09-29T19:12:05.140Z","2025-09-29T20:54:02.065Z","2025-09-29T20:54:02.056Z",0,"d1wcx0ovi8arijsk579giafy",[218,248],{"id":219,"name":220,"tool_page_desc":221,"new_tool":124,"pro_tool":124,"header_blurb":222,"tool_card_desc":223,"youtube_url":48,"why_section_title":224,"why_section_desc":225,"slug":226,"createdAt":227,"updatedAt":228,"publishedAt":229,"publish_date":230,"rank":48,"cloud_only":124,"documentId":231,"icon":232},71,"Summarize PDF","Summarize PDF is an AI-powered REST API Tool that leverages OpenAI technology to intelligently process and condense the text content of any PDF, Markdown, or Plain Text file. Designed for speed and accuracy, this tool extracts key information and generates high-quality summaries based on your precise specifications, instantly transforming large documents into actionable insights.\n## Key Benefits of Summarize PDF API\n- Instantly extract and process all text from a PDF, enabling OpenAI's models to intelligently identify and summarize the most critical information.\n- Precisely control the output by specifying a target word count and selecting from a variety of summary formats.\n- Limit the scope of the summarization by using the pages parameter to process only a specific page or a range of pages from the document.\n- Choose to receive the summarized content directly in the JSON response or as a separate downloadable file for easy integration into your application workflows.\n- Quickly transform lengthy reports, legal documents, or research papers into concise, readable summaries to accelerate comprehension and improve workflow efficiency.\n- Select markdown as the output format to ensure the summary is clean, structured, and ready for immediate use in web content, documentation, or publishing systems.","Generate concise summaries using AI","Generate concise summaries from PDF text using AI, with customizable length and format options.","Why is pdfRest the best API to summarize PDF text?","pdfRest offers the best solution for PDF text summarization because it delivers customizable AI-driven insights, guarantees precise content extraction, and offers developer-focused output controls.","summarize-pdf","2025-09-29T19:13:30.538Z","2026-07-10T19:39:18.978Z","2025-09-29T20:55:10.696Z","2024-08-29T05:00:00.000Z","r3chcd686h0x5q8dmope5h08",{"id":233,"name":234,"alternativeText":235,"caption":48,"width":236,"height":237,"formats":48,"hash":238,"ext":239,"mime":240,"size":241,"url":242,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":244,"updatedAt":245,"documentId":246,"publishedAt":247,"focalPoint":48},617,"summarize-pdf.svg","Summarize PDF API Tool",122,75,"summarize_pdf_d37a1a2a11",".svg","image\u002Fsvg+xml",11.41,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fsummarize_pdf_d37a1a2a11.svg","strapi-provider-upload-strapi-cloud","2025-09-29T20:19:27.277Z","2025-09-29T20:19:40.581Z","lxlqtu0w9bikyvr6rim6mb4r","2026-09-02T14:52:18.710Z",{"id":249,"name":250,"tool_page_desc":251,"new_tool":124,"pro_tool":124,"header_blurb":252,"tool_card_desc":253,"youtube_url":48,"why_section_title":254,"why_section_desc":255,"slug":256,"createdAt":257,"updatedAt":258,"publishedAt":259,"publish_date":260,"rank":48,"cloud_only":124,"documentId":261,"icon":262},72,"Translate PDF","Translate PDF is an AI-powered REST API Tool that leverages OpenAI technology to intelligently translate the language of the text found within any PDF, Markdown, or Plain Text file. Designed to maintain accuracy and context across languages, this tool extracts content and translates the text into your specified target language.\n\n## Key Benefits of Translate PDF API\n\n- Instantly convert technical documents, legal contracts, and reports into virtually any language supported by OpenAI's advanced models, enabling global accessibility.\n- Automatically detect and translate the entire text content of a PDF, ensuring minimal loss of context and preserving the document's original structure.\n- Restrict translation to a specific page or range of pages for efficient processing of very large or multi-section documents.\n- Easily process PDF, Markdown, or Plain Text files and receive the translated content as structured Markdown or raw Plain Text output.\n- Choose to receive the translated content directly within the JSON response or as a separate downloadable file for flexible, high-volume application workflows.","Translate language of PDF text with AI","Translate text content extracted from PDFs into any language using AI.","Why is pdfRest the best API to translate PDF text?","pdfRest offers the best solution for PDF text translation because it delivers fast, contextual language conversion, ensures reliable content extraction from complex documents, and offers seamless integration into global workflows.","translate-pdf","2025-10-22T03:17:29.590Z","2026-07-10T19:40:04.170Z","2025-10-22T21:59:58.416Z","2025-10-21T05:00:00.000Z","ym3uvqo78jjwcceqjnrtobgv",{"id":263,"name":264,"alternativeText":265,"caption":48,"width":236,"height":237,"formats":48,"hash":266,"ext":239,"mime":240,"size":267,"url":268,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":269,"updatedAt":270,"documentId":271,"publishedAt":247,"focalPoint":48},652,"translate-pdf.svg","Translate PDF API Tool","translate_pdf_680f9c11ea",12.18,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Ftranslate_pdf_680f9c11ea.svg","2025-10-13T17:10:25.435Z","2025-10-22T02:46:53.879Z","hfaygimansou8gyewfqxt8dv",{"id":5,"name":273,"description":274,"createdAt":275,"updatedAt":276,"publishedAt":277,"rank":5,"documentId":278,"api_tools":279},"Convert","Convert files between formats and conform to specialized PDF standards","2024-08-13T18:39:14.954Z","2025-09-29T20:41:30.711Z","2024-08-13T18:39:16.447Z","tmnonktl8nl6p539bmwocdd7",[280,307,332,357,382,407,431,454,478],{"id":281,"name":282,"tool_page_desc":283,"new_tool":284,"pro_tool":124,"header_blurb":285,"tool_card_desc":286,"youtube_url":287,"why_section_title":288,"why_section_desc":289,"slug":290,"createdAt":291,"updatedAt":292,"publishedAt":293,"publish_date":294,"rank":295,"cloud_only":48,"documentId":296,"icon":297},130,"PDF to Word","PDF to Word is a REST API tool designed to seamlessly convert PDF documents into Microsoft Word format, facilitating easy editing and collaboration. As a reliable PDF to Word converter, it gives developers a fast, accurate way to automate the transformation of PDFs into editable Word documents at scale.\n## Key Benefits of PDF to Word API\n- Simplify document editing by converting PDFs to Word (.docx), allowing for easy text modifications, comments, and change tracking.\n- Preserve original formatting and layout to maintain the integrity of your documents during conversion.\n- Enhance collaboration by enabling multiple users to work on the same document in Word format, ideal for legal, marketing, and project management teams.\n- Integrate effortlessly into existing workflows with a flexible and intuitive REST API interface.\n- Achieve reliable and accurate conversion results with advanced technology, minimizing common issues like formatting errors and data loss.",false,"Convert PDF to editable Word doc","Convert PDF documents to Microsoft Word documents for easy editing","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F0Mx5rEtVSrg","Why is pdfRest the best API to convert PDF to Word?","pdfRest offers the best solution for converting PDF files to Word documents, because it supports easy document editing, reliable results, and simple integration.","pdf-to-word","2024-08-13T19:32:36.780Z","2026-09-18T21:52:33.924Z","2026-09-18T21:52:36.076Z","2024-09-03T05:00:00.000Z",2,"a4f0zj0w5po6sdzy5jb71usx",{"id":298,"name":299,"alternativeText":300,"caption":48,"width":236,"height":237,"formats":48,"hash":301,"ext":239,"mime":240,"size":302,"url":303,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":304,"updatedAt":305,"documentId":306,"publishedAt":247,"focalPoint":48},59,"pdf-to-word.svg","PDF file getting converted to a Microsoft Word file","pdf_to_word_78b075de3f",9.49,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_word_78b075de3f.svg","2024-08-13T19:23:27.864Z","2024-08-15T14:52:17.742Z","slo9j8s6cts7dw3ogm09o9z7",{"id":308,"name":309,"tool_page_desc":310,"new_tool":284,"pro_tool":124,"header_blurb":311,"tool_card_desc":312,"youtube_url":313,"why_section_title":314,"why_section_desc":315,"slug":316,"createdAt":317,"updatedAt":318,"publishedAt":319,"publish_date":294,"rank":320,"cloud_only":48,"documentId":321,"icon":322},131,"PDF to Excel","PDF to Excel is a REST API tool that converts PDF documents to Microsoft Excel spreadsheets to support advanced data analysis. This Pro Tool empowers developers to reliably extract tabular data from PDFs and transform it into editable Excel formats, facilitating powerful data manipulation, reporting, and visualization.\n\n## Key Benefits of PDF to Excel API\n- Streamline data analysis by extracting valuable tabular data from PDF documents directly into Excel spreadsheets, ready for formulas, macros, and charting.\n- Ensure high-quality conversion, maintaining accurate formatting and data integrity from the original PDF document to avoid common problems like data loss or compatibility issues.\n- Facilitate easy integration through a flexible and intuitive REST API, allowing you to seamlessly embed programmatic PDF to Excel conversions into any development project or workflow.\n- Automate the extraction of critical business data from invoices, reports, or scanned documents, eliminating manual data entry and reducing errors.\n- Support sophisticated business intelligence by converting static PDF data into dynamic Excel formats, enabling deeper insights and robust reporting.\n- Leverage a powerful Pro Tool to handle complex PDF structures and deliver reliable Excel output, crucial for enterprise-level data processing.","Convert PDF to Excel spreadsheet","Convert PDF documents to Microsoft Excel spreadsheets to edit and analyze data","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F60ydHSfzufM","Why is pdfRest the best API to convert PDF to Excel?","pdfRest offers the best solution for converting PDF documents to Excel spreadsheets, because it supports streamlined data analysis, high-quality conversion, and easy integration.","pdf-to-excel","2024-08-15T14:47:44.255Z","2026-09-18T21:52:48.323Z","2026-09-18T21:52:50.535Z",3,"wlr9iee95rhr5batrx3i4si0",{"id":323,"name":324,"alternativeText":325,"caption":48,"width":236,"height":237,"formats":48,"hash":326,"ext":239,"mime":240,"size":327,"url":328,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":329,"updatedAt":330,"documentId":331,"publishedAt":247,"focalPoint":48},60,"pdf-to-excel.svg","PDF file getting converted to a Microsoft Excel file","pdf_to_excel_a9a75e407e",8.98,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_excel_a9a75e407e.svg","2024-08-15T14:43:38.388Z","2024-08-15T14:51:01.713Z","eowt7jvwvyr946wgo8e4kp7o",{"id":333,"name":334,"tool_page_desc":335,"new_tool":284,"pro_tool":124,"header_blurb":336,"tool_card_desc":337,"youtube_url":338,"why_section_title":339,"why_section_desc":340,"slug":341,"createdAt":342,"updatedAt":343,"publishedAt":344,"publish_date":294,"rank":345,"cloud_only":48,"documentId":346,"icon":347},132,"PDF to PowerPoint","PDF to PowerPoint is a REST API tool that converts PDF documents into Microsoft PowerPoint files, enabling the creation of fully editable presentations. As a reliable PDF to PowerPoint converter, it transforms static PDF content into dynamic slides — making it ideal for enhancing presentation capabilities and streamlining document workflows. Developers looking for a fast PDF to PPT converter can automate the entire process with a single API call.\n\n## Key Benefits of PDF to PowerPoint API\n- Convert PDFs into editable PowerPoint presentations (.pptx) for easy modification of text, layouts, and multimedia integration.\n- Preserve original formatting and content, ensuring professional quality in converted slides.\n- Automate the PDF to PPT conversion process to seamlessly integrate into existing workflows, saving time and resources.\n- Utilize advanced conversion technology to ensure accurate and reliable transformation of PDFs into PowerPoint slides.\n- Empower users to create compelling presentations from existing PDFs, improving communication and engagement.\n- Reliably handle high-volume PDF to PPTX document conversion, supporting the needs of growing businesses and enterprises.","Convert PDF to PowerPoint","Convert PDF documents to adjustable Microsoft PowerPoint presentations","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F-EBpzsWki_Q","Why is pdfRest the best API to convert PDF to PowerPoint?","pdfRest offers the best solution for converting PDF documents to PowerPoint presentations, because it supports streamlined presentation creation, simple integration, and accurate results.","pdf-to-powerpoint","2024-08-15T14:56:52.093Z","2026-09-18T21:53:06.219Z","2026-09-18T21:53:07.824Z",4,"sscxdrv60vjwg8r290iihszl",{"id":348,"name":349,"alternativeText":350,"caption":48,"width":236,"height":237,"formats":48,"hash":351,"ext":239,"mime":240,"size":352,"url":353,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":354,"updatedAt":355,"documentId":356,"publishedAt":247,"focalPoint":48},61,"pdf-to-ppt.svg","PDF file getting converted to a Microsoft PowerPoint file","pdf_to_ppt_9a564fb6ab",9.3,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_ppt_9a564fb6ab.svg","2024-08-15T14:54:07.383Z","2024-08-15T14:54:15.261Z","c2c8b9r6pdfnvvjfm2dwnljx",{"id":88,"name":358,"tool_page_desc":359,"new_tool":284,"pro_tool":284,"header_blurb":360,"tool_card_desc":361,"youtube_url":362,"why_section_title":363,"why_section_desc":364,"slug":365,"createdAt":366,"updatedAt":367,"publishedAt":368,"publish_date":294,"rank":369,"cloud_only":48,"documentId":370,"icon":371},"Convert to PDF","Convert to PDF is a REST API tool that accepts a wide range of file types as input and reliably converts each into a standardized PDF document. It's designed to provide developers with robust, high-quality document conversion capabilities, ensuring seamless integration and consistent, compliant PDF output for diverse applications.\n## Key Benefits of Convert to PDF API\n- Support robust format conversion for Word, Excel, PowerPoint, images (JPEG, TIF, BMP, PNG), Email (.eml), PostScript, HTML, Markdown, plain text, JSON, XML, and CSV.\n- Generate standardized PDF documents optimized with high-quality Adobe® PDF Library™ technology, ensuring consistent and reliable compliance with PDF ISO 32000 specifications.\n- Create tagged PDF output from supported Office and structured-text input to support accessible document workflows and downstream processing.\n- Fine-tune file size, image quality, and page presentation with controls for compression, downsampling, page size, margins, orientation, HTML web layouts, and Adobe PDF settings files for PostScript conversion.\n- Generate styled PDFs from structured text with format-specific options for fonts, colors, headings, tables, JSON and XML views, and Markdown images.\n- Streamline content-standardization workflows by converting diverse source files into a consistent PDF format for sharing, review, and downstream processing.","Convert from many file formats to PDF","Easily convert Word, Excel, PowerPoint, BMP, TIF, PNG, JPG, Email, HTML, PostScript, Markdown, plain text, JSON, XML, and CSV files into PDF documents.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FL3s-VTvI6vs","Why is pdfRest the best API to convert files to PDF?","pdfRest's Convert to PDF API combines broad format support, reliable PDF output, and granular control over conversion results in a single REST API tool. It supports both traditional document conversion and PDF generation from structured content.","convert-to-pdf","2024-08-15T15:06:40.139Z","2026-09-18T21:53:40.811Z","2026-09-18T21:53:42.711Z",5,"huiyfjb1a34wtm4nlbivt0wb",{"id":372,"name":373,"alternativeText":374,"caption":48,"width":185,"height":375,"formats":48,"hash":376,"ext":239,"mime":240,"size":377,"url":378,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":379,"updatedAt":380,"documentId":381,"publishedAt":247,"focalPoint":48},62,"convert-to-pdf.svg","A file being converted to PDF",76,"convert_to_pdf_9b2c4de719",7.11,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fconvert_to_pdf_9b2c4de719.svg","2024-08-15T14:59:14.354Z","2024-08-15T14:59:34.643Z","ye3tiireuqsonvexan0kojen",{"id":92,"name":383,"tool_page_desc":384,"new_tool":284,"pro_tool":284,"header_blurb":385,"tool_card_desc":386,"youtube_url":387,"why_section_title":388,"why_section_desc":389,"slug":390,"createdAt":391,"updatedAt":392,"publishedAt":393,"publish_date":294,"rank":394,"cloud_only":48,"documentId":395,"icon":396},"Convert to PDF\u002FX","Convert to PDF\u002FX is a REST API tool designed to create print-ready PDFs using trusted Adobe technology. By converting to PDF\u002FX, developers can optimize PDFs for high-quality printing, ensuring compatibility with prepress print requirements.  \n## Key Benefits of Convert to PDF\u002FX API\n- Automate preflight workflows, eliminating the need for manual processing in Acrobat, Illustrator, or other software.\n- Standardize color profiles and embed fonts to ensure accurate color reproduction and prevent font substitution issues.\n- Guarantee consistent and reliable print quality compatible with any prepress pipeline.\n- Leverage PDF\u002FX-4 and PDF\u002FX-6 for advanced features tailored to modern printing requirements.\n- Ensure compatibility with older printing systems by flattening transparencies and adhering to PDF\u002FX-1a or PDF\u002FX-3.\n","Convert PDF to PDF\u002FX for print","Convert standard PDF files to several PDF\u002FX formats to meet prepress print requirements.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FpP01klfXVd4","Why is pdfRest the best API to convert PDF to PDF\u002FX?","pdfRest offers the best solution for converting PDF documents to PDF\u002FX specifications, because it uses the most reliable conversion technology, supports robust versions, and offers preflight conditional processing.","convert-to-pdfx","2024-08-15T15:13:57.477Z","2026-09-18T21:53:55.656Z","2026-09-18T21:53:57.440Z",6,"gxytllvknnromirdpb1uuy1o",{"id":397,"name":398,"alternativeText":383,"caption":48,"width":399,"height":400,"formats":48,"hash":401,"ext":239,"mime":240,"size":402,"url":403,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":404,"updatedAt":405,"documentId":406,"publishedAt":247,"focalPoint":48},63,"convert-to-pdfx.svg",69,84,"convert_to_pdfx_8c2592340a",5.89,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fconvert_to_pdfx_8c2592340a.svg","2024-08-15T15:08:51.316Z","2024-08-15T15:09:07.442Z","ashigwsibqd0okq1un5m2b6s",{"id":96,"name":408,"tool_page_desc":409,"new_tool":284,"pro_tool":284,"header_blurb":410,"tool_card_desc":411,"youtube_url":412,"why_section_title":413,"why_section_desc":414,"slug":415,"createdAt":416,"updatedAt":417,"publishedAt":418,"publish_date":294,"rank":419,"cloud_only":48,"documentId":420,"icon":421},"Convert to PDF\u002FA","Convert to PDF\u002FA is a REST API tool designed to transform standard PDF files into PDF\u002FA formats, ensuring long-term preservation and regulatory compliance with archival standards. This is essential for businesses and developers looking to optimize PDF files for archive, maintaining document integrity and accessibility over time.\n## Key Benefits of Convert to PDF\u002FA API\n- Convert PDFs to PDF\u002FA to meet stringent archival compliance requirements, ensuring your documents adhere to international standards for long-term preservation.\n- Preserve document integrity by embedding fonts and standardizing colors, preventing data loss and maintaining the original appearance of your files for effective archiving.\n- Ensure long-term accessibility by converting documents into a format specifically designed for digital archiving, ideal for legal, financial, and governmental records.\n- Automate the conversion process to enhance efficiency and reduce manual intervention, perfect for high-volume document management and archival workflows.\n- Leverage high-quality Adobe conversion technology that reliably conforms to the ISO 19005-2 specification for PDF\u002FA.\n- Choose from PDF\u002FA-1b, PDF\u002FA-2b, PDF\u002FA-2u, PDF\u002FA-3b, and PDF\u002FA-3u to match your specific compliance requirements.\n","Convert PDF to PDF\u002FA for archival","Convert PDFs to standard PDF\u002FA formats to ensure compliance and support long-term preservation of documents.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FiY6lrUe_F_E","Why is pdfRest the best API to convert PDF to PDF\u002FA?","pdfRest offers the best solution for converting PDF documents to PDF\u002FA specifications, because it supports top PDF\u002FA conformance, robust versions, and problemetic input files.","convert-to-pdfa","2024-08-15T15:23:18.767Z","2026-09-18T21:54:11.170Z","2026-09-18T21:54:12.958Z",7,"mgm5ociawaoqbymsete4ji84",{"id":422,"name":423,"alternativeText":408,"caption":48,"width":424,"height":400,"formats":48,"hash":425,"ext":239,"mime":240,"size":426,"url":427,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":428,"updatedAt":429,"documentId":430,"publishedAt":247,"focalPoint":48},64,"convert-to-pdfa.svg",70,"convert_to_pdfa_5dd041ead2",5.3,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fconvert_to_pdfa_5dd041ead2.svg","2024-08-15T15:16:54.979Z","2024-08-15T15:17:11.841Z","xm01vgrbliqyhegmbc64rgat",{"id":100,"name":432,"tool_page_desc":433,"new_tool":284,"pro_tool":284,"header_blurb":434,"tool_card_desc":435,"youtube_url":436,"why_section_title":437,"why_section_desc":438,"slug":439,"createdAt":440,"updatedAt":441,"publishedAt":442,"publish_date":294,"rank":209,"cloud_only":48,"documentId":443,"icon":444},"PDF to Images","PDF to Images is a REST API tool that accurately renders each page of a PDF document into a high-quality graphic image. Leveraging Adobe PDF rendering technology for unrivaled color management, this API empowers developers to automate the conversion process, making PDF content easily accessible for web display, digital previews, and streamlined publishing workflows.\n\n### Key Benefits of PDF to Images API\n\n- Convert PDF pages to images with pixel-perfect accuracy, preserving the original layout and aesthetic integrity for a consistent visual representation.\n- Generate high-quality thumbnails for document previews, search results, or digital asset management systems to improve user experience.\n- Support multiple image formats including JPEG, PNG, GIF, TIFF, and BMP, allowing you to choose the best format for your specific needs.\n- Control output image quality and resolution with customizable parameters like Resolution (DPI) and JPEG quality, giving you granular control over file size and visual fidelity.\n- Enhance security and data privacy by converting sensitive PDF content into flattened, uneditable images, and benefit from GDPR and HIPAA-compliant processing.\n- Streamline workflows by converting specific pages from a PDF using our one-to-many functionality to get a separate image file for each page with a single API call.","Render PDF pages to image formats","Convert PDFs to JPGs, BMPs, PNGs, GIFs, and TIFs, accurately preserving color fidelity.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FTBh3eHFO9MQ","Why is pdfRest the best API to convert PDF to image files?","pdfRest offers the best solution for converting PDF documents to graphic image files, because it supports unrivaled color management, images for each PDF page, and intuitive design.","pdf-to-images","2024-08-15T15:29:14.854Z","2026-09-18T21:54:36.510Z","2026-09-18T21:54:38.221Z","jr6zly7tchk0iz4zi8s4rlak",{"id":445,"name":446,"alternativeText":447,"caption":48,"width":185,"height":375,"formats":48,"hash":448,"ext":239,"mime":240,"size":449,"url":450,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":451,"updatedAt":452,"documentId":453,"publishedAt":247,"focalPoint":48},65,"pdf-to-images.svg","A PDF file converted to an image","pdf_to_images_e05f4809dc",12.31,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_images_e05f4809dc.svg","2024-08-15T15:25:48.244Z","2024-08-15T15:25:57.531Z","r40074mrrb7xv02yxzhzhnl3",{"id":127,"name":455,"tool_page_desc":456,"new_tool":124,"pro_tool":48,"header_blurb":457,"tool_card_desc":458,"youtube_url":48,"why_section_title":459,"why_section_desc":460,"slug":461,"createdAt":462,"updatedAt":463,"publishedAt":464,"publish_date":465,"rank":466,"cloud_only":48,"documentId":467,"icon":468},"PDF to PostScript","Convert PDF to PostScript is a REST API tool that creates downloadable PostScript files from PDF documents. Developers can select the PostScript language level, pages to export, binary-output behavior, scaling, rotation, shrink-to-fit behavior, and whether printable annotations are included.\n\n## Key Benefits of PDF to PostScript API\n\n- Convert PDF documents into PostScript Level 2 or Level 3 files through a REST API for print, prepress, and legacy production systems that depend on PostScript output.\n- Export an entire PDF or only the pages a workflow needs, helping publishing and production teams prepare targeted PostScript deliverables without manually splitting source files.\n- Choose binary PostScript for compact output or text-safe, 7-bit PostScript for downstream systems, transfer paths, or production environments with compatibility constraints.\n- Adjust scale, rotation, and shrink-to-fit behavior at conversion time to prepare page content for a target output process while preserving the original PDF.\n- Include or omit printable annotations so the generated PostScript reflects the intended production view, whether notes and markups should be carried forward or excluded.\n- Pair with Convert to PDF to support PDF refrying: a PDF -> PostScript -> PDF roundtrip used in certain print and prepress workflows to produce PostScript-based delivery derivatives.\n","Convert PDF to PostScript for print production workflows","Create reliable PostScript output from PDF files for print, prepress, and legacy production systems that depend on PostScript.","Why is pdfRest the best API to convert PDF to PostScript?","pdfRest offers the best solution for converting PDF documents to PostScript, because it combines Adobe technology, production-ready output controls, and a scalable API workflow for print, prepress, and legacy systems.","pdf-to-postscript","2026-09-03T22:03:17.782Z","2026-09-18T21:54:53.661Z","2026-09-18T21:54:55.450Z","2026-09-04T05:00:00.000Z",9,"pbcdzy62zeuvhhzt8g1ubs81",{"id":469,"name":470,"alternativeText":471,"caption":48,"width":185,"height":237,"formats":48,"hash":472,"ext":239,"mime":240,"size":473,"url":474,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":475,"updatedAt":476,"documentId":477,"publishedAt":475,"focalPoint":48},718,"pdf-to-postscript.svg","PDF to PostScript API Tool","pdf_to_postscript_dd764fea4c",11.28,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_postscript_dd764fea4c.svg","2026-09-03T21:04:21.005Z","2026-09-03T21:04:36.851Z","sqjhdfebkpd6e4hncpr0bao9",{"id":479,"name":480,"tool_page_desc":481,"new_tool":124,"pro_tool":124,"header_blurb":482,"tool_card_desc":483,"youtube_url":48,"why_section_title":484,"why_section_desc":485,"slug":486,"createdAt":487,"updatedAt":488,"publishedAt":489,"publish_date":230,"rank":5,"cloud_only":48,"documentId":490,"icon":491},129,"Create ZUGFeRD PDF","Build complete ZUGFeRD and Factur-X e-invoicing workflows with one API Tool. Generate a professional invoice PDF from structured XML, preserve an existing branded PDF when its contents match the invoice data, regenerate it when they do not, and independently validate the finished hybrid invoice.\n## Key Benefits of Create ZUGFeRD PDF API\n\n- Generate complete ZUGFeRD or Factur-X hybrid invoices from CII XML, including a visual PDF, embedded XML attachment, required metadata, and PDF\u002FA-3 packaging.\n- Combine an existing invoice PDF with XML data and identify concrete discrepancies before completing the hybrid invoice for delivery, archival, or automated processing.\n- Regenerate the visual invoice from canonical XML whenever supplied PDF content conflicts with the XML or cannot be confidently confirmed by validation.\n- Validate existing ZUGFeRD and Factur-X PDFs without modifying them, checking XML business rules, PDF\u002FA-3 status, attachment relationships, metadata, and package structure.\n- Support MINIMUM, BASIC WL, BASIC, and EN 16931 profiles for ZUGFeRD 2.5.2 and Factur-X 1.09.2, helping meet current German and French e-invoicing needs.\n- Customize XML-generated invoices with logos, regular and bold fonts, language, regional formats, currency display, colors, decimal precision, and footer messaging.\n- Upload invoice files directly or reuse pdfRest resource IDs from prior operations to build efficient, fully automated e-invoicing workflows at any scale.","Create & validate ZUGFeRD \u002F Factur-X","Create and validate ZUGFeRD and Factur-X e-invoices from XML or PDF files with embedded CII data and PDF\u002FA-3 conformance.","Why is pdfRest the best API for creating and validating ZUGFeRD and Factur-X invoices?","pdfRest offers the best ZUGFeRD and Factur-X solution because it provides one API workflow to create compliant hybrid invoices, preserve or regenerate PDF visuals from canonical CII XML, and validate the completed PDF\u002FA-3 package end to end.","create-zugferd-pdf","2026-09-17T22:16:25.187Z","2026-09-18T21:49:10.411Z","2026-09-18T21:49:12.227Z","fq5lkw4282h9m15mefvekyct",{"id":492,"name":493,"alternativeText":494,"caption":495,"width":496,"height":237,"formats":48,"hash":497,"ext":239,"mime":240,"size":498,"url":499,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":500,"updatedAt":501,"documentId":502,"publishedAt":500,"focalPoint":48},719,"create-zugferd-pdf.svg","Create ZUGFeRD PDF API Tool","",68,"create_zugferd_pdf_c820e83b06",12.06,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fcreate_zugferd_pdf_c820e83b06.svg","2026-09-17T21:39:06.559Z","2026-09-17T21:39:31.101Z","x1mb3q9x8n1wyd3u4k4ksl9z",{"id":295,"name":504,"description":505,"createdAt":506,"updatedAt":507,"publishedAt":508,"rank":295,"documentId":509,"api_tools":510},"Optimize","Enhance PDFs for their intended usage with tools that target specific improvements","2024-08-13T18:39:31.653Z","2025-09-29T20:41:41.021Z","2024-08-13T18:39:33.336Z","nkqykatf69qbewfjcszxzcmy",[511,534,556,577,597,620,641],{"id":209,"name":512,"tool_page_desc":513,"new_tool":284,"pro_tool":284,"header_blurb":514,"tool_card_desc":515,"youtube_url":516,"why_section_title":517,"why_section_desc":518,"slug":519,"createdAt":520,"updatedAt":521,"publishedAt":522,"publish_date":294,"rank":48,"cloud_only":48,"documentId":523,"icon":524},"Compress PDF","Compress PDF is a REST API tool designed to significantly reduce PDF file sizes while maintaining the integrity of the document's content. Developers can automate the compression process, ensuring efficient file size reduction without compromising quality or altering the original layout.\n## Key Benefits of Compress PDF API\n- Maximize file size reduction to optimize storage and improve file transfer speeds, making large PDFs more manageable.\n- Preserve document quality by maintaining text clarity and image fidelity, ensuring compressed files remain professional and readable.\n- Enhance email deliverability by reducing PDF sizes to meet email attachment limits, facilitating seamless communication.\n- Streamline document management by integrating compressed PDFs into existing workflows, reducing storage costs and improving accessibility.\n- Support compliance and archiving by compressing PDFs for long-term storage without losing critical information or metadata.\n- Meet regulatory compliance and document submission limits, ensuring that documents adhere to industry standards and legal requirements.","Reduce file size, preserve quality","Minimize PDF file sizes while preserving content quality to speed up document transfers and reduce storage costs.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002Fe_dOeGPaG34","Why is pdfRest the best API to compress PDF file size?","pdfRest offers the best solution for compressing PDF documents, because it supports unmatched file size reduction, a simple interface, and gold-standard technology.","compress-pdf","2024-08-15T15:35:48.591Z","2026-07-10T19:44:46.607Z","2024-08-15T15:36:17.475Z","m9un0zvkqqs2lskskm5xbop6",{"id":525,"name":526,"alternativeText":512,"caption":48,"width":527,"height":375,"formats":48,"hash":528,"ext":239,"mime":240,"size":529,"url":530,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":531,"updatedAt":532,"documentId":533,"publishedAt":247,"focalPoint":48},66,"compress-pdf.svg",110,"compress_pdf_afacc9bd77",7.48,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fcompress_pdf_afacc9bd77.svg","2024-08-15T15:31:48.881Z","2024-08-15T15:32:06.178Z","u1o60almx8mpbn35gcls0tor",{"id":466,"name":535,"tool_page_desc":536,"new_tool":284,"pro_tool":284,"header_blurb":537,"tool_card_desc":538,"youtube_url":48,"why_section_title":539,"why_section_desc":540,"slug":541,"createdAt":542,"updatedAt":543,"publishedAt":544,"publish_date":294,"rank":48,"cloud_only":48,"documentId":545,"icon":546},"Linearize PDF","Linearize PDF is a REST API tool that optimizes a PDF file for quick online viewing, often called 'Fast Web View', significantly improving user experience when documents are streamed over a network connection. Developers can use this tool to ensure PDFs are web-optimized, allowing content to load progressively in web browsers without waiting for the entire file to download.\n## Key Benefits of Linearize PDF API\n- Optimize for Fast Web View by restructuring PDF content, enabling pages to display quickly in web viewers even before the entire document is loaded.\n- Improve user experience by providing instant access to PDF content online, reducing wait times and enhancing engagement with your documents.\n- Ensure reliable PDF linearization using the same underlying technology that powers Adobe® Acrobat™, guaranteeing proper optimization from the start.\n- Streamline application with a simple process that requires minimal input, allowing you to easily prepare documents for the best possible online viewing experience.\n- Facilitate easy web app integration as a REST API tool, making it ideally suited for optimizing PDFs intended to be served over any network connection, regardless of your tech stack.\n- Reduce bandwidth usage and server load by enabling efficient, byte-serving delivery of PDF content for online viewing.","Optimize for fast web viewing","Apply linearization to PDFs to support a quick online viewing experience with Fast Web View.","Why is pdfRest the best API to linearize PDF?","pdfRest offers the best solution for linearizing PDF documents, because it supports Fast Web View, simple application, and easy integration.","linearize-pdf","2024-08-15T15:41:29.665Z","2026-07-10T19:45:12.986Z","2024-08-15T15:41:31.843Z","t0uoic69wkk6yuud1tub0gqd",{"id":547,"name":548,"alternativeText":535,"caption":48,"width":348,"height":549,"formats":48,"hash":550,"ext":239,"mime":240,"size":551,"url":552,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":553,"updatedAt":554,"documentId":555,"publishedAt":247,"focalPoint":48},67,"linearize.svg",90,"linearize_586cd2c3a6",5.27,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Flinearize_586cd2c3a6.svg","2024-08-15T15:36:47.868Z","2024-08-15T15:37:10.641Z","u1zpcivoj3og13n61bkclmyu",{"id":557,"name":558,"tool_page_desc":559,"new_tool":284,"pro_tool":284,"header_blurb":560,"tool_card_desc":561,"youtube_url":48,"why_section_title":562,"why_section_desc":563,"slug":564,"createdAt":565,"updatedAt":566,"publishedAt":567,"publish_date":294,"rank":48,"cloud_only":48,"documentId":568,"icon":569},10,"Flatten Transparencies","Flatten Transparencies is a REST API tool that renders and replaces all transparent objects in a PDF with opaque colors. This process increases RIP speed in a prepress workflow and supports conversion to other file formats.  \n## Key Benefits of Flatten Transparencies API\n- Automate transparency flattening to streamline prepress workflows, reducing the need for manual adjustments.\n- Convert transparent objects to opaque colors to increase the speed of raster image processing (RIP), optimizing for print.\n- Flatten transparencies to ensure your PDFs are compatible with a wide range of printing systems and file formats.\n- Eliminate transparency issues and guarantee consistent visual document appearance across printing environments.\n- Ensure compatibility with older printing systems that do not support transparency for reliable print-ready PDFs.","Optimize for print and compatibility","Flatten all transparent objects in a PDF to increase RIP speed in a prepress workflow and support conversion to other file formats.","Why use our version of Flatten Transparencies?","pdfRest is the best API to flatten PDF transparencies because it offers unmatched color accuracy, maximum compatibility, and reliable printing, all powered by Adobe's industry-leading technology.","flatten-transparencies","2024-08-15T15:47:27.619Z","2026-07-10T19:45:42.226Z","2024-08-15T15:47:31.348Z","ng1iuah17kwp3ojabadgq7nr",{"id":496,"name":570,"alternativeText":558,"caption":48,"width":281,"height":375,"formats":48,"hash":571,"ext":239,"mime":240,"size":572,"url":573,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":574,"updatedAt":575,"documentId":576,"publishedAt":247,"focalPoint":48},"flatten-transparencies.svg","flatten_transparencies_a85de628b2",3.07,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fflatten_transparencies_a85de628b2.svg","2024-08-15T15:42:37.863Z","2024-08-15T15:42:42.649Z","p30iwcgolky9ywhenno1ek71",{"id":578,"name":579,"tool_page_desc":580,"new_tool":284,"pro_tool":284,"header_blurb":581,"tool_card_desc":582,"youtube_url":48,"why_section_title":583,"why_section_desc":584,"slug":585,"createdAt":586,"updatedAt":587,"publishedAt":588,"publish_date":294,"rank":48,"cloud_only":48,"documentId":589,"icon":590},12,"Flatten Layers","Flatten Layers is a REST API Tool that collapses all PDF content spread across multiple document layers into one layer of page content. This tool is designed to help developers simplify PDF documents, enhance compatibility, and optimize files for reliable printing and distribution by consolidating complex layered structures.\n## Key Benefits of Flatten Layers API\n- Reduce file complexity by consolidating content from multiple PDF layers into a single, unified page content layer, simplifying document structure for downstream workflows.\n- Prepare PDFs for print reliably by optimizing document content and reducing potential rendering issues associated with layered files, ensuring consistent output.\n- Streamline integration with existing systems by providing a simplified PDF structure that is more universally compatible with various viewers and processing tools.\n- Ensure consistent content display by eliminating the variable visibility of layers, making all content permanently visible for archiving and sharing.\n- Leverage tried-and-true Adobe® technology, which has supported enterprise print operations for decades, guaranteeing reliable optimization of PDF documents.\n- Automate the process of flattening PDF layers, allowing you to achieve optimized files for distribution without needing to delve into the nuances of the PDF file format.","Collapse multiple layers into one","Collapse all content from separate PDF layers onto a single layer of page content.","Why is pdfRest the best API to flatten PDF layers?","pdfRest offers the best solution for flattening PDF layers, because it reduces file complexity, prepares PDFs for print, and streamlines integration.","flatten-layers","2024-08-15T15:58:45.651Z","2026-07-10T19:46:17.474Z","2024-08-15T15:58:47.165Z","lbnvreecu8vz84adatcd4mn8",{"id":424,"name":591,"alternativeText":579,"caption":48,"width":479,"height":237,"formats":48,"hash":592,"ext":239,"mime":240,"size":302,"url":593,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":594,"updatedAt":595,"documentId":596,"publishedAt":247,"focalPoint":48},"flatten-layers.svg","flatten_layers_b3faeefdc7","https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fflatten_layers_b3faeefdc7.svg","2024-08-15T15:52:23.596Z","2024-08-15T15:52:34.368Z","fawqvb0l1mmihshvsnipgwx8",{"id":598,"name":599,"tool_page_desc":600,"new_tool":284,"pro_tool":284,"header_blurb":601,"tool_card_desc":602,"youtube_url":603,"why_section_title":604,"why_section_desc":605,"slug":606,"createdAt":607,"updatedAt":608,"publishedAt":609,"publish_date":610,"rank":48,"cloud_only":48,"documentId":611,"icon":612},13,"Convert PDF Colors","Convert PDF Colors is a REST API tool offering precise control over the color scheme of any PDF document. Adjust the colors of text and images across the entire file using custom ICC profiles or choose from a library of print, screen, web, and grayscale presets.\n\n## Key Benefits of Convert PDF Colors API\n- Convert PDF from RGB to CMYK to achieve consistent color output for print, ensuring accurate colors across substrates.\n- Convert PDF from CMYK to RGB to optimize colors for web display, ensuring accurate representation across screens.\n- Convert color PDF to black and white to prepare for printing on B&W printers and to reduce file size for document archival.\n- Achieve accurate color reproduction through custom ICC profiles and pre-defined color spaces.\n- Maintain color fidelity for digital publications, such as eBooks and online magazines or newsletters.\n","Change a PDF's Color Profile","Change a PDF's color profile to optimize for print, screen, grayscale, or custom needs.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FQ0RdR20pZuw","Why is pdfRest the best API to convert PDF Colors?","pdfRest offers the best solution for converting PDF colors, because it offers unmatched control, flexible color space transformations, and efficient preset profiles.","convert-pdf-colors","2024-08-15T16:02:17.972Z","2026-07-10T19:44:21.681Z","2024-08-15T16:08:59.950Z","2024-09-02T05:00:00.000Z","avlqefgbhfhkc269xjadqa4v",{"id":219,"name":613,"alternativeText":599,"caption":48,"width":185,"height":375,"formats":48,"hash":614,"ext":239,"mime":240,"size":615,"url":616,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":617,"updatedAt":618,"documentId":619,"publishedAt":247,"focalPoint":48},"convert-pdf-colors.svg","convert_pdf_colors_ec3097ec4d",2.4,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fconvert_pdf_colors_ec3097ec4d.svg","2024-08-15T16:01:18.268Z","2024-08-15T16:01:38.455Z","lt8xaq9ltwf761uc6ldbi6dz",{"id":621,"name":622,"tool_page_desc":623,"new_tool":284,"pro_tool":284,"header_blurb":624,"tool_card_desc":625,"youtube_url":48,"why_section_title":626,"why_section_desc":627,"slug":628,"createdAt":629,"updatedAt":630,"publishedAt":631,"publish_date":294,"rank":48,"cloud_only":48,"documentId":632,"icon":633},11,"Flatten Annotations","Flatten Annotations is a REST API tool that collapses annotation appearances into page content and makes them no longer editable. It's designed to provide developers with precise control over document finalization, ensuring PDF annotations display consistently across all viewers and platforms while safeguarding against unintended modifications.\n## Key Benefits of Flatten Annotations API\n- Maximize compatibility by converting diverse PDF annotation types into standard page content, ensuring universal display across all PDF viewers and processing tools.\n- Lock in feedback by preserving highlights, comments, and shapes directly into the document's content layer, preventing further editing or accidental changes to critical review notes.\n- Remove hidden comments and associated metadata from annotations, effectively sanitizing the PDF to ensure only visible content remains, enhancing document security and privacy.\n- Streamline document workflows by creating definitive versions of PDFs with finalized annotations, ideal for archiving, distribution, or legal purposes.\n- Enhance document integrity by making all annotation appearances permanent, crucial for audit trails and compliance requirements.\n- Automate the preparation of PDFs for consistent viewing and printing, eliminating rendering inconsistencies often associated with dynamic annotations.","Collapse annotations into page content","Flatten all annotations in a PDF to collapse their appearances into page content and make them uneditable.","Why is pdfRest the best API to flatten PDF annotations?","pdfRest offers the best solution for flattening PDF annotations, because it maximizes compatibility, locks in feedback, and removes hidden comments.","flatten-annotations","2024-08-15T15:51:16.262Z","2026-07-10T19:47:03.359Z","2024-08-15T15:51:18.393Z","d52bv2j55eom32tfy8kt8j96",{"id":399,"name":634,"alternativeText":622,"caption":48,"width":308,"height":298,"formats":48,"hash":635,"ext":239,"mime":240,"size":636,"url":637,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":638,"updatedAt":639,"documentId":640,"publishedAt":247,"focalPoint":48},"flatten-annotations.svg","flatten_annotations_3fb78bfe4a",3.94,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fflatten_annotations_3fb78bfe4a.svg","2024-08-15T15:48:27.679Z","2024-08-15T15:48:31.189Z","rxzqs31gaxrv2skv65v5pe1u",{"id":642,"name":643,"tool_page_desc":644,"new_tool":284,"pro_tool":48,"header_blurb":645,"tool_card_desc":646,"youtube_url":48,"why_section_title":647,"why_section_desc":648,"slug":649,"createdAt":650,"updatedAt":651,"publishedAt":652,"publish_date":653,"rank":48,"cloud_only":48,"documentId":654,"icon":655},31,"Rasterize PDF","Rasterize PDF is a REST API tool that converts each page of a PDF into a rasterized image, a process fundamental to computer graphics, where vector content and text are translated into individual pixels on a 2D plane. The result is a PDF document where all pages are flattened for consistent rendering and printing across every device and platform.\n## Key Benefits of Rasterize PDF API\n- Ensure your PDF files display consistently across all platforms and devices by flattening complex elements into raster images.\n- Rasterization removes dependencies on fonts and other error-prone vector elements, ensuring all content is printed as intended.\n- Protect sensitive information by preventing text extraction and editing, as the content is converted into images.\n- Simplify document storage by creating a uniform format that is less susceptible to rendering issues over time.\n- Maintain the visual integrity of your documents across applications, providing a reliable solution for both digital and print media.\n","Flatten PDF pages to images","Convert each page of a PDF into a rasterized image for consistent rendering and printing.","Why is pdfRest the best API for PDF rasterization?","pdfRest offers the best solution for rasterizing PDF files, because it effectively simplifies printing, ensures consistent rendering, and supports document security.","rasterize-pdf","2025-01-22T21:59:58.706Z","2026-07-10T19:43:48.162Z","2025-01-24T20:50:15.285Z","2024-08-28T05:00:00.000Z","dvnc330jxfwehq9qnkebwqm7",{"id":656,"name":657,"alternativeText":643,"caption":48,"width":445,"height":658,"formats":48,"hash":659,"ext":239,"mime":240,"size":660,"url":661,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":662,"updatedAt":662,"documentId":663,"publishedAt":247,"focalPoint":48},270,"rasterize-pdf.svg",82,"rasterize_pdf_f334fd5734",4.79,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Frasterize_pdf_f334fd5734.svg","2025-01-22T22:01:13.748Z","yq24filwmrn8k0xv2si6mum4",{"id":394,"name":665,"description":666,"createdAt":667,"updatedAt":668,"publishedAt":669,"rank":320,"documentId":670,"api_tools":671},"Secure","Protect your documents and data with this suite of tools to enhance security","2024-08-13T18:40:42.072Z","2025-09-29T20:41:52.950Z","2024-08-13T18:40:43.271Z","zeflmr4447tbe0fht5vd2rpi",[672,695,718,741,766,788],{"id":673,"name":674,"tool_page_desc":675,"new_tool":284,"pro_tool":284,"header_blurb":676,"tool_card_desc":677,"youtube_url":678,"why_section_title":679,"why_section_desc":680,"slug":681,"createdAt":682,"updatedAt":683,"publishedAt":684,"publish_date":294,"rank":295,"cloud_only":48,"documentId":685,"icon":686},23,"Watermark PDF","The Watermark PDF API is a powerful tool for adding either a text-based or image-based watermark to a PDF. This API offers a high degree of customization, giving you precise control over the watermark's appearance, including font, size, color, opacity, rotation, and positioning. It's an effective way to communicate a document's status, enforce intellectual property rights, or apply branding.\n\n### Key Benefits of Watermark PDF API\n\n* Add text or image watermarks with full control over their style and placement, including the ability to use a PDF as the source for an image watermark.\n* Control the watermark's appearance with extensive customization options, including an extensive font list, adjustable text size, and both RGB and CMYK color support.\n* Customize positioning and rotation using x and y offsets and a rotation parameter to place your watermark exactly where you need it on the page.\n* Optionally place watermarks behind page content, allowing for subtle security or branding that doesn't obstruct the document's main text and images.\n* Apply watermarks to specific pages or ranges within a document, giving you granular control over which pages receive the watermark.\n* Automate document security and branding by adding \"Confidential\" or \"Draft\" labels, copyright notices, or company logos at scale.","Apply a text or image watermark to PDF","Apply a watermark to all pages of a PDF using either text or an image.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FPuutAS2GWBg","Why is pdfRest the best API to watermark PDF?","pdfRest offers the best solution for watermarking PDF documents, because it supports both text and images, full customization, and an extensive font list.","watermark-pdf","2024-08-15T17:08:26.262Z","2026-07-10T21:35:13.859Z","2024-08-15T17:15:38.047Z","ggaguunbgs7zd97q3jzn8rpb",{"id":687,"name":688,"alternativeText":674,"caption":48,"width":298,"height":237,"formats":48,"hash":689,"ext":239,"mime":240,"size":690,"url":691,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":692,"updatedAt":693,"documentId":694,"publishedAt":247,"focalPoint":48},81,"watermarked-pdf.svg","watermarked_pdf_b261147f0a",6.15,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fwatermarked_pdf_b261147f0a.svg","2024-08-15T17:04:59.298Z","2024-08-15T17:08:04.390Z","sbbdvq5o7olh057k1k8m5qda",{"id":696,"name":697,"tool_page_desc":698,"new_tool":284,"pro_tool":284,"header_blurb":699,"tool_card_desc":700,"youtube_url":701,"why_section_title":702,"why_section_desc":703,"slug":704,"createdAt":705,"updatedAt":706,"publishedAt":707,"publish_date":294,"rank":295,"cloud_only":48,"documentId":708,"icon":709},24,"Encrypt PDF","Encrypt PDF is a REST API tool that securely encrypts and protects all of the content within a PDF document, requiring the viewer to enter a password to access the contents of a document. This tool empowers developers to implement robust PDF security workflows, safeguarding sensitive information and controlling document access programmatically.\n## Key Benefits of Encrypt PDF API\n- Automate security workflows by seamlessly integrating password protection into your document lifecycle, ensuring sensitive information is always secure.\n- Apply industry-leading encryption with AES 256-bit encryption technology, providing robust security that is virtually impenetrable from brute-force attacks.\n- Manage PDF access by easily setting or changing passwords for documents, or even completely removing existing encryption when authorized.\n- Convert various document types into encrypted PDFs for secure archiving, maintaining confidentiality and compliance standards.\n- Create secure document workflows by chaining API requests to encrypt PDFs after conversion or other transformations, enhancing overall data protection.\n- Leverage Adobe® PDF Library™ technology for reliable and secure encryption, trusted by professionals worldwide for robust document security.","Add a required password to open a PDF","Secure PDFs with impenetrable encryption and require a password for viewers to open encrypted documents.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FDU0wNxyHXDE","Why is pdfRest the best API to encrypt PDF with password?","pdfRest offers the best solution for encrypting PDF documents with a password, because it supports automated security workflows, removing and changing passwords, and secure AES 256-bit encryption technology.","encrypt-pdf","2024-08-15T17:19:17.502Z","2026-07-10T21:35:34.953Z","2024-08-15T17:21:09.781Z","wxulzpesdvjxbvkofjdyawod",{"id":658,"name":710,"alternativeText":711,"caption":48,"width":397,"height":658,"formats":48,"hash":712,"ext":239,"mime":240,"size":713,"url":714,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":715,"updatedAt":716,"documentId":717,"publishedAt":247,"focalPoint":48},"encrypt-pdf.svg","Encrypt PDF icon showing a PDF document with a padlock in front of it.","encrypt_pdf_ffb93383d4",4.47,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fencrypt_pdf_ffb93383d4.svg","2024-08-15T17:17:02.629Z","2024-08-15T17:17:46.553Z","zaonbfjm3tvd5y9r2knq1kaz",{"id":719,"name":720,"tool_page_desc":721,"new_tool":284,"pro_tool":284,"header_blurb":722,"tool_card_desc":723,"youtube_url":724,"why_section_title":725,"why_section_desc":726,"slug":727,"createdAt":728,"updatedAt":729,"publishedAt":730,"publish_date":294,"rank":295,"cloud_only":48,"documentId":731,"icon":732},25,"Restrict PDF","Restrict PDF is a REST API tool that acts as a powerful security measure, applying usage restrictions to a document to limit how viewers can interact with the content. Developers can use a permissions password to forbid actions like printing, copying text, or editing, ensuring sensitive or confidential information remains secure. With the flexibility to add, modify, or remove restrictions, this tool simplifies document security workflows for legal, financial, and other privacy-sensitive applications.\n\n### Key Benefits of Restrict PDF API\n\n- Secure sensitive documents by preventing unauthorized actions like printing, editing content, or adding annotations, ensuring confidentiality and integrity.\n- Control user permissions for a document by applying a permissions password to a new or existing file, even one that is already secured with an open password.\n- Automate security workflows for confidential documents, such as legal contracts or internal reports, to streamline secure distribution to clients or partners.\n- Support advanced restriction settings, including the ability to differentiate between high- and low-resolution printing, providing granular control over document usage.\n- Remove existing restrictions using the dedicated \u002Funrestricted-pdf endpoint, allowing you to easily update security settings as your document's purpose or audience changes.\n- Ensure best-practice security with a tool powered by the Adobe PDF Library, offering top-quality security features and advanced restriction modification.","Limit what viewers can do with a PDF","Set restrictions on a PDF to limit how users can interact with the document, such as printing, editing, or extracting text and images.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FFrKGEI0hSEs","Why is pdfRest the best API to apply restrictions to PDF?","pdfRest offers the best solution for restricting PDF documents with a permissions password, because it supports advanced restriction modification, top quality security, and flexible restriction options.","restrict-pdf","2024-08-15T17:23:57.456Z","2026-07-10T21:36:04.906Z","2024-08-15T17:26:16.673Z","tvk1jhgf95ki7zec9zn2nmae",{"id":733,"name":734,"alternativeText":720,"caption":48,"width":424,"height":400,"formats":48,"hash":735,"ext":239,"mime":240,"size":736,"url":737,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":738,"updatedAt":739,"documentId":740,"publishedAt":247,"focalPoint":48},83,"restrict-pdf.svg","restrict_pdf_444762b050",4.37,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Frestrict_pdf_444762b050.svg","2024-08-15T17:22:21.890Z","2024-08-15T17:22:34.852Z","ykrmuyqt8rqbf6mao9zu5cmo",{"id":742,"name":743,"tool_page_desc":744,"new_tool":284,"pro_tool":124,"header_blurb":745,"tool_card_desc":746,"youtube_url":48,"why_section_title":747,"why_section_desc":748,"slug":749,"createdAt":750,"updatedAt":751,"publishedAt":752,"publish_date":753,"rank":48,"cloud_only":48,"documentId":754,"icon":755},36,"Sign PDF","Sign PDF is a REST API tool for programmatically applying digital signatures to PDF documents using PFX or certificate credentials to embed cryptographically secure signatures. These digital signatures inherently include electronic signature elements, allowing for customized visual appearances with typed text or image files for hand-drawn signatures or logos.\n### Key Benefits of Sign PDF API\n- Programmatically apply signatures to accelerate document processing.\n- Embed cryptographically secure digital signatures using your credentials, enhancing document integrity.\n- Add visual signatures from typed text or image files (e.g., hand-drawn, logos) with customizable appearances.\n- Apply accepted electronic and digital signature formats to meet industry requirements.\n- Programmatically add consistent, professional visual signatures for strong brand identity.\n- Integrate PDF signing capabilities effortlessly into applications using a flexible REST API.","Apply digital signatures","Apply digital signatures to PDFs, securing document authenticity and integrity.","Why is pdfRest the best API to digitally sign PDFs?","pdfRest offers the best API for digitally signing PDFs, because it applies robust, cryptographically-backed digital signatures, enables flexible electronic signature appearances, and empowers critical high-volume, compliance-driven use cases.","sign-pdf","2025-07-18T14:28:15.145Z","2026-07-10T21:34:24.963Z","2025-07-18T21:23:24.704Z","2023-07-11T05:00:00.000Z","fum794n7do1p6893xcg28m1v",{"id":756,"name":757,"alternativeText":758,"caption":48,"width":759,"height":375,"formats":48,"hash":760,"ext":239,"mime":240,"size":761,"url":762,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":763,"updatedAt":764,"documentId":765,"publishedAt":247,"focalPoint":48},424,"sign-pdf.svg","Sign PDF API Tool",79,"sign_pdf_3ffd97fd2e",7.56,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fsign_pdf_3ffd97fd2e.svg","2025-07-18T15:22:16.194Z","2025-07-18T15:22:27.233Z","o4u8tky2zammruoqmpctd8t6",{"id":767,"name":768,"tool_page_desc":769,"new_tool":284,"pro_tool":124,"header_blurb":770,"tool_card_desc":771,"youtube_url":48,"why_section_title":772,"why_section_desc":773,"slug":774,"createdAt":775,"updatedAt":776,"publishedAt":777,"publish_date":778,"rank":48,"cloud_only":48,"documentId":779,"icon":780},37,"Redact PDF","Redact PDF is a REST API tool designed to securely remove sensitive information from PDF documents, ensuring privacy and compliance with data protection regulations. This automated PDF redaction solution is ideal for businesses looking to safeguard confidential data and optimize document workflows.\n## Key Benefits of Redact PDF API\n- Redact PDF documents by targeting specific text or using custom regular expressions to detect and sanitize PII, financial data, and other sensitive content.\n- Use built-in redaction presets to instantly identify and redact common patterns like phone numbers, email addresses, and URLs.\n- Comply with data protection laws such as GDPR, HIPAA, and CCPA by securely redacting personal and regulated data.\n- Redact PDF files automatically with custom rules or text matches to remove sensitive information at scale.\n- Automate the redaction and sanitization process to enhance workflow efficiency and reduce manual intervention, perfect for high-volume document processing.\n- Enhance data security by ensuring that redacted and sanitized information is permanently removed, safeguarding against unauthorized access and data breaches.","Securely remove sensitive data","Securely remove sensitive data from PDFs to protect privacy, ensure compliance, and prevent unauthorized information disclosure.","Why is pdfRest the best API to redact PDF text?","pdfRest offers the best solution for redacting PDF documents, because it combines trusted Adobe technology, flexible automation options, and advanced data sanitization for compliance.","redact-pdf-api","2025-04-23T18:39:53.179Z","2026-07-10T21:34:49.080Z","2025-08-27T20:16:49.335Z","2023-08-09T05:00:00.000Z","r06b2atyfz0w4lfz3j6kziu5",{"id":781,"name":782,"alternativeText":768,"caption":48,"width":348,"height":375,"formats":48,"hash":783,"ext":239,"mime":240,"size":784,"url":785,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":786,"updatedAt":786,"documentId":787,"publishedAt":247,"focalPoint":48},357,"redact-pdf.svg","redact_pdf_6dd37af9bd",4.36,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fredact_pdf_6dd37af9bd.svg","2025-04-23T19:10:30.691Z","yqm2nlyhxhl3lwx2z1jty2kx",{"id":789,"name":790,"tool_page_desc":791,"new_tool":124,"pro_tool":284,"header_blurb":792,"tool_card_desc":793,"youtube_url":48,"why_section_title":794,"why_section_desc":795,"slug":796,"createdAt":227,"updatedAt":797,"publishedAt":798,"publish_date":799,"rank":320,"cloud_only":284,"documentId":800,"icon":801},74,"TDM Reserve PDF","TDM Reserve PDF is a REST API tool that applies machine-readable TDMRep metadata to your documents to formally reserve your rights against unauthorized automated processing. Designed to support the W3C TDM Reservation Protocol, this tool enables content owners to clearly state their Text and Data Mining (TDM) policy, ensuring compliance with the EU CDSM Directive Article 4 and providing a standardized signal to AI crawlers and scrapers.\n## Key Benefits of TDM Reserve PDF API\n- Apply machine-readable \"opt-out\" signals to your PDF files to protect your intellectual property from unauthorized AI model training and automated data mining.\n- Ensure your digital assets comply with the EU Copyright in the Digital Single Market (CDSM) Directive by asserting TDM reservation rights as required by Article 4.\n- Use the policy parameter to embed a URL or custom string that directs scrapers and crawlers to your specific terms of use and mining restrictions.\n- Leverage the standardized W3C TDM Reservation Protocol (TDMRep) to ensure your document's protection is recognizable by modern, compliant web technologies.\n- Add a critical layer of security to your publishing pipeline by automatically injecting reservation metadata into every PDF before it is distributed or hosted online.\n- Protect your content with a simple, single-call API integration that eliminates the need for manual metadata editing or complex PDF internal restructuring.","Protect PDFs from AI mining","Protect PDFs from AI text and data mining by applying standardized TDM reservation metadata.","Why is pdfRest the best API to apply TDM reservations?","pdfRest offers the best solution for TDM reservations because it guarantees EU CDSM compliance, reliably injects machine-readable metadata, and provides straightforward, developer-focused policy controls.","tdm-reserve-pdf","2026-07-10T21:36:27.235Z","2026-04-24T19:36:26.165Z","2026-04-24T05:00:00.000Z","jt8jle4hq2ut9i3vp32pxd37",{"id":802,"name":803,"alternativeText":790,"caption":48,"width":399,"height":400,"formats":48,"hash":804,"ext":239,"mime":240,"size":805,"url":806,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":807,"updatedAt":808,"documentId":809,"publishedAt":247,"focalPoint":48},692,"tdm-reservation.svg","tdm_reservation_589def3185",6.5,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Ftdm_reservation_589def3185.svg","2026-04-23T22:07:23.048Z","2026-04-23T22:07:33.861Z","yq84fc8cbpz69ec1kuob2i1z",{"id":369,"name":811,"description":812,"createdAt":813,"updatedAt":814,"publishedAt":815,"rank":345,"documentId":816,"api_tools":817},"Extract","Extract text, data, images, and document details to collect information and drive conditional logic","2024-08-13T18:40:26.128Z","2025-09-29T20:42:02.887Z","2024-08-13T18:40:27.423Z","ddvn9rnnkkfe8n73trswzl87",[818,842,865,888,909],{"id":819,"name":820,"tool_page_desc":821,"new_tool":284,"pro_tool":124,"header_blurb":822,"tool_card_desc":823,"youtube_url":824,"why_section_title":825,"why_section_desc":826,"slug":827,"createdAt":828,"updatedAt":829,"publishedAt":830,"publish_date":610,"rank":48,"cloud_only":48,"documentId":831,"icon":832},20,"OCR PDF","OCR PDF is an advanced API tool designed to convert scanned documents and images within PDFs into searchable and extractable text using state-of-the-art Optical Character Recognition (OCR) technology. By leveraging OCR PDF, developers can transform static PDF documents into dynamic, searchable text PDFs, significantly enhancing document management processes.\n## Key Benefits of OCR PDF API\n- Accurately recognize and extract text from scanned PDF files, turning static image-based content into fully searchable and selectable text.\n- Integrate OCR tools directly into your development workflow with a flexible REST API that works across all major programming languages and operating systems.\n- Use OCR as a pre-processing step before text extraction, enabling reliable data retrieval from any PDF regardless of how it was created.\n- Convert scanned documents to editable formats like Word for easy editing, formatting, and repurposing of content.\n- Handle large volumes of image-based PDFs efficiently with batch-ready processing designed for enterprise document management.","Get searchable, extractable text from PDF images","Unlock searchable and extractable PDF text by applying OCR to embedded images.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FCdxZMACFEXI?si=J4QbxZpH1CrDSbig","Why is pdfRest the best API to OCR PDF Documents?","pdfRest offers the best solution for applying OCR to PDF documents, because it generates searchable PDF files, supports image-based text extraction, and integrates easily with all projects.","ocr-pdf","2024-08-15T16:45:56.517Z","2026-07-10T21:37:18.967Z","2024-08-15T16:45:58.693Z","n2v85fbuwy3jijswma3d8gqd",{"id":833,"name":834,"alternativeText":820,"caption":48,"width":372,"height":400,"formats":835,"hash":836,"ext":239,"mime":240,"size":837,"url":838,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":839,"updatedAt":840,"documentId":841,"publishedAt":247,"focalPoint":48},78,"ocr-pdf.svg",{},"ocr_pdf_029bb8a80c",8.49,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Focr_pdf_029bb8a80c.svg","2024-08-15T16:40:55.146Z","2025-11-07T15:58:51.720Z","tnze0l8y1o92slargd4oxm5u",{"id":843,"name":844,"tool_page_desc":845,"new_tool":284,"pro_tool":284,"header_blurb":846,"tool_card_desc":847,"youtube_url":848,"why_section_title":849,"why_section_desc":850,"slug":851,"createdAt":852,"updatedAt":853,"publishedAt":854,"publish_date":294,"rank":48,"cloud_only":48,"documentId":855,"icon":856},21,"Extract Text","Extract Text is a REST API tool designed to efficiently extract text from PDF files, with options to include detailed style and positional information. Used as a powerful PDF to text converter, it gives developers and businesses a reliable online tool for streamlining data extraction and copying text content into applications, databases, and AI-driven workflows.\n## Key Benefits of Extract Text API\n- Extract text from PDFs with precision, capturing all content for further analysis or integration into databases and other systems.\n- Include optional style information, such as font type, size, and color, to preserve the original document's appearance in the extracted text.\n- Utilize positional data to maintain text layout and structure, essential for applications requiring exact text placement, such as digital archiving and document conversion.\n- Automate text extraction workflows to enhance efficiency and reduce manual data entry, perfect for high-volume document processing.\n- Enhance data accessibility by converting static PDF content into dynamic, usable data for business intelligence, compliance, and reporting purposes.\n- Supply large language models (LLM) with rich content from PDF archives, enabling advanced AI applications like natural language processing and sentiment analysis. Transform static documents into valuable data sources for AI-driven insights and decision-making.","Extract all text from PDFs","Extract all text from a PDF, optionally including style and position information.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FX9REVAvOkQw","Why is pdfRest the best API to extract text from PDF?","pdfRest offers the best solution for extracting text from PDF documents, because it preserves positional data, includes text style information, and taps into data.","extract-text","2024-08-15T16:50:46.004Z","2026-07-10T21:37:41.113Z","2024-08-15T16:50:48.433Z","t50vz6ahj0hy3s5x5xs9u7zr",{"id":759,"name":857,"alternativeText":844,"caption":48,"width":858,"height":237,"formats":48,"hash":859,"ext":239,"mime":240,"size":860,"url":861,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":862,"updatedAt":863,"documentId":864,"publishedAt":247,"focalPoint":48},"extract-text.svg",125,"extract_text_9bb8fa32f1",8.15,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fextract_text_9bb8fa32f1.svg","2024-08-15T16:47:10.900Z","2024-08-15T16:47:32.142Z","e9ohhvg32e02gdslo6885xz0",{"id":866,"name":867,"tool_page_desc":868,"new_tool":284,"pro_tool":284,"header_blurb":869,"tool_card_desc":870,"youtube_url":871,"why_section_title":872,"why_section_desc":873,"slug":874,"createdAt":875,"updatedAt":876,"publishedAt":877,"publish_date":294,"rank":48,"cloud_only":48,"documentId":878,"icon":879},22,"Query PDF","Query PDF is a REST API tool that provides a programmatic way to retrieve a wide range of insights about a PDF document. It allows developers to check for conditional properties, metadata, and content details such as forms, fonts, security settings, and digital signatures. This tool is essential for conditional processing, enabling you to automate workflows and trigger subsequent actions based on a file’s unique characteristics.\n\n### Key Benefits of Query PDF API\n\n- Perform over 25 different queries in a single API call, including checks for document metadata, embedded fonts, and JavaScript, for a comprehensive overview of a PDF's properties.\n- Validate PDF\u002FA conformance with the industry-standard veraPDF validation engine, returning a simple true or false value for easy programmatic checks without complex reporting.\n- Automate workflows with conditional processing, saving time and resources by using file properties to determine if you need to apply OCR, convert to PDF\u002FA, or perform other operations.\n- Seamlessly audit page boundaries (MediaBox, CropBox, BleedBox, TrimBox, ArtBox) before making precise document dimension adjustments with the Set Page Boxes API.\n- Identify accessibility features by checking for the presence of structure tags, ensuring your documents meet compliance standards.\n- Retrieve and leverage custom metadata, returned as a JSON list of key:value pairs, enabling you to extract unique data properties added by other applications.\n- Extract key document information, including whether a file contains signatures, passwords, or forms (Acroforms or XFA), to drive secure and specialized workflows.","Get info and check for conditions","Get the facts to power your workflow - return detailed info about a PDF and its content to drive conditional processing.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FV9gQT1lyCds","Why is pdfRest the best API to get info from PDF?","pdfRest offers the industry’s most efficient API for extracting PDF metadata and document properties, empowering you to drive conditional processing, validate industry-standard PDF\u002FA compliance, and run over 25 distinct queries in a single, lightning-fast call.","query-pdf","2024-08-15T17:03:12.991Z","2026-07-10T21:38:06.763Z","2024-08-15T17:03:14.852Z","ovui67x1sxfg3scjkhic67wj",{"id":880,"name":881,"alternativeText":867,"caption":48,"width":397,"height":687,"formats":48,"hash":882,"ext":239,"mime":240,"size":883,"url":884,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":885,"updatedAt":886,"documentId":887,"publishedAt":247,"focalPoint":48},80,"query-pdf.svg","query_pdf_e08ca961f2",5.51,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fquery_pdf_e08ca961f2.svg","2024-08-15T16:54:12.083Z","2024-08-15T16:54:22.255Z","hkf3hd3s4hbxjn5uvkhsflws",{"id":889,"name":890,"tool_page_desc":891,"new_tool":284,"pro_tool":284,"header_blurb":892,"tool_card_desc":893,"youtube_url":48,"why_section_title":894,"why_section_desc":895,"slug":896,"createdAt":897,"updatedAt":898,"publishedAt":899,"publish_date":230,"rank":48,"cloud_only":48,"documentId":900,"icon":901},30,"Extract Images","Extract Images is a REST API tool designed to efficiently extract all images from PDF documents. Developers can automate the retrieval of embedded graphics, ensuring quick and accurate extraction without altering the original PDF content.  \n## Key Benefits of Extract Images API\n- Automate image extraction to streamline workflows, eliminating the need for manual extraction in software like Acrobat.\n- Preserve image quality to ensure that extracted images maintain their original resolution and color accuracy.\n- Extract images in their native formats, such as JPEG, PNG, or TIFF, providing flexibility for further processing or analysis.\n- Enhance digital asset management by easily integrating extracted images into DAM systems.\n- Leverage extracted images to streamline content repurposing for marketing materials, presentations, and other creative projects.  ","Extract all images from PDFs","Extract images embedded in PDF documents to individual image files, preserving color, resolution, and format.","Why is pdfRest the best API to extract images from PDF?","pdfRest is the best API for extracting images from PDFs because it offers high-quality preservation, supports multiple formats, and integrates seamlessly into automated workflows.","extract-images","2024-11-19T15:46:02.001Z","2026-07-10T21:36:56.499Z","2024-12-17T17:25:39.699Z","wajlqvlo0fbqloqcmnr41mt3",{"id":902,"name":903,"alternativeText":48,"caption":48,"width":92,"height":375,"formats":48,"hash":904,"ext":239,"mime":240,"size":905,"url":906,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":907,"updatedAt":907,"documentId":908,"publishedAt":247,"focalPoint":48},215,"extract-images.svg","extract_images_f989d8b5f1",8.03,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fextract_images_f989d8b5f1.svg","2024-11-19T15:41:33.964Z","i49wmqbj6ktux4xysh7p2hc9",{"id":910,"name":911,"tool_page_desc":912,"new_tool":284,"pro_tool":284,"header_blurb":913,"tool_card_desc":914,"youtube_url":48,"why_section_title":915,"why_section_desc":916,"slug":917,"createdAt":918,"updatedAt":919,"publishedAt":920,"publish_date":921,"rank":48,"cloud_only":48,"documentId":922,"icon":923},35,"PDF to Markdown","PDF to Markdown is a REST API tool that converts PDF documents into clean, structured Markdown format, facilitating content repurposing and easy text manipulation. It empowers developers to accurately extract human-readable content while preserving document hierarchy, making PDFs easily consumable for content repurposing, data analysis, and LLM training.\n\n## Key Benefits of PDF to Markdown API\n- Convert complex PDFs into lightweight, plain-text Markdown, ideal for web content, documentation systems, or blog posts.\n- Extract structured content from PDFs, accurately preserving headings, lists, tables, and other formatting elements in an easily parseable format.\n- Simplify PDF content for easier management and version control in text-based systems like Git.\n- Enable advanced data processing, LLM training, and analysis by providing clean, semantic text extracted from PDFs for AI, NLP, or search indexing.\n- Support accessibility initiatives by transforming inaccessible PDF content into universally readable Markdown.\n- Automate large-scale PDF to Markdown conversions, streamlining workflows for content migration or dynamic publishing.","Extract Structured Content from PDFs","Transforms PDF documents into clean, structured Markdown, making content easily extractable for repurposing, analysis, and LLM training.","Why is pdfRest the best API to convert PDF to Markdown?","pdfRest offers the best solution for PDF to Markdown conversion, because it delivers accurate content extraction, preserves structural integrity, and enables flexible content repurposing for modern applications.","pdf-to-markdown-api","2025-07-09T20:42:56.960Z","2026-08-05T15:03:15.720Z","2025-07-11T21:53:55.683Z","2025-07-11T05:00:00.000Z","bx8g2gmotxivn9aoky69h6i0",{"id":924,"name":925,"alternativeText":926,"caption":48,"width":185,"height":375,"formats":48,"hash":927,"ext":239,"mime":240,"size":928,"url":929,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":930,"updatedAt":931,"documentId":932,"publishedAt":247,"focalPoint":48},414,"pdf-to-markdown.svg","PDF to Markdown API Tool","pdf_to_markdown_4fcfb1f15e",10.41,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fpdf_to_markdown_4fcfb1f15e.svg","2025-07-09T21:17:57.306Z","2025-07-10T21:24:18.613Z","ms9hfna1itl2y0rxkklzka2b",{"id":320,"name":934,"description":935,"createdAt":936,"updatedAt":937,"publishedAt":938,"rank":369,"documentId":939,"api_tools":940},"Modify","Apply changes to PDF content with this suite of modification tools","2024-08-13T18:39:58.837Z","2025-09-29T20:42:10.221Z","2024-08-13T18:40:00.335Z","l00w5wlfgz8uh23fptajvkl0",[941,964,987,1010,1032],{"id":858,"name":942,"tool_page_desc":943,"new_tool":284,"pro_tool":284,"header_blurb":944,"tool_card_desc":945,"youtube_url":946,"why_section_title":947,"why_section_desc":948,"slug":949,"createdAt":950,"updatedAt":951,"publishedAt":952,"publish_date":294,"rank":295,"cloud_only":48,"documentId":953,"icon":954},"Add to PDF","Add to PDF is a REST API tool designed to add new content to PDF documents, including text, images, lines, rectangles, tables, and file attachments. Developers can use it to enhance existing PDFs without disrupting underlying content, or pair it with Create Blank PDF to generate new PDFs from scratch for invoices, reports, statements, forms, and other data-driven documents.\n## Key Benefits of Add to PDF API\n- Automate PDF content creation and enhancement workflows, eliminating the need for manual editing in Acrobat, Illustrator, or other software.\n- Pair with Create Blank PDF to generate new documents from application data, including invoices, reports, statements, forms, and other structured PDFs.\n- Place text, images, lines, rectangles, and tables with coordinate-level control, making it easier to align inserted content with exact page layouts.\n- Build structured PDF tables with headers, footers, merged cells, styling, image cells, and multi-page overflow support for data-driven documents.\n- Customize text insertion for both LTR and RTL languages with font, size, color, rotation, opacity, maximum width, wrapping, and placement controls.\n- Add optional structure tags for newly inserted text, images, shapes, and tables to support more structured generated or enhanced PDF output.\n- Attach source files, XML data, spreadsheets, or supporting documents directly within a PDF for e-invoicing, archival, and compliance workflows.","Insert tables, text, images, shapes, attachments","Insert tables, text, images, and shapes into a PDF with precise positioning while preserving the original content, and attach files, including XML and other formats.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FXABYfB9b1_0","Why is pdfRest the best API to add content to PDF?","pdfRest offers a flexible API for adding text, images, shapes, tables, and attachments to PDF documents. It supports precise positioning, variable data workflows, structured table insertion, optional tags for newly added content, and PDF Generation workflows when paired with Create Blank PDF.","add-to-pdf","2024-08-15T16:18:30.403Z","2026-09-18T16:28:52.626Z","2026-09-18T16:28:54.474Z","ysclnvjn2upu6nv6daetg4hz",{"id":249,"name":955,"alternativeText":956,"caption":48,"width":957,"height":237,"formats":48,"hash":958,"ext":239,"mime":240,"size":959,"url":960,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":961,"updatedAt":962,"documentId":963,"publishedAt":247,"focalPoint":48},"add-to-pdf.svg","Add to PDF Logo",121,"add_to_pdf_9917f410ab",5.62,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fadd_to_pdf_9917f410ab.svg","2024-08-15T16:11:15.697Z","2024-08-15T16:11:39.908Z","fonwbccct3f9dvnn7ibyhcx1",{"id":965,"name":966,"tool_page_desc":967,"new_tool":284,"pro_tool":284,"header_blurb":968,"tool_card_desc":969,"youtube_url":48,"why_section_title":970,"why_section_desc":971,"slug":972,"createdAt":973,"updatedAt":974,"publishedAt":975,"publish_date":294,"rank":320,"cloud_only":48,"documentId":976,"icon":977},15,"Merge PDFs","Merge PDFs is a REST API tool that joins together any number of full PDF files or specified pages from separate documents into a consolidated PDF. It's designed to provide developers with precise control over document assembly, enabling the programmatic merging of PDF files to create organized, streamlined, and optimized consolidated documents for various applications.\n## Key Benefits of Merge PDFs API\n- Produce optimized output by ensuring merged PDF files are free of unnecessary \"bloat,\" resulting in smaller file sizes and faster user experiences for transfers and viewing.\n- Assemble your perfect document with flexible page range selection, allowing you to choose specific pages or ranges from multiple input PDFs and arrange them in any desired order.\n- Support sophisticated document compilation workflows, such as extracting specific chapters from different reports or combining legal documents with precise page control.\n- Level up with chainable API calls, allowing you to merge various file types (e.g., Word, Excel, images, HTML) into a single PDF by first converting them and then seamlessly merging their outputs without re-uploading.\n- Expedite report compilation and other document assembly tasks by automating the process of combining diverse PDF content into a single, cohesive file.\n- Enhance document management by creating consolidated PDFs that are easier to store, distribute, and access, improving overall organizational efficiency.","Combine whole PDFs or page ranges","Combine multiple PDF documents or pages into one consolidated PDF.\n\n","Why is pdfRest the best API to merge PDF files?","pdfRest offers the best solution for merging multiple PDF documents together, because it produces optimized output, supports flexible page ranges, and can be combined with conversion to merge files of other formats.","merge-pdfs","2024-08-15T16:22:46.662Z","2026-07-10T21:40:04.065Z","2024-08-15T16:22:56.699Z","ke8rhxnq4lsb5t4tlsk1pl1c",{"id":978,"name":979,"alternativeText":966,"caption":48,"width":980,"height":375,"formats":48,"hash":981,"ext":239,"mime":240,"size":982,"url":983,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":984,"updatedAt":985,"documentId":986,"publishedAt":247,"focalPoint":48},73,"merge-pdfs.svg",147,"merge_pdfs_028d9c9ff5",7.81,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fmerge_pdfs_028d9c9ff5.svg","2024-08-15T16:19:24.527Z","2024-08-15T16:19:39.411Z","z554wdjfbc4krjnvydptaplq",{"id":988,"name":989,"tool_page_desc":990,"new_tool":284,"pro_tool":284,"header_blurb":991,"tool_card_desc":992,"youtube_url":993,"why_section_title":994,"why_section_desc":995,"slug":996,"createdAt":997,"updatedAt":998,"publishedAt":999,"publish_date":294,"rank":345,"cloud_only":48,"documentId":1000,"icon":1001},16,"Split PDF","Split PDF is a REST API tool that gives developers precise control over document content by separating a single PDF file into multiple new documents. Use it to split PDF files by page range, extract specific sections, or automate document workflows at scale. This versatile tool is ideal for breaking down large documents into smaller, more manageable files for easier distribution, archiving, or processing. Whether you need to extract specific pages, delete unwanted content, or reorder pages, the Split PDF API provides the flexibility to meet your workflow needs.\n\n### Key Benefits of Split PDF API\n\n- Split PDFs with flexible page ranges, allowing you to specify individual pages, page ranges (e.g., 1-10), or even keywords like even or odd for precise control.\n- Extract or delete pages from a document by defining a page range for a single output file — one of the most useful PDF tools for managing and sanitizing document content.\n- Reorder or duplicate pages by listing page numbers in your desired sequence, enabling you to rearrange or repeat content as needed.\n- Create multiple new documents with a single API call by defining each output file, providing an efficient way to handle complex splitting tasks.\n- Optimize new files by automatically removing unused content from the original document, ensuring the output files are as small and efficient as possible.\n- Automate document management workflows for tasks like archiving large reports, isolating legal contracts, or separating chapters of a book for publishing.","Split a PDF into multiple output files","Split a single PDF document into one or more PDF documents with exactly the pages you need.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FGOxSDafBb3Q","Why is pdfRest the best API to split PDF?","pdfRest offers the best solution for splitting a PDF input into multiple PDF outputs, because it supports flexible page ranges, optimized content, and deleting or exporting pages.","split-pdf","2024-08-15T16:24:51.290Z","2026-07-10T21:40:27.334Z","2024-08-15T16:27:17.095Z","cpoqkgryfsnab76sdlnv15v9",{"id":789,"name":1002,"alternativeText":989,"caption":48,"width":1003,"height":375,"formats":48,"hash":1004,"ext":239,"mime":240,"size":1005,"url":1006,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1007,"updatedAt":1008,"documentId":1009,"publishedAt":247,"focalPoint":48},"split-pdf.svg",155,"split_pdf_378760c4c6",7.76,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fsplit_pdf_378760c4c6.svg","2024-08-15T16:23:25.518Z","2024-08-15T16:23:41.859Z","hrt65mecnhczujhjlfbg0l58",{"id":1011,"name":1012,"tool_page_desc":1013,"new_tool":284,"pro_tool":284,"header_blurb":1014,"tool_card_desc":1015,"youtube_url":48,"why_section_title":1016,"why_section_desc":1017,"slug":1018,"createdAt":1019,"updatedAt":1020,"publishedAt":1021,"publish_date":1022,"rank":369,"cloud_only":48,"documentId":1023,"icon":1024},33,"Set Page Boxes","Set Page Boxes is a REST API tool that allows precise control over PDF page boundaries, enabling developers to set or edit the MediaBox (page size), CropBox (visible content area for cropping PDF and removing white space), BleedBox (extra margin for professional printing with bleed), TrimBox (final printed page dimensions), and ArtBox (boundary of the artwork or content).\n\n## Key Benefits of Set Page Boxes API\n- Offers granular control over PDF page dimensions by allowing users to set or modify the MediaBox, CropBox, BleedBox, TrimBox, and ArtBox.\n- Crop PDF files by setting the CropBox to focus on essential content and remove unwanted white space for cleaner viewing and printing.\n- Control the overall dimensions of your PDF by setting the MediaBox, allowing you to resize PDF pages.\n- Configure the BleedBox to extend content beyond the TrimBox, ensuring accurate trimming and eliminating white edges in professionally printed documents.\n- Set the TrimBox to specify the intended final dimensions of the printed page after it has been cut.\n- Use the ArtBox to define the precise boundaries of the artwork or meaningful visual elements on the page, crucial for design and prepress workflows.","Set PDF page boundary boxes","Set or edit PDF page boundary box values for MediaBox, CropBox, BleedBox, TrimBox, and ArtBox.","Why is pdfRest the best API to set PDF page boundary boxes?","pdfRest provides the best API to set PDF page boundary boxes because it offers precise control over all five box types (MediaBox, CropBox, BleedBox, TrimBox, ArtBox), leverages advanced PDF technology for accuracy, and enables seamless integration for automated workflows.","set-page-boxes","2025-05-27T19:54:27.197Z","2026-07-10T21:40:57.166Z","2025-05-28T21:12:41.077Z","2025-11-21T06:00:00.000Z","cavyxet54k196c49ftemgysr",{"id":1025,"name":1026,"alternativeText":1012,"caption":48,"width":323,"height":237,"formats":48,"hash":1027,"ext":239,"mime":240,"size":1028,"url":1029,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1030,"updatedAt":1030,"documentId":1031,"publishedAt":247,"focalPoint":48},399,"set-page-boxes.svg","set_page_boxes_399944da86",7.69,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fset_page_boxes_399944da86.svg","2025-05-27T18:29:39.917Z","i1ypu8muxiyb6coxov8tt6zq",{"id":1033,"name":1034,"tool_page_desc":1035,"new_tool":284,"pro_tool":284,"header_blurb":1036,"tool_card_desc":1037,"youtube_url":48,"why_section_title":1038,"why_section_desc":1039,"slug":1040,"createdAt":950,"updatedAt":1041,"publishedAt":1042,"publish_date":230,"rank":5,"cloud_only":48,"documentId":1043,"icon":1044},119,"Create Blank PDF","Create Blank PDF is a REST API tool designed to generate new, empty PDF documents with precise page size and page count specifications. As a simple yet vital utility, it serves as the foundational first step in workflows where developers need to programmatically generate PDFs by filling this blank slate text, images, and other content.\n\n## Key Benefits of Create Blank PDF API\n\n- Facilitate dynamic PDF generation workflows by creating a blank document ready to be programmatically filled with content via the Add to PDF tool.\n- Precisely define the dimensions and orientation of the new document using standard sizes (e.g., Letter, A4) or custom measurements.\n- Avoid template storage and management by generating a simple blank canvas instantly, eliminating the need to upload and process static template files.\n- Simplify complex document creation workflows by separating the blank file generation from the content placement step.\n- Ensure document consistency by defining a standard template size and orientation for all subsequently generated content.","Create a blank PDF with custom page specifications","Generate new, empty PDF documents with precise control over page size, orientation, and page count, serving as a clean foundation for content generation workflows.","Why is pdfRest the best API to create blank PDF documents?","pdfRest offers the best solution for creating blank PDF documents because it provides precise control over document dimensions, ensures seamless compatibility with subsequent modification steps, and accelerates programmatic content generation.","create-blank-pdf","2026-09-04T05:31:02.130Z","2026-09-04T05:31:03.826Z","iuzct8ivuzipwsqssi7mxhei",{"id":1045,"name":1046,"alternativeText":1047,"caption":48,"width":399,"height":400,"formats":48,"hash":1048,"ext":239,"mime":240,"size":1049,"url":1050,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1051,"updatedAt":1052,"documentId":1053,"publishedAt":247,"focalPoint":48},679,"create-blank-pdf.svg","Create Blank PDF API Tool","create_blank_pdf_bc88149c38",4.58,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fcreate_blank_pdf_bc88149c38.svg","2025-11-21T20:02:16.110Z","2025-11-21T20:02:30.029Z","ejg018im1qtfv6zbpdoccabs",{"id":345,"name":1055,"description":1056,"createdAt":1057,"updatedAt":1058,"publishedAt":1059,"rank":394,"documentId":1060,"api_tools":1061},"Forms","Process all PDF forms, including static and dynamic XFA and AcroForms","2024-08-13T18:40:13.083Z","2025-09-29T20:42:18.033Z","2024-08-13T18:40:14.259Z","vc2pcm39zmox1fvotebqr946",[1062,1084,1106,1129],{"id":1063,"name":1064,"tool_page_desc":1065,"new_tool":284,"pro_tool":124,"header_blurb":1066,"tool_card_desc":1067,"youtube_url":1068,"why_section_title":1069,"why_section_desc":1070,"slug":1071,"createdAt":1072,"updatedAt":1073,"publishedAt":1074,"publish_date":294,"rank":48,"cloud_only":48,"documentId":1075,"icon":1076},17,"Flatten Forms","Flatten Forms is a REST API tool designed to lock and preserve PDF form field values, converting Acroform and XFA files into standard, non-editable PDF documents. This ensures maximum compatibility across all PDF viewers and platforms, making it an essential tool for businesses and developers looking to streamline document workflows and enhance data security.\n## Key Benefits of Flatten Forms API\n- Lock form fields to prevent unauthorized edits, ensuring the integrity and authenticity of your documents.\n- Convert interactive forms into static PDFs, eliminating compatibility issues with different PDF readers and ensuring access for all users.\n- Seamlessly process Static XFA, Dynamic XFA, and Acroforms, making it ideal for diverse document management needs.\n- Automate the flattening process to enhance efficiency and reduce manual intervention, perfect for high-volume document processing.\n- Preserve the visual appearance and data integrity of forms, making them suitable for legal, compliance, print, and archival purposes.","Lock data and maximize compatibility","Preserve and lock PDF form field values, make forms no longer editable, and convert Acroform and XFA files into standard PDF files.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F--WcisYKttU","Why is pdfRest the best API to flatten PDF forms?","pdfRest offers the best solution for flattening PDF forms, because it preserves form field values, supports XFA and Acroforms, and maximizes compatibility.","flatten-forms","2024-08-15T16:30:45.372Z","2026-07-10T21:50:47.187Z","2024-08-15T16:30:47.642Z","w6fcdt29smep2qmsij1ls6pa",{"id":237,"name":1077,"alternativeText":1064,"caption":48,"width":281,"height":397,"formats":48,"hash":1078,"ext":239,"mime":240,"size":1079,"url":1080,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1081,"updatedAt":1082,"documentId":1083,"publishedAt":247,"focalPoint":48},"flatten-forms.svg","flatten_forms_994c0d2c6a",15.23,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fflatten_forms_994c0d2c6a.svg","2024-08-15T16:28:31.980Z","2024-08-15T16:28:39.138Z","exy8ggo4l4nl5ju77d65udcw",{"id":1085,"name":1086,"tool_page_desc":1087,"new_tool":284,"pro_tool":124,"header_blurb":1088,"tool_card_desc":1089,"youtube_url":1090,"why_section_title":1091,"why_section_desc":1092,"slug":1093,"createdAt":1094,"updatedAt":1095,"publishedAt":1096,"publish_date":294,"rank":48,"cloud_only":48,"documentId":1097,"icon":1098},18,"Import Form Data","Import Form Data is a REST API tool designed to support programmatic PDF form filling by importing data from external data files into Acroforms, static XFA, and dynamic XFA.\n## Key Benefits of Import Form Data API\n- Built upon the foundation of Adobe's PDF forms technology, ensuring robust and reliable form filling capabilities.\n- Offers unmatched support for dynamic XFA files, in addition to static XFA and Acroforms, providing unparalleled flexibility for complex forms.\n- Seamlessly imports data from external files to automatically populate PDF form fields, eliminating manual data entry.\n- Facilitates the programmatic filling of PDF forms, minimizing errors associated with manual input and ensuring data accuracy.\n- Easily integrates with existing applications and workflows to automate document generation and data management processes.","Import data from external file into PDF form fields","Import values into PDF form fields from an external data file for both XFA forms and Acroforms.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FD-V-vMqkd-c","Why is pdfRest the best API to fill PDF forms with data?","pdfRest offers the best solution for importing data into PDF forms, because it supports automated form filling, comprehensive XFA forms and Acroform compatibility, and robust data protection for professional results.","import-form-data","2024-08-15T16:35:38.553Z","2026-08-05T14:54:20.653Z","2024-08-15T16:35:40.609Z","nnfp9h2wzgk9vwqtnxfefvnw",{"id":375,"name":1099,"alternativeText":1086,"caption":48,"width":236,"height":375,"formats":48,"hash":1100,"ext":239,"mime":240,"size":1101,"url":1102,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1103,"updatedAt":1104,"documentId":1105,"publishedAt":247,"focalPoint":48},"import-form-data.svg","import_form_data_381722dd2e",7.41,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fimport_form_data_381722dd2e.svg","2024-08-15T16:31:46.212Z","2024-08-15T16:31:54.236Z","b4itrtuvfqc8zpbtvfhlyopk",{"id":1107,"name":1108,"tool_page_desc":1109,"new_tool":284,"pro_tool":124,"header_blurb":1110,"tool_card_desc":1111,"youtube_url":1112,"why_section_title":1113,"why_section_desc":1114,"slug":1115,"createdAt":1116,"updatedAt":1117,"publishedAt":1118,"publish_date":294,"rank":48,"cloud_only":48,"documentId":1119,"icon":1120},19,"Export Form Data","Export Form Data is a REST API tool that extracts values from PDF form fields and exports them to external data files for Acroforms, static XFA, and dynamic XFA.\n## Key Benefits of Export Form Data API\n- Efficiently extract data from filled PDF forms, regardless of their complexity or underlying technology, into easily manageable external data files.\n- Reliably exports data from Acroforms, static XFA, and dynamic XFA forms for complete coverage of PDF form types.\n- Enables seamless integration of extracted form data into databases and other services for streamlined data management and analysis.\n- Built with the robust foundation of Adobe's PDF forms technology, ensuring accurate and dependable data extraction.\n- Included in the enterprise-grade PDF Forms Pro toolkit, designed for demanding PDF forms processing and complex automated workflows.\n\n","Export data from PDF form fields to external file","Export values from PDF form fields to an external data file for both XFA forms and Acroforms.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FFCWVHfkmn4s","Why is pdfRest the best API to export PDF form data?","pdfRest offers the best solution for exporting data from filled PDF forms, because it supports data aggregation, XFA forms and Acroforms, and professional results.","export-form-data","2024-08-15T16:39:42.481Z","2026-08-05T14:55:29.369Z","2024-08-15T16:39:47.970Z","pzhwjkrmhd4khcemmebl81cv",{"id":1121,"name":1122,"alternativeText":1108,"caption":48,"width":236,"height":375,"formats":48,"hash":1123,"ext":239,"mime":240,"size":1124,"url":1125,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1126,"updatedAt":1127,"documentId":1128,"publishedAt":247,"focalPoint":48},77,"export-form-data.svg","export_form_data_6a7b74f8fc",7.47,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fexport_form_data_6a7b74f8fc.svg","2024-08-15T16:36:13.475Z","2024-08-15T16:36:20.869Z","rr1czsbfllqg9w2eelckeyv2",{"id":1130,"name":1131,"tool_page_desc":1132,"new_tool":284,"pro_tool":124,"header_blurb":1133,"tool_card_desc":1134,"youtube_url":1135,"why_section_title":1136,"why_section_desc":1137,"slug":1138,"createdAt":1139,"updatedAt":1140,"publishedAt":1141,"publish_date":230,"rank":48,"cloud_only":48,"documentId":1142,"icon":1143},29,"XFA to Acroforms","XFA to Acroforms is a REST API tool designed to convert PDF forms from Static XFA or Dynamic XFA to Acroforms using the highest-quality Adobe technology. By converting to Acroforms, developers can ensure PDF forms are highly compatible with forms processing tools and workflows.\n## Key Benefits of XFA to Acroforms API\n- Converting XFA to Acroforms can help streamline workflows by ensuring compatibility with downstream processes.\n- Support Legacy System Modernization by migrating to Acroforms and future-proofing against declining XFA support.\n- While \"XFA form cannot be edited\" errors are common, Acroforms offer a more consistent and user-friendly experience.\n- Acroforms often adhere more closely to PDF standards, ensuring better compliance with industry regulations.\n- Acroforms offer better accessibility features, making them easier to use for individuals with disabilities.\n- Acroforms are generally easier to manage and edit compared to XFA forms, reducing maintenance efforts.","Convert XFA forms to widely supported Acroforms","Convert PDF forms from Static XFA or Dynamic XFA to Acroforms for expanded compatibility with forms processing tools and workflows.","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FKGflmj30DA4","Why is pdfRest the best API to Convert XFA to Acroforms?","pdfRest offers the best solution for converting XFA forms to Acroforms, because it preserves form fidelity, offers instant online validation, and removes compatibility issues associated with the XFA format.  ","xfa-to-acroforms","2024-09-17T15:30:07.362Z","2026-07-10T21:41:24.447Z","2024-09-17T15:33:23.322Z","gjb3owl3eqetep5zgm7racf9",{"id":1144,"name":1145,"alternativeText":1131,"caption":48,"width":96,"height":375,"formats":48,"hash":1146,"ext":239,"mime":240,"size":1147,"url":1148,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1149,"updatedAt":1150,"documentId":1151,"publishedAt":247,"focalPoint":48},96,"xfa-to-acroforms.svg","xfa_to_acroforms_ca251cf707",15.27,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fxfa_to_acroforms_ca251cf707.svg","2024-09-17T16:05:54.557Z","2024-09-17T16:06:06.162Z","ddqfkoqq3ay4dwv9eyyk0lfr",{"id":419,"name":1153,"description":1154,"createdAt":1155,"updatedAt":1156,"publishedAt":1157,"rank":419,"documentId":1158,"api_tools":1159},"Simplify","Build simple, streamlined workflows with these flexible utility tools","2024-08-13T18:40:55.809Z","2025-09-29T20:42:31.285Z","2024-08-13T18:40:57.148Z","ebzkwrxnvvcxdp9p0i5vfoxi",[1160,1181,1202,1225],{"id":1161,"name":1162,"tool_page_desc":1163,"new_tool":284,"pro_tool":284,"header_blurb":1164,"tool_card_desc":1165,"youtube_url":48,"why_section_title":1166,"why_section_desc":1167,"slug":1168,"createdAt":1169,"updatedAt":1170,"publishedAt":1171,"publish_date":294,"rank":48,"cloud_only":48,"documentId":1172,"icon":1173},26,"Upload Files","The Upload Files API is a flexible tool that simplifies how developers get files onto the pdfRest server for processing. While it is an optional step, this tool is ideal for pre-processing by enabling you to upload one or more files from your local storage or directly from a public URL. By using the Upload Files API, you can replace more complex multipart\u002Fform-data requests with simpler single-part JSON payloads for subsequent processing calls.\n\n### Key Benefits of Upload Files API\n\n* Streamline API requests by pre-uploading files and using a simple resource ID in subsequent calls, avoiding the need for complex multipart\u002Fform-data payloads.\n* Upload multiple files at once from local storage or public URLs, providing an efficient way to transfer and manage a batch of files in a single request.\n* Conveniently upload files from a public URL, a feature unique to this tool that simplifies workflows by directly fetching files from an external source.\n* Maintain data security and privacy with robust GDPR and HIPAA compliance, ensuring your files are encrypted and processed securely.\n* Simplify file management with an intuitive JSON response that associates each uploaded file's original name with a unique resource ID for easy tracking.\n* Support for flexible upload methods, including single-part binary payloads for individual files and multipart\u002Fform-data for multiple files.","Upload files with flexible options","Upload multiple files at once from local storage or public URL for convenient transfers prior to processing.","Why does pdfRest API offer the most convenient file uploads?","pdfRest offers the best solution for uploading files for processing, because it supports multiple files at once, upload from URL, and intuitive responses for easy resource tracking.","upload-files","2024-08-15T17:28:33.279Z","2025-09-17T21:38:25.843Z","2024-08-15T17:28:52.675Z","pud8sq3owma6mh11lnbhpuhn",{"id":400,"name":1174,"alternativeText":1162,"caption":48,"width":372,"height":237,"formats":48,"hash":1175,"ext":239,"mime":240,"size":1176,"url":1177,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1178,"updatedAt":1179,"documentId":1180,"publishedAt":247,"focalPoint":48},"upload-files.svg","upload_files_5b876cd91c",4.01,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fupload_files_5b876cd91c.svg","2024-08-15T17:27:12.595Z","2024-08-15T17:27:21.424Z","ytvm7mhlr56k59ehjzg5uxap",{"id":1182,"name":1183,"tool_page_desc":1184,"new_tool":284,"pro_tool":284,"header_blurb":1185,"tool_card_desc":1186,"youtube_url":48,"why_section_title":1187,"why_section_desc":1188,"slug":1189,"createdAt":1190,"updatedAt":1191,"publishedAt":1192,"publish_date":294,"rank":48,"cloud_only":48,"documentId":1193,"icon":1194},27,"Zip Files","Zip Files is a REST API tool designed to streamline file management by compressing and extracting files. It allows developers to compress multiple uploaded or processed files into a single Zip archive for convenient download or extract files from .zip archives, including those protected by passwords.  \n## Key Benefits of Zip Files API\n- Simplify the handling of multiple files by compressing them into a single Zip archive, making storage and transfer more efficient.\n- Unlock protected .zip archives using a password, ensuring you can access and manage secured files without hassle.\n- Integrate zipping and unzipping operations into automated workflows, reducing the need for manual file handling.\n- Package multiple files into a single archive for easy distribution, whether for sharing with clients or archiving project files.\n- Seamlessly incorporate the Zip and Unzip Files tool into existing systems, supporting a wide range of use cases.","Zip processed files for easy downloads","Compress multiple files into a single Zip for easy download, or extract files from a .zip archive to access and process them individually.","Why is pdfRest the best API to Zip files?","pdfRest offers the best solution for zipping files together, because it supports convenience, all file types, and easy development.","zip-files","2024-08-15T17:31:52.169Z","2025-09-10T19:45:28.046Z","2024-08-15T17:31:54.117Z","dnkaxk3gi1e16vvgola3c053",{"id":1195,"name":1196,"alternativeText":1183,"caption":48,"width":298,"height":237,"formats":48,"hash":1197,"ext":239,"mime":240,"size":713,"url":1198,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1199,"updatedAt":1200,"documentId":1201,"publishedAt":247,"focalPoint":48},85,"zip-files.svg","zip_files_d581f52e92","https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fzip_files_d581f52e92.svg","2024-08-15T17:32:20.904Z","2024-08-15T17:32:30.183Z","tzwrt7ryn6ztfztlxvk3ki2f",{"id":1203,"name":1204,"tool_page_desc":1205,"new_tool":284,"pro_tool":284,"header_blurb":1206,"tool_card_desc":1207,"youtube_url":48,"why_section_title":1208,"why_section_desc":1209,"slug":1210,"createdAt":1211,"updatedAt":1212,"publishedAt":1213,"publish_date":610,"rank":48,"cloud_only":124,"documentId":1214,"icon":1215},28,"API Polling","API Polling is a REST API tool that supports asynchronous monitoring for the status of requests sent to any pdfRest endpoint. It's designed to give developers granular control over long-running PDF processing tasks, ensuring workflow flexibility and preventing front-end timeouts for even the most complex operations.\n## Key Benefits of API Polling\n- Avoid timeouts by getting an instant requestId response, especially for complex PDF conversions or advanced document optimizations.\n- Enhance workflow flexibility by designing robust asynchronous workflows, initiating multiple PDF processing tasks concurrently without waiting for each to complete.\n- Gain granular status monitoring using the requestId to check the progress of any pdfRest API call at your own pace, enabling efficient application management.\n- Enjoy universal compatibility by seamlessly integrating API polling with all pdfRest tools, simplifying development and promoting consistent code reusability across your projects.\n- Optimize efficient resource management by allowing your application to move on to other tasks while waiting for PDF job completion.\n- Ensure reliable asynchronous processing for time-consuming PDF automation workflows without blocking your main application thread.","Poll for request statuses","Asynchronously poll for status of requests sent to any pdfRest endpoint for flexible workflow control that avoids timeouts","Why pdfRest for API Polling?","pdfRest offers the best solution for polling request statuses, because it prevents timeouts, offers workflow flexibility, and is universally supported across the toolkit.","api-polling","2024-08-15T17:35:48.465Z","2026-08-05T03:00:33.495Z","2024-08-15T17:36:40.731Z","rmfpfeem8uzb37t0cdg0gooo",{"id":1216,"name":1217,"alternativeText":1204,"caption":48,"width":1218,"height":1195,"formats":48,"hash":1219,"ext":239,"mime":240,"size":1220,"url":1221,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1222,"updatedAt":1223,"documentId":1224,"publishedAt":247,"focalPoint":48},86,"api-polling.svg",93,"api_polling_122863dce8",7.64,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fapi_polling_122863dce8.svg","2024-08-15T17:33:13.922Z","2024-10-21T16:53:49.385Z","fe1uamh2xt9ko2d8112ygnef",{"id":424,"name":1226,"tool_page_desc":1227,"new_tool":284,"pro_tool":284,"header_blurb":1228,"tool_card_desc":1229,"youtube_url":48,"why_section_title":1230,"why_section_desc":1231,"slug":1232,"createdAt":1233,"updatedAt":1234,"publishedAt":1235,"publish_date":1236,"rank":48,"cloud_only":48,"documentId":1237,"icon":1238},"Delete Files","Delete Files is a REST API tool that gives developers full control over their file lifecycle by enabling the immediate, permanent deletion of uploaded or generated files. While all files are automatically removed after a brief retention period, this tool serves as an optional helper for users who need to explicitly and securely delete sensitive data at any time, ensuring compliance and enhancing privacy.\n\n### Key Benefits of Delete Files API\n\n- Permanently delete files before the default file retention period, ensuring sensitive data is removed instantly and with no copies archived.\n- Streamline security and compliance workflows for tasks involving confidential data, such as PII redaction, encryption, or watermarking.\n- Exercise granular control over file management by deleting individual files using a specific resource ID.\n- Automate file cleanup at scale with the option to perform batch deletions, removing multiple files with a single API call.\n- Enhance data privacy with a secure deletion process that verifies file ownership via your API key, safeguarding your files from unauthorized access.\n- Simplify your integration with a straightforward, easy-to-use tool that fits seamlessly into your existing PDF processing workflows.","Delete files on-demand","Immediately and permanently delete uploaded or generated files to take full control of the data lifecycle.","Why does pdfRest offer the best API for deleting files?","pdfRest offers the best solution for deleting files, because it enables on-demand deletion, supports individual and batch operations, and offers enterprise-grade security.","delete-files","2025-09-17T21:16:49.822Z","2026-04-24T14:55:51.210Z","2025-09-19T22:00:08.254Z","2025-09-17T05:00:00.000Z","gyveemixg5f8cs5p81c8c0fs",{"id":1239,"name":1240,"alternativeText":1241,"caption":48,"width":422,"height":880,"formats":48,"hash":1242,"ext":239,"mime":240,"size":1243,"url":1244,"previewUrl":48,"provider":243,"provider_metadata":48,"createdAt":1245,"updatedAt":1246,"documentId":1247,"publishedAt":247,"focalPoint":48},582,"delete-files.svg","Delete Files API Tool","delete_files_63f748cd95",4.69,"https:\u002F\u002Fenergized-actor-82099f85fb.media.strapiapp.com\u002Fdelete_files_63f748cd95.svg","2025-09-17T19:50:52.993Z","2025-09-17T19:52:24.246Z","l191zdc6fx0jb8ti6dvq0xd0",{},[1250,1327,1365,1451,1509,1575,1628,1682,1715,1753,1823,1867,1948,2038,2112,2198,2248],{"id":1251,"uuid":1252,"title":1253,"slug":1254,"html":1255,"comment_id":1256,"feature_image":48,"featured":284,"visibility":1257,"created_at":1258,"updated_at":1259,"published_at":1260,"custom_excerpt":48,"codeinjection_head":1261,"codeinjection_foot":48,"custom_template":48,"canonical_url":1262,"authors":1263,"tags":1269,"primary_author":1321,"primary_tag":1322,"url":1323,"excerpt":1324,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1325,"meta_description":1326,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12db","04d85677-8f8a-4ca5-a399-6433fcc459e4","Artificial Intelligence (AI)","artificial-intelligence-ai-hub","\u003Ch2>Harness the Power of AI and PDF Processing for Enhanced Document Workflows\u003C\u002Fh2>\n\u003Cp>pdfRest empowers you to enhance document workflows using the combined strength of our robust PDF processing tools and our \u003Cstrong>new\u003C\u002Fstrong> integrated \u003Cstrong>AI-powered APIs\u003C\u002Fstrong>. You can integrate extracted document content with external services like ChatGPT and OpenAI LLMs, or leverage our direct, dedicated solutions, starting with the \u003Cstrong>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsummarize-pdf\u002F\">Summarize PDF API Tool\u003C\u002Fa>\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Ch2>Key Benefits of AI &amp; PDF Solutions:\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Accelerated document workflows:\u003C\u002Fstrong> Automate critical tasks like text summarization directly within the pdfRest platform.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Enhanced data insights:\u003C\u002Fstrong> Extract valuable information and metadata from PDF documents for deeper analysis and decision-making, whether using our integrated AI or external LLMs.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Competitive advantage:\u003C\u002Fstrong> Leverage the combined power of direct, integrated AI and reliable PDF processing to differentiate your business.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Two Paths for AI-Driven PDF Workflows:\u003C\u002Fh2>\n\u003Col>\n\u003Cli>\n    \u003Cstrong>Path 1: Utilize Integrated pdfRest AI Tools\u003C\u002Fstrong>\n    \u003Cp>For immediate, structured results, use our growing library of integrated AI solutions. For example, the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsummarize-pdf\u002F\">Summarize PDF API Tool\u003C\u002Fa> processes your document and returns a customizable summary in a single, streamlined API call, eliminating the need to manage external LLM context windows or complex integration steps.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n    \u003Cstrong>Path 2: Integrate with External LLMs (e.g., OpenAI\u002FChatGPT)\u003C\u002Fstrong>\n    \u003Cp>For advanced, custom tasks (like sentiment analysis or specific content generation), you can leverage external LLMs. First, use pdfRest's \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\">OCR PDF\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown-api\u002F\">PDF to Markdown\u003C\u002Fa>, and \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fquery-pdf\u002F\">Query PDF\u003C\u002Fa> APIs to reliably extract text and metadata from PDF documents. Then, feed this extracted content into your chosen external AI tool.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>By integrating AI with PDF workflows using pdfRest, either through our direct AI-powered tools or through deep external integration, you can unlock new possibilities and achieve greater efficiency and effectiveness.\u003C\u002Fp>","651dbd942d4014c9499b20f4","public","2023-10-04T19:31:32.000+00:00","2026-09-04T17:53:52.000+00:00","2023-10-04T19:33:00.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fartificial-intelligence-ai\u002F#collection\",\n      \"name\": \"Artificial Intelligence (AI)\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fartificial-intelligence-ai\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fsecure-proprietary-pdf-reports-from-ai-scraping-and-data-mining\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-eu-cdsm-article-4-compliance-for-digital-pdf-publications\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-multi-language-knowledge-base-creation-from-product-manuals\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fstreamline-global-e-discovery-by-translating-foreign-legal-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fbuild-a-scalable-ai-driven-document-analysis-platform\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-legal-discovery-with-ai-summaries-of-contracts-pleadings\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-structured-pdf-data-for-optimized-llm-training-with-markdown\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-to-text-to-unlock-trapped-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-sentiment-insights-from-pdf-documents-with-pdfrest-and-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerating-summaries-of-pdf-documents-using-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftranslate-pdf-text-to-new-language-with-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-chatgpt-to-generate-pdf-info-summary\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-choose-the-right-pdf-summary-format-style\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Integrate PDF workflows with AI Tools, such as ChatGPT LLM from OpenAI. Leverage the combined power of AI and robust PDF processing capabilities.\",\n      \"keywords\": \"AI, Analysis, ChatGPT, OpenAI, Sentiment, Summarize PDF, Summary, Translate PDF, Translation, pdfAssistant\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Artificial Intelligence (AI)\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fartificial-intelligence-ai\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fartificial-intelligence-ai\u002F",[1264],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},"65ae9a7f656af204db4b0d8e","Dana Liang","dana","https:\u002F\u002Fcms.pdfrest.com\u002Fauthor\u002Fdana\u002F",[1270,1274,1278,1285,1289,1293,1297,1301,1305,1309,1313,1317],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"65ae9a81656af204db4b0f41","content-hub","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fcontent-hub\u002F",{"id":1275,"name":1276,"slug":1276,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1277},"65ae9a81656af204db4b0f44","artificial-intelligence-ai","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fartificial-intelligence-ai\u002F",{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef3","#AI","hash-ai","internal","popular","https:\u002F\u002Fcms.pdfrest.com\u002F404\u002F",{"id":1286,"name":1287,"slug":1288,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef4","#ChatGPT","hash-chatgpt",{"id":1290,"name":1291,"slug":1292,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef5","#OpenAI","hash-openai",{"id":1294,"name":1295,"slug":1296,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f78","#Summary","hash-summary",{"id":1298,"name":1299,"slug":1300,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f79","#Translation","hash-translation",{"id":1302,"name":1303,"slug":1304,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8a","#Sentiment","hash-sentiment",{"id":1306,"name":1307,"slug":1308,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8b","#Analysis","hash-analysis",{"id":1310,"name":1311,"slug":1312,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65b41f64533c9f26b9435dc0","#pdfAssistant","hash-pdfassistant",{"id":1314,"name":1315,"slug":1316,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68daf08c533c9f26b943a62d","#Summarize PDF","hash-summarize-pdf",{"id":1318,"name":1319,"slug":1320,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68f1062e533c9f26b943a789","#Translate PDF","hash-translate-pdf",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fartificial-intelligence-ai-hub\u002F","Harness the Power of AI and PDF Processing for Enhanced Document Workflows\n\n\npdfRest empowers you to enhance document workflows using the combined strength of our robust PDF processing tools and our new integrated AI-powered APIs. You can integrate extracted document content with external services like ChatGPT and OpenAI LLMs, or leverage our direct, dedicated solutions, starting with the Summarize PDF API Tool.\n\n\n\nKey Benefits of AI & PDF Solutions:\n\n\n * Accelerated document workflows: Automate","PDF AI Workflows for Developers, Artificial Intelligence for PDF | pdfRest","Integrate PDF workflows with AI Tools, such as ChatGPT LLM from OpenAI. Leverage the combined power of AI and robust PDF processing capabilities.",{"id":1328,"uuid":1329,"title":1330,"slug":1331,"html":1332,"comment_id":1333,"feature_image":48,"featured":284,"visibility":1257,"created_at":1334,"updated_at":1335,"published_at":1336,"custom_excerpt":48,"codeinjection_head":1337,"codeinjection_foot":48,"custom_template":48,"canonical_url":1338,"authors":1339,"tags":1341,"primary_author":1359,"primary_tag":1360,"url":1361,"excerpt":1362,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1363,"meta_description":1364,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e1","273b6649-e046-4bd3-aa99-d597d5ed9ca0","Check & Validate PDF","check","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Ensure PDF Quality and Compliance with pdfRest Validation Tools\u003C\u002Fh2>\n\n\u003Cp>pdfRest empowers you to examine and validate PDF documents, exposing issues that can affect compatibility throughout document workflows. Early detection of potential problems helps teams route documents appropriately before they reach a downstream system or reviewer.\u003C\u002Fp>\n\n\u003Ch2>Proactive PDF Quality Control\u003C\u002Fh2>\n\n\u003Cp>By checking PDFs early, you can catch issues and make more informed processing decisions across a range of workflows. With pdfRest, you can:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Identify potential errors:\u003C\u002Fstrong> Catch issues such as corrupted data or formatting inconsistencies before they disrupt workflows.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Check conformance:\u003C\u002Fstrong> Inspect PDF\u002FA, PDF\u002FX, PDF\u002FUA, and other relevant document characteristics.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Support records workflows:\u003C\u002Fstrong> Review document properties and conformance information before routing a file for retention or follow-up.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Inspect document features:\u003C\u002Fstrong> Check elements such as fonts, images, metadata, forms, language, and tagging before printing or distribution.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Powerful Validation Tools at Your Fingertips\u003C\u002Fh2>\n\n\u003Cp>Leverage pdfRest's \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fquery-pdf\u002F\">Query PDF API Tool\u003C\u002Fa> for in-depth PDF analysis:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Conditional Data Check:\u003C\u002Fstrong> Verify specific information within PDFs using conditional queries.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Standard Conformance:\u003C\u002Fstrong> Query document characteristics relevant to PDF\u002FA, PDF\u002FX, PDF\u002FUA, and other standards.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Metadata Analysis:\u003C\u002Fstrong> Gain detailed insights into document metadata, forms, fonts, images, language, tagging, and more.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Validate Hybrid Electronic Invoices\u003C\u002Fh2>\n\n\u003Cp>The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fvalidate-zugferd-pdf\u002F\">Validate ZUGFeRD PDF API Tool\u003C\u002Fa> checks an existing ZUGFeRD or Factur-X hybrid invoice and its PDF\u002FA conformance without modifying the submitted document. Use it as an intake check for supplier invoices or as a verification step after creating an invoice with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-zugferd-pdf\u002F\">Create ZUGFeRD PDF API Tool\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>By using pdfRest's validation capabilities, applications can make a clear routing decision based on the document returned by a workflow rather than treating every uploaded PDF as ready for the same next step.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","651f0fed2d4014c9499b2180","2023-10-05T19:35:09.000+00:00","2026-09-18T20:05:09.000+00:00","2023-10-05T19:35:39.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fcheck-validate-pdf\u002F#collection\",\n      \"name\": \"Check & Validate PDF\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fcheck-validate-pdf\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fparse-pdf-files-to-streamline-data-extraction\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-page-numbers-to-pdf-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdetect-and-repair-non-conformant-pdf-a-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-chatgpt-to-generate-pdf-info-summary\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Check PDFs to uncover errors and optimize content. Validate PDF\u002FA, PDF\u002FX, & PDF\u002FUA conformance, gain insights, and safeguard PDF performance with powerful API tools.\",\n      \"keywords\": \"PDF Info, Query PDF, Validate\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Check & Validate PDF\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fcheck-validate-pdf\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fcheck-validate-pdf\u002F",[1340],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1342,1343,1347,1351,1355],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1344,"name":1345,"slug":1345,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1346},"65ae9a81656af204db4b0f4b","check-validate-pdf","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fcheck-validate-pdf\u002F",{"id":1348,"name":1349,"slug":1350,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef7","#PDF Info","hash-pdf-info",{"id":1352,"name":1353,"slug":1354,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef6","#Query PDF","hash-query-pdf",{"id":1356,"name":1357,"slug":1358,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66461892533c9f26b94377d5","#Validate","hash-validate",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fcheck\u002F","\n\n\n\n\nEnsure PDF Quality and Compliance with pdfRest Validation Tools\n\n\n\npdfRest empowers you to examine and validate PDF documents, exposing issues that can affect compatibility throughout document workflows. Early detection of potential problems helps teams route documents appropriately before they reach a downstream system or reviewer.\n\n\n\n\nProactive PDF Quality Control\n\n\n\nBy checking PDFs early, you can catch issues and make more informed processing decisions across a range of workflows. With ","Check & Validate PDF Quality, Conditions, & Compliance, PDF\u002FA, PDF\u002FX, PDF\u002FUA | pdfRest","Check PDFs to uncover errors and optimize content. Validate PDF\u002FA, PDF\u002FX, & PDF\u002FUA conformance, gain insights, and safeguard PDF performance with powerful API tools.",{"id":1366,"uuid":1367,"title":1368,"slug":1369,"html":1370,"comment_id":1371,"feature_image":48,"featured":284,"visibility":1257,"created_at":1372,"updated_at":1373,"published_at":1374,"custom_excerpt":48,"codeinjection_head":1375,"codeinjection_foot":48,"custom_template":48,"canonical_url":1376,"authors":1377,"tags":1379,"primary_author":1445,"primary_tag":1446,"url":1447,"excerpt":1448,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1449,"meta_description":1450,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12dc","9594629c-408a-4690-a2f2-8b37e8ed4ee3","Converting to PDF","converting-to-pdf-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Convert Many File Formats to PDF with pdfRest\u003C\u002Fh2>\n\n\u003Cp>pdfRest empowers you to convert a wide range of file formats into universally compatible PDF documents. Whether you're working with Microsoft Office documents, images, emails, HTML webpages, structured content, or other common file types, pdfRest streamlines conversion for efficient sharing and consistent rendering across platforms.\u003C\u002Fp>\n\n\u003Ch2>Supported Conversion Formats\u003C\u002Fh2>\n\n\u003Cp>pdfRest's robust \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">Convert to PDF API Tool\u003C\u002Fa> offers comprehensive support for a wide range of file types:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Microsoft Office:\u003C\u002Fstrong> Word (DOCX), Excel (XLSX), PowerPoint (PPTX)\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Images:\u003C\u002Fstrong> JPG, PNG, BMP, TIFF\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Email:\u003C\u002Fstrong> EML\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Web Content:\u003C\u002Fstrong> HTML, URL\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Structured Content:\u003C\u002Fstrong> Markdown, plain text, JSON, XML, CSV\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Vector Graphics:\u003C\u002Fstrong> PostScript (PS), Encapsulated PostScript (EPS)\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Electronic Invoices:\u003C\u002Fstrong> ZUGFeRD and Factur-X hybrid PDF\u002FA-3 invoices\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Create Hybrid Electronic Invoices\u003C\u002Fh2>\n\n\u003Cp>The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-zugferd-pdf\u002F\">Create ZUGFeRD PDF API Tool\u003C\u002Fa> combines canonical invoice XML with a visual invoice PDF to produce a ZUGFeRD or Factur-X hybrid PDF\u002FA-3 invoice. This lets billing, procurement, and accounts-payable workflows deliver one invoice that can be read as a PDF and processed from its embedded structured data.\u003C\u002Fp>\n\n\u003Cp>When the visual PDF agrees with the invoice XML, pdfRest preserves it. Applications can also enable a fallback replacement PDF when a match cannot be confirmed, while retaining control of the PDF presentation used for that replacement.\u003C\u002Fp>\n\n\u003Ch2>Customized PDF Conversion Settings\u003C\u002Fh2>\n\n\u003Cp>Enhance your conversion process with pdfRest's flexible configuration options. Tailor settings to optimize PDF output and align each result with the needs of your application or document workflow.\u003C\u002Fp>\n\n\u003Cp>Explore the Convert to PDF API Tool and its related conversion capabilities to standardize source documents, structured content, and electronic invoices through a consistent API workflow.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","651dbe3d2d4014c9499b2106","2023-10-04T19:34:21.000+00:00","2026-09-18T20:05:08.000+00:00","2023-10-04T19:35:20.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fconverting-to-pdf\u002F#collection\",\n      \"name\": \"Converting to PDF\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fconverting-to-pdf\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-email-to-pdf-for-legal-and-compliance-archives\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-structured-pdf-data-for-optimized-llm-training-with-markdown\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-to-text-to-unlock-trapped-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fexpedite-litigation-workflows-with-pdf-and-word-conversions\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-files-to-editable-microsoft-office-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-html-newsletter-to-pdf-to-preserve-content\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-documents-into-encrypted-pdfs-for-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Frender-pdf-pages-to-graphic-file-formats-with-accurate-color-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-documents-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-word-excel-and-powerpoint-files-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdfs-for-email-attachment\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-multiple-types-of-files-together\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 47,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 48,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 49,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 50,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 51,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 52,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 53,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 54,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 55,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 56,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 57,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 58,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 59,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 60,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 61,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 62,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 63,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 64,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 65,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 66,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 67,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 68,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-word-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 69,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 70,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 71,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 72,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 73,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 74,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 75,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 76,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 77,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 78,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 79,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 80,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 81,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 82,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 83,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 84,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 85,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 86,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 87,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 88,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 89,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 90,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 91,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 92,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 93,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 94,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 95,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 96,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 97,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 98,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 99,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 100,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 101,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 102,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 103,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 104,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 105,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 106,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 107,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 108,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 109,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 110,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 111,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 112,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 113,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 114,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-excel-to-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 115,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-html-to-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 116,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-excel-spreadsheets\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 117,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 118,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-powerpoint-presentations\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 119,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-word-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 120,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-word-documents-to-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 121,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Convert Word, Excel, PowerPoint, images, HTML, and more to PDF for seamless sharing and compatibility. Customize output and automate workflows.\",\n      \"keywords\": \"CSV, Conversion, Convert, Convert to PDF, Email, HTML, JSON, Markdown, Newsletter, Plain Text, URL, XML\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Converting to PDF\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fconverting-to-pdf\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fconverting-to-pdf\u002F",[1378],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1380,1381,1385,1389,1393,1397,1401,1405,1409,1413,1417,1421,1425,1429,1433,1437,1441],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1382,"name":1383,"slug":1383,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1384},"65ae9a81656af204db4b0f45","converting-to-pdf","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fconverting-to-pdf\u002F",{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e14","#Conversion","hash-conversion",{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e0e","#Convert","hash-convert",{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1c","#Convert to PDF","hash-convert-to-pdf",{"id":1398,"name":1399,"slug":1400,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e17","#Email","hash-email",{"id":1402,"name":1403,"slug":1404,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e21","#HTML","hash-html",{"id":1406,"name":1407,"slug":1408,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e95","#Newsletter","hash-newsletter",{"id":1410,"name":1411,"slug":1412,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e96","#URL","hash-url",{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a9202f2533c9f26b943ac56","#Markdown","hash-markdown",{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a999117d1b70dd2e2978a84","#CSV","hash-csv",{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a999118d1b70dd2e2978a86","#JSON","hash-json",{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a999118d1b70dd2e2978a88","#XML","hash-xml",{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a999118d1b70dd2e2978a8a","#Plain Text","hash-plain-text",{"id":1434,"name":1435,"slug":1436,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6aa957d2d1b70dd2e2978ede","#ZUGFeRD","hash-zugferd",{"id":1438,"name":1439,"slug":1440,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6aa957d2d1b70dd2e2978edf","#Factur-X","hash-factur-x",{"id":1442,"name":1443,"slug":1444,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6aad98f6d1b70dd2e2978fc9","#Create ZUGFeRD PDF","hash-create-zugferd-pdf",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fconverting-to-pdf-hub\u002F","\n\n\n\n\nConvert Many File Formats to PDF with pdfRest\n\n\n\npdfRest empowers you to convert a wide range of file formats into universally compatible PDF documents. Whether you're working with Microsoft Office documents, images, emails, HTML webpages, structured content, or other common file types, pdfRest streamlines conversion for efficient sharing and consistent rendering across platforms.\n\n\n\n\nSupported Conversion Formats\n\n\n\npdfRest's robust Convert to PDF API Tool offers comprehensive support for a","API for Converting to PDF from Office, Images, HTML | pdfRest","Convert Word, Excel, PowerPoint, images, HTML, and more to PDF for seamless sharing and compatibility. Customize output and automate workflows.",{"id":1452,"uuid":1453,"title":1454,"slug":1455,"html":1456,"comment_id":1457,"feature_image":48,"featured":284,"visibility":1257,"created_at":1458,"updated_at":1459,"published_at":1460,"custom_excerpt":48,"codeinjection_head":1461,"codeinjection_foot":48,"custom_template":48,"canonical_url":1462,"authors":1463,"tags":1465,"primary_author":1503,"primary_tag":1504,"url":1505,"excerpt":1506,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1507,"meta_description":1508,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e2","427335e2-522e-47eb-a7ba-ccbe39653e98","Extract from PDF","extract-from-pdf-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Unlock the Power of PDF Data with pdfRest Extraction Tools\u003C\u002Fh2>\n\u003Cp>pdfRest empowers you to extract a wealth of information from your PDF documents. Go beyond static files and unlock the true potential of your data. Our extraction tools transform your PDFs into a dynamic source of data, enriching your data landscape and enabling powerful analysis.\u003C\u002Fp>\n\n\u003Ch2>Extract, Export, and Leverage PDF Content Seamlessly\u003C\u002Fh2>\n\u003Cp>pdfRest simplifies the process of extracting valuable data from your PDFs, making it readily available for further processing and analysis. Easily integrate extracted data with various applications, including:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>AI Tools:\u003C\u002Fstrong> Leverage data extracted from PDFs to power AI-driven tasks, such as sentiment analysis or document classification.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Content Management Systems (CMS):\u003C\u002Fstrong> Populate your CMS with extracted data, ensuring consistency and streamlined content management.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Data Processing & Analysis Tools:\u003C\u002Fstrong> Integrate extracted data with your existing data analysis tools for deeper insights and informed decision-making.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>And More!\u003C\u002Fstrong> The possibilities are endless. Leverage extracted PDF data across various applications to enhance your workflows.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Powerful PDF Extraction Tools\u003C\u002Fh2>\n\n\u003Cp>Unlock the full potential of your PDF content and data with pdfRest's API Tools:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown\u003C\u002Fa>\u003C\u002Fstrong>: Extract PDF content in structured Markdown format, preserving headers, lists, tables, and bold styling.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F'>OCR PDF\u003C\u002Fa>\u003C\u002Fstrong>: Convert scanned PDFs and PDF images into searchable and extractable text.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F'>Extract Text\u003C\u002Fa>\u003C\u002Fstrong>: Extract all text content from PDFs, including formatting and positional information.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F'>Extract Images\u003C\u002Fa>\u003C\u002Fstrong>: Extract all images from PDFs and save them as high-quality image files.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fquery-pdf\u002F'>Query PDF\u003C\u002Fa>\u003C\u002Fstrong>: Extract conditional information and metadata from your PDFs.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF\u003C\u002Fa>\u003C\u002Fstrong>: Extract individual PDF pages or page ranges into separate documents.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Start extracting valuable data from your PDFs today! Explore pdfRest's powerful tools and unlock a world of possibilities.\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","651f101b2d4014c9499b218f","2023-10-05T19:35:55.000+00:00","2026-09-04T17:53:47.000+00:00","2023-10-05T19:36:24.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fextract-from-pdf\u002F#collection\",\n      \"name\": \"Extract from PDF\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fextract-from-pdf\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fpersonalize-pdf-templates-with-dynamic-content\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerate-dynamic-pdf-reports-with-structured-tables\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-tagged-pdfs-from-scratch-with-application-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fsecure-proprietary-pdf-reports-from-ai-scraping-and-data-mining\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-eu-cdsm-article-4-compliance-for-digital-pdf-publications\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-structured-pdf-data-for-optimized-llm-training-with-markdown\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftransform-pdf-files-to-markdown-for-dynamic-web-content-seo\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fprotect-data-privacy-in-financial-services-with-pdf-redaction-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fensure-patient-privacy-in-healthcare-research-with-pdf-redaction-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fstreamline-digital-marketing-with-effortless-pdf-image-extraction\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fparse-pdf-files-to-streamline-data-extraction\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-page-numbers-to-pdf-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-pdf-text-insertion-for-variable-data-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-text-from-pdf-using-ocr\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-searchable-pdf-files-with-ocr\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-to-text-to-unlock-trapped-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-sentiment-insights-from-pdf-documents-with-pdfrest-and-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerating-summaries-of-pdf-documents-using-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftranslate-pdf-text-to-new-language-with-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-chatgpt-to-generate-pdf-info-summary\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-pages-from-a-pdf-to-isolate-key-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 47,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 48,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 49,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 50,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 51,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 52,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 53,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 54,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 55,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 56,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 57,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 58,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-extract-text-from-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 59,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 60,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 61,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 62,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 63,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 64,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 65,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 66,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 67,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 68,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 69,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 70,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 71,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 72,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 73,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 74,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 75,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 76,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 77,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 78,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 79,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Extract text, OCR text, data, and pages from PDF for AI, analysis and more. Automate workflows with powerful API tools to unlock PDF info and integrate services.\",\n      \"keywords\": \"Data, Extract, Extract Images, Extract Text, OCR, OCR PDF, PDF to Markdown, Text\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Extract from PDF\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fextract-from-pdf\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fextract-from-pdf\u002F",[1464],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1466,1467,1471,1475,1479,1483,1487,1491,1495,1499],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1468,"name":1469,"slug":1469,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1470},"65ae9a81656af204db4b0f4c","extract-from-pdf","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fextract-from-pdf\u002F",{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e31","#Data","hash-data",{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e29","#Extract Text","hash-extract-text",{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ef8","#Text","hash-text",{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f60","#Extract","hash-extract",{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66a1389f533c9f26b9437ef3","#OCR PDF","hash-ocr-pdf",{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66a2bcdf533c9f26b9437f77","#OCR","hash-ocr",{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"673e471b533c9f26b9438f16","#Extract Images","hash-extract-images",{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6870353c533c9f26b9439c92","#PDF to Markdown","hash-pdf-to-markdown",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fextract-from-pdf-hub\u002F","\n\n\n\n\nUnlock the Power of PDF Data with pdfRest Extraction Tools\n\n\npdfRest empowers you to extract a wealth of information from your PDF documents. Go beyond static files and unlock the true potential of your data. Our extraction tools transform your PDFs into a dynamic source of data, enriching your data landscape and enabling powerful analysis.\n\n\n\n\nExtract, Export, and Leverage PDF Content Seamlessly\n\n\npdfRest simplifies the process of extracting valuable data from your PDFs, making it readily ","Export & Extract from PDF - Data, Metadata, Pages, OCR  | pdfRest","Extract text, OCR text, data, and pages from PDF for AI, analysis and more. Automate workflows with powerful API tools to unlock PDF info and integrate services.",{"id":1510,"uuid":1511,"title":1512,"slug":1513,"html":1514,"comment_id":1515,"feature_image":48,"featured":284,"visibility":1257,"created_at":1516,"updated_at":1517,"published_at":1518,"custom_excerpt":48,"codeinjection_head":1519,"codeinjection_foot":48,"custom_template":48,"canonical_url":1520,"authors":1521,"tags":1523,"primary_author":1569,"primary_tag":1570,"url":1571,"excerpt":1572,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1573,"meta_description":1574,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12de","90292082-ab82-4e26-a48f-fa051040c845","Graphic Image Formats","graphic-image-formats-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Convert Between PDF Files and Graphic Image Formats\u003C\u002Fh2>\n\n\u003Cp>pdfRest's versatile API tools allow you to convert between PDFs and a variety of common image file types, including BMP, JPG, PNG, GIF, and TIFF. Convert each page of a PDF to a separate image file, or convert an image file to a PDF.\u003C\u002Fp>\n\n\u003Ch2>Image Conversion Benefits with pdfRest\u003C\u002Fh2>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Flexible Conversion Options:\u003C\u002Fstrong> Convert PDFs to images or vice versa to suit your specific requirements.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>High-Quality Output:\u003C\u002Fstrong> Preserve the integrity of your visual content with accurate and high-quality conversions powered by Adobe technology.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Simplified Workflows:\u003C\u002Fstrong> Streamline your document processing tasks with a user-friendly API.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Versatility:\u003C\u002Fstrong> Use converted images or PDFs in various applications, from presentations and print to web design and document archiving.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Key PDF & Image Conversion Features\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F'>Convert to PDF\u003C\u002Fa>:\u003C\u002Fstrong> Transform images from BMP, JPG, PNG, EPS, and TIFF into high-quality PDF documents for easy sharing, print, and archiving.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-images\u002F'>PDF to Images\u003C\u002Fa>:\u003C\u002Fstrong> Convert PDFs into various image formats, including BMP, JPG, PNG, GIF, and TIFF, preserving the integrity of your visual content.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Discover the power of pdfRest's PDF to Image and Image to PDF APIs and transform your documents effortlessly!\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","651f0efa2d4014c9499b214d","2023-10-05T19:31:06.000+00:00","2026-09-04T17:53:50.000+00:00","2023-10-05T19:31:49.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fgraphic-image-formats\u002F#collection\",\n      \"name\": \"Graphic Image Formats\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fgraphic-image-formats\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-pdf-thumbnail-images\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Frender-pdf-pages-to-graphic-file-formats-with-accurate-color-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-multiple-types-of-files-together\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdfs-for-fast-web-viewing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-image-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Convert between PDF and common graphic image file formats, such as PNG, JPG, BMP, TIFF, EPS, and GIF. Transform your documents into images and vice versa.\",\n      \"keywords\": \"BMP, EPS, GIF, JPG, PDF Viewer, PDF to Images, PNG, Rendering, TIFF, Thumbnail\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Graphic Image Formats\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fgraphic-image-formats\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fgraphic-image-formats\u002F",[1522],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1524,1525,1529,1533,1537,1541,1545,1549,1553,1557,1561,1565],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1526,"name":1527,"slug":1527,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1528},"65ae9a81656af204db4b0f48","graphic-image-formats","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fgraphic-image-formats\u002F",{"id":1530,"name":1531,"slug":1532,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e23","#BMP","hash-bmp",{"id":1534,"name":1535,"slug":1536,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2f","#GIF","hash-gif",{"id":1538,"name":1539,"slug":1540,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e30","#PDF to Images","hash-pdf-to-images",{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1f","#JPG","hash-jpg",{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e22","#PNG","hash-png",{"id":1550,"name":1551,"slug":1552,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2e","#Rendering","hash-rendering",{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e20","#TIFF","hash-tiff",{"id":1558,"name":1559,"slug":1560,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e25","#PDF Viewer","hash-pdf-viewer",{"id":1562,"name":1563,"slug":1564,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f64","#Thumbnail","hash-thumbnail",{"id":1566,"name":1567,"slug":1568,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1e","#EPS","hash-eps",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fgraphic-image-formats-hub\u002F","\n\n\n\n\nConvert Between PDF Files and Graphic Image Formats\n\n\n\npdfRest's versatile API tools allow you to convert between PDFs and a variety of common image file types, including BMP, JPG, PNG, GIF, and TIFF. Convert each page of a PDF to a separate image file, or convert an image file to a PDF.\n\n\n\n\nImage Conversion Benefits with pdfRest\n\n\n\n * Flexible Conversion Options: Convert PDFs to images or vice versa to suit your specific requirements.\n * High-Quality Output: Preserve the integrity of your ","Convert Between PDF & Graphic Image Formats, PNG, JPG, BMP, TIFF | pdfRest","Convert between PDF and common graphic image file formats, such as PNG, JPG, BMP, TIFF, EPS, and GIF. Transform your documents into images and vice versa.",{"id":1576,"uuid":1577,"title":1578,"slug":1579,"html":1580,"comment_id":1581,"feature_image":48,"featured":284,"visibility":1257,"created_at":1582,"updated_at":1459,"published_at":1583,"custom_excerpt":48,"codeinjection_head":1584,"codeinjection_foot":48,"custom_template":48,"canonical_url":1585,"authors":1586,"tags":1588,"primary_author":1622,"primary_tag":1623,"url":1624,"excerpt":1625,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1626,"meta_description":1627,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e3","998145c8-4df5-4a5b-a440-6edd1ce078f3","Merge & Split PDF","merge-2","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Merge & Split PDF Files with Precision\u003C\u002Fh2>\n\n\u003Cp>pdfRest's powerful \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fmerge-pdfs\u002F'>Merge PDFs\u003C\u002Fa> and \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF\u003C\u002Fa> API tools enable you to merge, split, extract pages, delete pages, and restructure your PDF documents with ease. Gain granular control over your content and create customized versions of your files.\u003C\u002Fp>\n\n\n\u003Ch2>Key Merge & Split PDF Features\u003C\u002Fh2>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Split PDF:\u003C\u002Fstrong> Split all pages of a PDF into separate documents, or choose custom pages or page ranges to split out.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Extract Pages:\u003C\u002Fstrong> Extract specific pages from a PDF document to create standalone files.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Merge PDFs:\u003C\u002Fstrong> Combine multiple PDFs into a single document, preserving the original content and formatting.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Reorder Pages:\u003C\u002Fstrong> Rearrange the order of pages within a PDF to suit your needs.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Remove Pages:\u003C\u002Fstrong> Delete unwanted pages from a PDF document.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Optimize your PDF workflows and enhance your document management capabilities with pdfRest's merging and splitting tools.\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","651f10592d4014c9499b21a1","2023-10-05T19:36:57.000+00:00","2023-10-05T19:37:45.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmerge-split-pdf\u002F#collection\",\n      \"name\": \"Merge & Split PDF\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmerge-split-pdf\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerate-dynamic-pdf-reports-with-structured-tables\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fresize-pdf-pages-for-consistent-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcrop-pdf-files-to-optimize-scanned-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-page-numbers-to-pdf-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-pdf-documents-for-streamlined-report-compilation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-pdf-thumbnail-images\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Frender-pdf-pages-to-graphic-file-formats-with-accurate-color-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-multiple-types-of-files-together\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-pages-from-a-pdf-to-isolate-key-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdelete-pages-from-a-pdf-to-sanitize-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-different-file-formats-together-as-a-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-different-file-formats-together-as-a-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdfs-with-dot-net-c-sharp\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdfs-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-documents-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-merge-multiple-pdf-files-into-one\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-split-pdf-into-multiple-files\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-c-code-in-net\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Combine, separate, and rearrange PDF documents with granular page-level control using pdfRest API Tools.\",\n      \"keywords\": \"Combine, Merge PDFs, Pages, Remove, Report, Scanned Docs, Split PDF\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Merge & Split PDF\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmerge-split-pdf\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmerge-split-pdf\u002F",[1587],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1589,1590,1594,1598,1602,1606,1610,1614,1618],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1591,"name":1592,"slug":1592,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1593},"65ae9a81656af204db4b0f4d","merge-split-pdf","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fmerge-split-pdf\u002F",{"id":1595,"name":1596,"slug":1597,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1a","#Merge PDFs","hash-merge-pdfs",{"id":1599,"name":1600,"slug":1601,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e27","#Remove","hash-remove",{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e28","#Split PDF","hash-split-pdf",{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2a","#Pages","hash-pages",{"id":1611,"name":1612,"slug":1613,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1b","#Scanned Docs","hash-scanned-docs",{"id":1615,"name":1616,"slug":1617,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f93","#Report","hash-report",{"id":1619,"name":1620,"slug":1621,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f94","#Combine","hash-combine",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fmerge-2\u002F","\n\n\n\n\nMerge & Split PDF Files with Precision\n\n\n\npdfRest's powerful Merge PDFs and Split PDF API tools enable you to merge, split, extract pages, delete pages, and restructure your PDF documents with ease. Gain granular control over your content and create customized versions of your files.\n\n\n\n\n\nKey Merge & Split PDF Features\n\n\n\n * Split PDF: Split all pages of a PDF into separate documents, or choose custom pages or page ranges to split out.\n * Extract Pages: Extract specific pages from a PDF doc","Merge & Split PDF Files - Export, Delete, & Reorder Pages | pdfRest","Combine, separate, and rearrange PDF documents with granular page-level control using pdfRest API Tools.",{"id":1629,"uuid":1630,"title":1631,"slug":1632,"html":1633,"comment_id":1634,"feature_image":48,"featured":284,"visibility":1257,"created_at":1635,"updated_at":1636,"published_at":1637,"custom_excerpt":48,"codeinjection_head":1638,"codeinjection_foot":48,"custom_template":48,"canonical_url":1639,"authors":1640,"tags":1642,"primary_author":1676,"primary_tag":1677,"url":1678,"excerpt":1679,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1680,"meta_description":1681,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12df","d6598ee1-9cf3-42c9-a7b7-7e4c1a9d276e","Microsoft Office Files","microsoft-office-files-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Convert Between PDF and Microsoft Office with pdfRest\u003C\u002Fh2>\n\n\u003Cp>pdfRest offers a comprehensive suite of tools to effortlessly convert both directions between PDF and Microsoft Office formats, including Word, Excel, and PowerPoint. Our API is designed to simplify your document conversion workflows and enhance your productivity.\u003C\u002Fp>\n\n\u003Ch2>Convert PDF to Word, Excel, & PowerPoint with Ease\u003C\u002Fh2>\n\n\u003Cp>PDF to Office Pro Tools provide a user-friendly REST API for converting PDF documents into Microsoft Office formats. With just a few simple steps, you can transform your PDFs into editable Word, Excel, or PowerPoint files. Also available as a \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fproducts\u002Fpdf-forms-pro-self-hosted-api\u002F'>Self-Hosted API\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Key Microsoft Office Conversion Features\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-word\u002F'>PDF to Word\u003C\u002Fa>:\u003C\u002Fstrong> Convert PDF documents into editable Word documents, preserving formatting and content.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-powerpoint\u002F'>PDF to PowerPoint\u003C\u002Fa>:\u003C\u002Fstrong> Transform PDFs into visually appealing PowerPoint presentations, including slides, images, and text.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-excel\u002F'>PDF to Excel\u003C\u002Fa>:\u003C\u002Fstrong> Convert PDFs containing tables or data into editable Excel spreadsheets.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F'>Convert to PDF\u003C\u002Fa>:\u003C\u002Fstrong> Easily convert Word, Excel, and PowerPoint documents into high-quality PDFs for sharing and archiving.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Discover the power of pdfRest and streamline your document conversion workflows today!\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","651f0f2f2d4014c9499b2162","2023-10-05T19:31:59.000+00:00","2026-09-04T17:53:49.000+00:00","2023-10-05T19:33:05.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmicrosoft-office-files\u002F#collection\",\n      \"name\": \"Microsoft Office Files\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmicrosoft-office-files\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fexpedite-litigation-workflows-with-pdf-and-word-conversions\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-files-to-editable-microsoft-office-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-word-excel-and-powerpoint-files-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-multiple-types-of-files-together\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-excel-to-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-excel-spreadsheets\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-powerpoint-presentations\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-word-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-word-documents-to-pdf\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Convert PDF to \u002F from Word, Excel, PowerPoint with PDF to Office Pro and Convert to PDF API Tools from pdfRest.\",\n      \"keywords\": \"Excel, Microsoft Office, PDF to Excel, PDF to PowerPoint, PDF to Word, PowerPoint, Word\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Microsoft Office Files\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmicrosoft-office-files\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fmicrosoft-office-files\u002F",[1641],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1643,1644,1648,1652,1656,1660,1664,1668,1672],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1645,"name":1646,"slug":1646,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1647},"65ae9a81656af204db4b0f49","microsoft-office-files","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fmicrosoft-office-files\u002F",{"id":1649,"name":1650,"slug":1651,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e11","#Excel","hash-excel",{"id":1653,"name":1654,"slug":1655,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e0f","#Microsoft Office","hash-microsoft-office",{"id":1657,"name":1658,"slug":1659,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e12","#PowerPoint","hash-powerpoint",{"id":1661,"name":1662,"slug":1663,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e10","#Word","hash-word",{"id":1665,"name":1666,"slug":1667,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f7a","#PDF to Word","hash-pdf-to-word",{"id":1669,"name":1670,"slug":1671,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f7b","#PDF to Excel","hash-pdf-to-excel",{"id":1673,"name":1674,"slug":1675,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f7c","#PDF to PowerPoint","hash-pdf-to-powerpoint",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fmicrosoft-office-files-hub\u002F","\n\n\n\n\nConvert Between PDF and Microsoft Office with pdfRest\n\n\n\npdfRest offers a comprehensive suite of tools to effortlessly convert both directions between PDF and Microsoft Office formats, including Word, Excel, and PowerPoint. Our API is designed to simplify your document conversion workflows and enhance your productivity.\n\n\n\n\nConvert PDF to Word, Excel, & PowerPoint with Ease\n\n\n\nPDF to Office Pro Tools provide a user-friendly REST API for converting PDF documents into Microsoft Office formats","PDF & Microsoft Office Conversion - Word, Excel, PowerPoint | pdfRest","Convert PDF to \u002F from Word, Excel, PowerPoint with PDF to Office Pro and Convert to PDF API Tools from pdfRest.",{"id":1683,"uuid":1684,"title":1685,"slug":1686,"html":1687,"comment_id":1688,"feature_image":48,"featured":284,"visibility":1257,"created_at":1689,"updated_at":1335,"published_at":1690,"custom_excerpt":48,"codeinjection_head":1691,"codeinjection_foot":48,"custom_template":48,"canonical_url":1692,"authors":1693,"tags":1695,"primary_author":1709,"primary_tag":1710,"url":1711,"excerpt":1712,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1713,"meta_description":1714,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e0","4c06aa7f-a1d9-4dcb-9dca-ab38f663212b","PDF Archival Format (PDF\u002FA)","pdf-archival-format-pdfa","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Convert PDF Files to the Archival PDF\u002FA Format\u003C\u002Fh2>\n\n\u003Cp>pdfRest's \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdfa\u002F\">Convert to PDF\u002FA\u003C\u002Fa> API empowers you to convert standard PDF files to the PDF\u002FA archival format, ensuring their long-term preservation and compatibility.\u003C\u002Fp>\n\n\u003Ch2>Validate PDF\u002FA Conformance\u003C\u002Fh2>\n\n\u003Cp>Leverage pdfRest's \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fquery-pdf\u002F\">Query PDF\u003C\u002Fa> API to assess the PDF\u002FA conformance of your documents. By identifying non-conformant PDFs, you can take proactive steps to convert them to the appropriate PDF\u002FA standard.\u003C\u002Fp>\n\n\u003Ch2>Key PDF\u002FA Benefits\u003C\u002Fh2>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>Identify non-compliant PDFs:\u003C\u002Fstrong> Pinpoint documents that require conversion to PDF\u002FA.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Ensure long-term preservation:\u003C\u002Fstrong> Protect your valuable data from obsolescence and data loss.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Maintain compatibility:\u003C\u002Fstrong> Ensure your PDFs can be viewed and processed reliably in the future.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Meet industry standards:\u003C\u002Fstrong> Comply with regulations and requirements that mandate PDF\u002FA usage.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Supported PDF\u002FA Standards\u003C\u002Fh2>\n\n\u003Cp>pdfRest supports a wide range of PDF\u002FA standards, including:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>PDF\u002FA-1b:\u003C\u002Fstrong> Ensures basic visual integrity over the long term. It's the most widely accepted version for simple archival needs, guaranteeing that documents will look the same when accessed in the future.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>PDF\u002FA-2b:\u003C\u002Fstrong> Supports more modern features like JPEG2000 compression and transparency, making it suitable for documents that require better image quality and more complex visual elements while maintaining compliance with archival standards.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>PDF\u002FA-2u:\u003C\u002Fstrong> Includes Unicode support for enhanced text searchability and accessibility, making it ideal for documents that need to be both visually consistent and easily searchable across different languages and character sets.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>PDF\u002FA-3b:\u003C\u002Fstrong> Allows embedding of additional file formats (e.g., XML, CSV) within the PDF, making it suitable for documents that need to include supplementary data files alongside the main document content.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>PDF\u002FA-3u:\u003C\u002Fstrong> Combines the benefits of PDF\u002FA-3b with Unicode support, offering a comprehensive solution for archival documents that require both embedded files and enhanced text searchability and accessibility.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Use PDF\u002FA-3 for Hybrid Electronic Invoices\u003C\u002Fh2>\n\n\u003Cp>ZUGFeRD and Factur-X electronic invoices use PDF\u002FA-3 to combine a visual invoice PDF with embedded, machine-readable invoice XML. The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-zugferd-pdf\u002F\">Create ZUGFeRD PDF API Tool\u003C\u002Fa> creates this specific type of hybrid PDF\u002FA-3 invoice from canonical XML and a visual PDF, giving billing and procurement workflows one document that can be read by people and processed by systems.\u003C\u002Fp>\n\n\u003Cp>This is distinct from converting an existing PDF to PDF\u002FA for a general archival workflow. Use Create ZUGFeRD PDF when the goal is a hybrid electronic invoice; use Convert to PDF\u002FA when an existing PDF needs conversion to an archival PDF\u002FA profile.\u003C\u002Fp>\n\n\u003Cp>Safeguard your PDFs for the future with pdfRest's PDF\u002FA compliance tools.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","651f0fdf2d4014c9499b2173","2023-10-05T19:34:55.000+00:00","2023-10-05T19:34:58.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-archival-format\u002F#collection\",\n      \"name\": \"PDF Archival Format (PDF\u002FA)\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-archival-format\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-email-to-pdf-for-legal-and-compliance-archives\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fresize-pdf-pages-for-consistent-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fchoose-the-right-pdf-a-version-for-your-archival-or-compliance-needs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdetect-and-repair-non-conformant-pdf-a-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-an-e-invoicing-pdf-workflow-for-regulatory-compliance\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconverting-pdf-files-to-grayscale\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-html-newsletter-to-pdf-to-preserve-content\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-documents-into-encrypted-pdfs-for-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-documents-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-word-excel-and-powerpoint-files-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfa-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Validate PDF\u002FA conformance and convert to the PDF\u002FA format with pdfRest to future-proof the compatibility of your documents and information.\",\n      \"keywords\": \"Archival, Convert to PDF\u002FA\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Archival Format (PDF\u002FA)\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-archival-format\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-archival-format\u002F",[1694],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1696,1697,1701,1705],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1698,"name":1699,"slug":1699,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1700},"65ae9a81656af204db4b0f4a","pdf-archival-format","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fpdf-archival-format\u002F",{"id":1702,"name":1703,"slug":1704,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e13","#Archival","hash-archival",{"id":1706,"name":1707,"slug":1708,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e16","#Convert to PDF\u002FA","hash-convert-to-pdfa",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fpdf-archival-format-pdfa\u002F","\n\n\n\n\nConvert PDF Files to the Archival PDF\u002FA Format\n\n\n\npdfRest's Convert to PDF\u002FA API empowers you to convert standard PDF files to the PDF\u002FA archival format, ensuring their long-term preservation and compatibility.\n\n\n\n\nValidate PDF\u002FA Conformance\n\n\n\nLeverage pdfRest's Query PDF API to assess the PDF\u002FA conformance of your documents. By identifying non-conformant PDFs, you can take proactive steps to convert them to the appropriate PDF\u002FA standard.\n\n\n\n\nKey PDF\u002FA Benefits\n\n\n\n * Identify non-complian","Validate & Convert to PDF\u002FA, PDF Archival Format | pdfRest","Validate PDF\u002FA conformance and convert to the PDF\u002FA format with pdfRest to future-proof the compatibility of your documents and information.",{"id":1716,"uuid":1717,"title":1718,"slug":1719,"html":1720,"comment_id":1721,"feature_image":48,"featured":284,"visibility":1257,"created_at":1722,"updated_at":1723,"published_at":1724,"custom_excerpt":48,"codeinjection_head":1725,"codeinjection_foot":48,"custom_template":48,"canonical_url":1726,"authors":1727,"tags":1729,"primary_author":1747,"primary_tag":1748,"url":1749,"excerpt":1750,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1751,"meta_description":1752,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12ee","dd5b306f-03be-40e5-bf74-f46da71d4c8a","PDF Compression","pdf-compression-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Optimize PDF File Size with Powerful Compression\u003C\u002Fh2>\n\n\u003Cp>pdfRest empowers you to efficiently compress your PDF documents, minimizing file size while preserving the integrity of your content. Our advanced compression techniques remove hidden, unnecessary, and redundant elements, optimizing your PDFs for storage and performance.\u003C\u002Fp>\n\n\n\u003Ch2>Tailored PDF Compression Options\u003C\u002Fh2>\n\n\u003Cp>pdfRest offers a range of compression settings to suit your specific requirements. Choose from high, medium, and low compression options, allowing you to prioritize file size reduction or maintain a higher level of image fidelity. Or select custom compression to adjust compression settings for fonts, images, and other elements to achieve the optimal balance between file size and quality.\u003C\u002Fp>\n\n\n\u003Ch2>Unmatched Compression Results with Leading Technology\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcompress-pdf\u002F'>Compress PDF API Tool\u003C\u002Fa> leverages cutting-edge technology from Adobe, renowned for its expertise in PDF development. This ensures unmatched file size reduction while preserving the quality of your text and images.\u003C\u002Fp>\n\n\n\u003Ch2>Streamlined PDF Compression Integration and Scalability\u003C\u002Fh2>\n\n\u003Cp>Easily integrate pdfRest's compression functionality with your existing document storage solutions. This allows you to compress large volumes of PDFs automatically, significantly reducing your storage space requirements and associated costs.\u003C\u002Fp>\n\n\n\u003Cp>Unlock the benefits of efficient PDF compression with pdfRest. Start optimizing your documents today!\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","653933742d4014c9499b2478","2023-10-25T15:25:40.000+00:00","2026-09-04T17:53:44.000+00:00","2023-10-25T15:26:26.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-compression\u002F#collection\",\n      \"name\": \"PDF Compression\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-compression\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-web-application-performance-by-compressing-pdfs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-file-submissions-for-uae-digital-government-strategy-2025\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmaximize-pdf-performance-with-reduced-file-size\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdfs-for-email-attachment\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-compress-pdf-files-to-reduce-file-size\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Reduce PDF file size while preserving quality. Choose compression level and integrate with storage solutions to optimize for space and performance.\",\n      \"keywords\": \"Compress PDF, File Size, Performance\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Compression\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-compression\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-compression\u002F",[1728],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1730,1731,1735,1739,1743],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1732,"name":1733,"slug":1733,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1734},"65ae9a81656af204db4b0f47","pdf-compression","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fpdf-compression\u002F",{"id":1736,"name":1737,"slug":1738,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e18","#Compress PDF","hash-compress-pdf",{"id":1740,"name":1741,"slug":1742,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e19","#File Size","hash-file-size",{"id":1744,"name":1745,"slug":1746,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f86","#Performance","hash-performance",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fpdf-compression-hub\u002F","\n\n\n\n\nOptimize PDF File Size with Powerful Compression\n\n\n\npdfRest empowers you to efficiently compress your PDF documents, minimizing file size while preserving the integrity of your content. Our advanced compression techniques remove hidden, unnecessary, and redundant elements, optimizing your PDFs for storage and performance.\n\n\n\n\n\nTailored PDF Compression Options\n\n\n\npdfRest offers a range of compression settings to suit your specific requirements. Choose from high, medium, and low compression o","PDF Compression, Compress PDF to Reduce File Size | pdfRest","Reduce PDF file size while preserving quality. Choose compression level and integrate with storage solutions to optimize for space and performance.",{"id":1754,"uuid":1755,"title":1756,"slug":1757,"html":1758,"comment_id":1759,"feature_image":48,"featured":284,"visibility":1257,"created_at":1760,"updated_at":1761,"published_at":1762,"custom_excerpt":48,"codeinjection_head":1763,"codeinjection_foot":48,"custom_template":48,"canonical_url":1764,"authors":1765,"tags":1771,"primary_author":1817,"primary_tag":1818,"url":1819,"excerpt":1820,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1821,"meta_description":1822,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b1330","228bb8ad-92f5-45af-af30-63c86553224c","PDF Forms Processing","forms-processing-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Automate PDF Forms Processing Workflows\u003C\u002Fh2>\n\u003Cp>pdfRest empowers you to automate repetitive tasks in your PDF forms processing workflows. Easily import data from external sources to pre-populate forms using the Import Form Data API. Extract data from multiple forms and consolidate it into a single source with the Export Form Data API. Ensure data integrity by locking form fields and flatten your PDFs for universal compatibility with the Flatten Forms API. Finally, convert XFA forms to Acroforms for broader accessibility using the XFA to Acroforms API.\u003C\u002Fp>\n\n\u003Ch2>Flexible Support for All PDF Form Types and Environments\u003C\u002Fh2>\n\u003Cp>pdfRest Forms Pro is your one-stop solution for automating and batch processing all PDF forms, including Static XFA, Dynamic XFA, and Acroforms. Available as both \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fproducts\u002Fcloud-api\u002F'>Cloud API\u003C\u002Fa> and \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fproducts\u002Fpdf-forms-pro-self-hosted-api\u002F'>Self-Hosted API\u003C\u002Fa> services, it offers the flexibility to integrate with your existing infrastructure.\u003C\u002Fp>\n\n\u003Ch2>Key PDF Forms Features:\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F'>Import Form Data\u003C\u002Fa>:\u003C\u002Fstrong> Fill forms automatically with data from external sources.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F'>Export Form Data\u003C\u002Fa>:\u003C\u002Fstrong> Extract data from multiple forms for analysis and reporting.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fflatten-forms\u002F'>Flatten Forms\u003C\u002Fa>:\u003C\u002Fstrong> Lock fields and flatten PDFs for universal compatibility.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fxfa-to-acroforms\u002F'>XFA to Acroforms\u003C\u002Fa>:\u003C\u002Fstrong> Convert XFA forms to Acroforms for broader accessibility.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Empower your workflows and improve efficiency with pdfRest Forms Pro!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","6557d5172d4014c9499b2f0b","2023-11-17T21:03:19.000+00:00","2026-09-04T17:53:43.000+00:00","2023-11-17T21:05:13.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fforms-processing\u002F#collection\",\n      \"name\": \"PDF Forms Processing\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fforms-processing\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fparse-pdf-files-to-streamline-data-extraction\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-forms-for-e-signature-compatibility-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-generated-barcodes-to-pdf-forms\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-filled-pdf-forms-for-universal-compatibility\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-dot-net-c-sharp\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-javascript\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-fill-out-pdf-form-input-fields\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-flatten-pdf-forms-for-compatibility-and-security\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Automate PDF forms processing. Fill, extract data, lock fields, flatten, and convert XFA to Acroforms. Handle all form types: Static XFA, Dynamic XFA, and Acroforms.\",\n      \"keywords\": \"Acroforms, Barcode, Dynamic XFA, Export Form Data, Flatten Forms, Forms, Import Form Data, Static XFA, XFA, XFA to Acroforms\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Forms Processing\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fforms-processing\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fforms-processing\u002F",[1766],{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},"65ae9a7f656af204db4b0d92","Eric Shore","eric","https:\u002F\u002Fcms.pdfrest.com\u002Fauthor\u002Feric\u002F",[1772,1773,1777,1781,1785,1789,1793,1797,1801,1805,1809,1813],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1774,"name":1775,"slug":1775,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1776},"65ae9a81656af204db4b0f85","forms-processing","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fforms-processing\u002F",{"id":1778,"name":1779,"slug":1780,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f54","#Flatten Forms","hash-flatten-forms",{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f7f","#Forms","hash-forms",{"id":1786,"name":1787,"slug":1788,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f81","#XFA","hash-xfa",{"id":1790,"name":1791,"slug":1792,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f82","#Static XFA","hash-static-xfa",{"id":1794,"name":1795,"slug":1796,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f83","#Dynamic XFA","hash-dynamic-xfa",{"id":1798,"name":1799,"slug":1800,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f80","#Acroforms","hash-acroforms",{"id":1802,"name":1803,"slug":1804,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f56","#Export Form Data","hash-export-form-data",{"id":1806,"name":1807,"slug":1808,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f55","#Import Form Data","hash-import-form-data",{"id":1810,"name":1811,"slug":1812,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66280bf0533c9f26b943730c","#Barcode","hash-barcode",{"id":1814,"name":1815,"slug":1816,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66e4ad50533c9f26b94384d2","#XFA to Acroforms","hash-xfa-to-acroforms",{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fforms-processing-hub\u002F","\n\n\n\n\nAutomate PDF Forms Processing Workflows\n\n\npdfRest empowers you to automate repetitive tasks in your PDF forms processing workflows. Easily import data from external sources to pre-populate forms using the Import Form Data API. Extract data from multiple forms and consolidate it into a single source with the Export Form Data API. Ensure data integrity by locking form fields and flatten your PDFs for universal compatibility with the Flatten Forms API. Finally, convert XFA forms to Acroforms f","PDF Forms Processing for Developers, Import & Export Data, Convert & Flatten Forms | pdfRest","Automate PDF forms processing. Fill, extract data, lock fields, flatten, and convert XFA to Acroforms. Handle all form types: Static XFA, Dynamic XFA, and Acroforms.",{"id":1824,"uuid":1825,"title":1826,"slug":1827,"html":1828,"comment_id":1824,"feature_image":48,"featured":284,"visibility":1257,"created_at":1829,"updated_at":1830,"published_at":1831,"custom_excerpt":48,"codeinjection_head":1832,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"authors":1833,"tags":1835,"primary_author":1861,"primary_tag":1862,"url":1863,"excerpt":1864,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1865,"meta_description":1866,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6920d2e0533c9f26b943a85c","de38dcbd-66f6-43cf-92b7-f458b76a0136","PDF Generation","pdf-generation-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Achieve Custom PDF Generation Workflows via API\u003C\u002Fh2>\n\n\u003Cp>Build professional PDF documents from application data using pdfRest. Start with a blank PDF canvas, add precisely positioned content, and create finished documents such as invoices, reports, statements, forms, and certificates without relying on a pre-existing template.\u003C\u002Fp>\n\n\u003Cp>The pdfRest API provides the building blocks for programmatic PDF generation:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Create the document foundation:\u003C\u002Fstrong> Use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-blank-pdf\u002F\">Create Blank PDF API Tool\u003C\u002Fa> to define the page size, orientation, and number of pages.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Add dynamic content:\u003C\u002Fstrong> Use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\">Add to PDF API Tool\u003C\u002Fa> to place text, images, lines, rectangles, and tables using application data.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Build structured layouts:\u003C\u002Fstrong> Create styled tables with headers, footers, merged cells, image cells, and multi-page overflow handling.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Support accessible workflows:\u003C\u002Fstrong> Apply optional structure tags to newly inserted text, images, shapes, and table content.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Assemble documents:\u003C\u002Fstrong> Use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fmerge-pdfs\u002F\">Merge PDFs API Tool\u003C\u002Fa> to combine generated pages, blank canvases, templates, or supporting documents.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Prepare archival output:\u003C\u002Fstrong> Use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdfa\u002F\">Convert to PDF\u002FA API Tool\u003C\u002Fa> to prepare generated documents for long-term preservation and applicable archival workflows.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Generate Documents from Structured Data\u003C\u002Fh2>\n\n\u003Cp>PDF generation becomes especially useful when document content changes for every request. Your application can supply customer information, transaction details, measurements, product data, or other structured content, while the API controls how that data appears in the final PDF.\u003C\u002Fp>\n\n\u003Cp>Common examples include:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>Invoices with customer details, line items, taxes, totals, and payment instructions\u003C\u002Fli>\n  \u003Cli>Financial statements with account summaries and transaction tables\u003C\u002Fli>\n  \u003Cli>Shipping documents with addresses, package details, barcodes, and status information\u003C\u002Fli>\n  \u003Cli>Reports with headings, charts, tables, summaries, and supporting images\u003C\u002Fli>\n  \u003Cli>Certificates and forms with names, dates, identifiers, signatures, and organization branding\u003C\u002Fli>\n  \u003Cli>Compliance documents with required metadata, structured content, and attached source files\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>This approach keeps business data in the application while allowing the PDF layout to be generated consistently for each request.\u003C\u002Fp>\n\n\u003Ch2>Build a PDF from a Blank Canvas\u003C\u002Fh2>\n\n\u003Cp>A typical generation workflow begins with a blank document:\u003C\u002Fp>\n\n\u003Col>\n  \u003Cli>Call Create Blank PDF to establish the page dimensions and page count.\u003C\u002Fli>\n  \u003Cli>Use the returned file identifier as the input to Add to PDF.\u003C\u002Fli>\n  \u003Cli>Insert the document's text, images, shapes, and tables.\u003C\u002Fli>\n  \u003Cli>Repeat the process when additional content must be added.\u003C\u002Fli>\n  \u003Cli>Use other pdfRest API Tools to finalize, combine, secure, or archive the result.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Cp>For example, an invoice workflow might create a Letter-sized blank PDF, add a logo and company information, insert customer and payment details, generate a line-item table, and then add totals and footer content.\u003C\u002Fp>\n\n\u003Cp>The same workflow can also enhance an existing PDF. Add to PDF accepts an existing document when content needs to be appended to a template, report, form, or previously generated file.\u003C\u002Fp>\n\n\u003Ch2>Generate Tables and Structured Content\u003C\u002Fh2>\n\n\u003Cp>The Add to PDF API Tool supports table-oriented layouts for data-driven documents. Applications can define:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>Fixed or proportional column widths\u003C\u002Fli>\n  \u003Cli>Header and footer rows\u003C\u002Fli>\n  \u003Cli>Repeated headers when a table continues onto another page\u003C\u002Fli>\n  \u003Cli>Merged cells spanning multiple columns or rows\u003C\u002Fli>\n  \u003Cli>Cell-level text and image content\u003C\u002Fli>\n  \u003Cli>Table, row, column, and cell styling\u003C\u002Fli>\n  \u003Cli>Borders, fills, padding, opacity, and text formatting\u003C\u002Fli>\n  \u003Cli>Optional structure tags for table content\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>These capabilities make it possible to generate useful business documents directly from records, transactions, or other structured input rather than treating the PDF as a collection of unrelated text fragments.\u003C\u002Fp>\n\n\u003Ch2>Support Tagged PDF Generation\u003C\u002Fh2>\n\n\u003Cp>Generated documents can include optional structure tags for newly inserted content. These tags can identify text, images, shapes, and tables in the PDF structure for downstream processing and accessibility-oriented workflows.\u003C\u002Fp>\n\n\u003Cp>When a document is built from a blank PDF, the generated content can be tagged as it is added. When content is added to an already tagged PDF, the new tagged content can be appended while preserving the existing document structure.\u003C\u002Fp>\n\n\u003Cp>Tagging does not automatically create a complete structure tree for pre-existing untagged content. It is intended to identify content introduced by the current generation or enhancement workflow.\u003C\u002Fp>\n\n\u003Ch2>Scale Document Generation Workflows\u003C\u002Fh2>\n\n\u003Cp>Once the document layout is defined, the same workflow can be applied to large volumes of requests. Generate individualized documents from billing records, customer data, transactions, or other application events while maintaining consistent page geometry and formatting.\u003C\u002Fp>\n\n\u003Cp>Batch-oriented generation can help organizations:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>Produce customer-specific documents automatically\u003C\u002Fli>\n  \u003Cli>Reduce manual document preparation\u003C\u002Fli>\n  \u003Cli>Apply consistent branding and layout rules\u003C\u002Fli>\n  \u003Cli>Generate documents on demand or on a schedule\u003C\u002Fli>\n  \u003Cli>Integrate PDF output with storage, delivery, and archival systems\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Combine and Finalize Generated PDFs\u003C\u002Fh2>\n\n\u003Cp>Generated PDFs can be passed through additional pdfRest workflows depending on the requirements of the final document:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>Combine generated pages or supporting documents with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fmerge-pdfs\u002F\">Merge PDFs API Tool\u003C\u002Fa>.\u003C\u002Fli>\n  \u003Cli>Prepare the result for archival workflows with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdfa\u002F\">Convert to PDF\u002FA API Tool\u003C\u002Fa>.\u003C\u002Fli>\n  \u003Cli>Compress the output for more efficient storage or delivery.\u003C\u002Fli>\n  \u003Cli>Attach XML, spreadsheets, or supporting files to the PDF.\u003C\u002Fli>\n  \u003Cli>Encrypt or restrict the document when access controls are required.\u003C\u002Fli>\n  \u003Cli>Upload, poll, and manage files through the supporting workflow tools.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Start Building PDFs from Application Data\u003C\u002Fh2>\n\n\u003Cp>Use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-blank-pdf\u002F\">Create Blank PDF API Tool\u003C\u002Fa> to define the document canvas, then use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\">Add to PDF API Tool\u003C\u002Fa> to populate it with dynamic content.\u003C\u002Fp>\n\n\u003Cp>Together, these tools provide a foundation for generating custom PDFs from scratch, enhancing existing documents, and building scalable document workflows around application data.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-11-21T21:00:16.000+00:00","2026-09-04T17:53:41.000+00:00","2025-11-21T21:05:30.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-generation\u002F#collection\",\n      \"name\": \"PDF Generation\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-generation\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fpersonalize-pdf-templates-with-dynamic-content\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerate-dynamic-pdf-reports-with-structured-tables\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-tagged-pdfs-from-scratch-with-application-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fachieve-custom-pdf-generation-workflows-via-api\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-programmatic-pdf-invoice-generation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-page-numbers-to-pdf-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-pdf-text-insertion-for-variable-data-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-generated-barcodes-to-pdf-forms\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-an-e-invoicing-pdf-workflow-for-regulatory-compliance\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Programmatically generate custom PDF documents from data, build complex reports, and create PDFs using the Create Blank PDF and Add to PDF APIs.\",\n      \"keywords\": \"Add to PDF, Create Blank PDF, PDF Generation, Tables, Tagged PDF\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Generation\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-generation\u002F\"\n        }\n      ]\n    }\n  ]\n}",[1834],{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},[1836,1837,1841,1845,1849,1853,1857],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1838,"name":1839,"slug":1839,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1840},"6920d340533c9f26b943a862","pdf-generation","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fpdf-generation\u002F",{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f5e","#Add to PDF","hash-add-to-pdf",{"id":1846,"name":1847,"slug":1848,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6920ce6e533c9f26b943a84b","#Create Blank PDF","hash-create-blank-pdf",{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6920ce6e533c9f26b943a84c","#PDF Generation","hash-pdf-generation",{"id":1854,"name":1855,"slug":1856,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a6cba55533c9f26b943aad9","#Tagged PDF","hash-tagged-pdf",{"id":1858,"name":1859,"slug":1860,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a6cefd6533c9f26b943aaf7","#Tables","hash-tables",{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fpdf-generation-hub\u002F","\n\n\n\n\nAchieve Custom PDF Generation Workflows via API\n\n\n\nBuild professional PDF documents from application data using pdfRest. Start with a blank PDF canvas, add precisely positioned content, and create finished documents such as invoices, reports, statements, forms, and certificates without relying on a pre-existing template.\n\n\n\nThe pdfRest API provides the building blocks for programmatic PDF generation:\n\n\n\n * Create the document foundation: Use the Create Blank PDF API Tool to define the page ","PDF Generation API, Programmatic Custom Document Creation | pdfRest","Programmatically generate custom PDF documents from data, build complex reports, and create PDFs using the Create Blank PDF and Add to PDF APIs.",{"id":1868,"uuid":1869,"title":1870,"slug":1871,"html":1872,"comment_id":1873,"feature_image":48,"featured":284,"visibility":1257,"created_at":1874,"updated_at":1723,"published_at":1875,"custom_excerpt":48,"codeinjection_head":1876,"codeinjection_foot":48,"custom_template":48,"canonical_url":1877,"authors":1878,"tags":1880,"primary_author":1942,"primary_tag":1943,"url":1944,"excerpt":1945,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1946,"meta_description":1947,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12ed","f6a77bfa-537f-4d51-a686-c8dcec2b488f","PDF Optimization","pdf-optimization-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Optimize PDFs for Maximum Efficiency and Performance with pdfRest\u003C\u002Fh2>\n\n\u003Cp>pdfRest offers a comprehensive suite of tools to optimize your PDF documents for specific needs, from print to digital and beyond, including:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Print Optimization:\u003C\u002Fstrong> Prepare PDFs for high-quality printing with features like \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-pdf-colors\u002F'>color space conversion\u003C\u002Fa>, \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Frasterize-pdf\u002F'>page rasterization\u003C\u002Fa>, and \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fflatten-transparencies\u002F'>transparency flattening\u003C\u002Fa>.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Web Viewing:\u003C\u002Fstrong> Optimize PDFs for fast loading and smooth rendering on web browsers with \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Flinearize-pdf\u002F'>linearization\u003C\u002Fa>.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Archiving:\u003C\u002Fstrong> Ensure long-term preservation of PDFs by converting them to \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdfa\u002F'>archival formats\u003C\u002Fa>.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Storage:\u003C\u002Fstrong> \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcompress-pdf\u002F'>Reduce file size\u003C\u002Fa> and optimize for efficient storage without compromising quality.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Performance:\u003C\u002Fstrong> Enhance PDF performance by flattening elements like \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fflatten-annotations\u002F'>annotations\u003C\u002Fa> and \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fflatten-layers\u002F'>layers\u003C\u002Fa>.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\n\u003Ch2>Streamline Your Workflows with Batch Processing\u003C\u002Fh2>\n\n\u003Cp>pdfRest's batch processing capabilities allow you to optimize large volumes of PDFs simultaneously, saving you time and effort. Enjoy the benefits of:\u003C\u002Fp>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>Increased productivity:\u003C\u002Fstrong> Process multiple PDFs with concurrent API calls.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Time and cost savings:\u003C\u002Fstrong> Automate repetitive tasks and reduce manual effort.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Consistent results:\u003C\u002Fstrong> Ensure consistent optimization across all your PDFs.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\n\u003Cp>Experience the power of pdfRest's optimization tools and unlock the full potential of your PDF documents.\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","653932742d4014c9499b2466","2023-10-25T15:21:24.000+00:00","2023-10-25T15:22:25.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-optimization\u002F#collection\",\n      \"name\": \"PDF Optimization\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-optimization\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fextract-structured-pdf-data-for-optimized-llm-training-with-markdown\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-web-application-performance-by-compressing-pdfs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fresize-pdf-pages-for-consistent-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcrop-pdf-files-to-optimize-scanned-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fremove-white-space-from-pdf-files-for-professional-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-file-submissions-for-uae-digital-government-strategy-2025\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fenhance-pdf-security-by-rasterizing-text\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fflatten-pdf-pages-to-raster-images-for-seamless-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fchoose-the-right-pdf-x-version-for-your-print-needs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-forms-for-e-signature-compatibility-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-searchable-pdf-files-with-ocr\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-an-e-invoicing-pdf-workflow-for-regulatory-compliance\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconverting-pdf-files-to-grayscale\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmaximize-pdf-performance-with-reduced-file-size\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-filled-pdf-forms-for-universal-compatibility\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-to-pdfx-to-optimize-for-print\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fflatten-transparencies-for-improved-print-performance\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-documents-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-word-excel-and-powerpoint-files-for-long-term-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdfs-for-email-attachment\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdfs-for-fast-web-viewing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-layers-in-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-layers-of-a-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-layers-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-poll-for-api-request-status-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 47,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-poll-for-api-request-status-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 48,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-compress-pdf-files-to-reduce-file-size\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 49,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-crop-and-resize-pdf-pages-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 50,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-flatten-pdf-forms-for-compatibility-and-security\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 51,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 52,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 53,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 54,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 55,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 56,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 57,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-c-code-in-net\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 58,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 59,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 60,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 61,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 62,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 63,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 64,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 65,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 66,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 67,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 68,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 69,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-in-net-with-c-2\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 70,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 71,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 72,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-multiple-files-to-pdfrest-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 73,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-multiple-files-to-pdfrest-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 74,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 75,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 76,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 77,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 78,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 79,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 80,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 81,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 82,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 83,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 84,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 85,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Optimize PDFs for print, web viewing, archive, storage, performance, and other document objectives with pdfRest API Toolkit.\",\n      \"keywords\": \"API Polling, Accessibility, Attachment, Compatibility, Crop, Flatten Annotations, Flatten Layers, Linearize PDF, Optimization, Rasterize PDF, Resize, Unzip, Upload Files, Zip Files\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Optimization\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-optimization\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-optimization\u002F",[1879],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1881,1882,1886,1890,1894,1898,1902,1906,1910,1914,1918,1922,1926,1930,1934,1938],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1883,"name":1884,"slug":1884,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1885},"65ae9a81656af204db4b0f4e","pdf-optimization","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fpdf-optimization\u002F",{"id":1887,"name":1888,"slug":1889,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e24","#Linearize PDF","hash-linearize-pdf",{"id":1891,"name":1892,"slug":1893,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e15","#Optimization","hash-optimization",{"id":1895,"name":1896,"slug":1897,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f5c","#Flatten Annotations","hash-flatten-annotations",{"id":1899,"name":1900,"slug":1901,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f5b","#Flatten Layers","hash-flatten-layers",{"id":1903,"name":1904,"slug":1905,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f84","#Compatibility","hash-compatibility",{"id":1907,"name":1908,"slug":1909,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"661e89f2533c9f26b943714b","#Attachment","hash-attachment",{"id":1911,"name":1912,"slug":1913,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f57","#Upload Files","hash-upload-files",{"id":1915,"name":1916,"slug":1917,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65f7b777533c9f26b9436b0d","#Zip Files","hash-zip-files",{"id":1919,"name":1920,"slug":1921,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"662aa29e533c9f26b9437416","#API Polling","hash-api-polling",{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66a2bcdf533c9f26b9437f76","#Accessibility","hash-accessibility",{"id":1927,"name":1928,"slug":1929,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"67366b58533c9f26b9438e5b","#Unzip","hash-unzip",{"id":1931,"name":1932,"slug":1933,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6793dfcc533c9f26b94391e9","#Rasterize PDF","hash-rasterize-pdf",{"id":1935,"name":1936,"slug":1937,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68375d7b533c9f26b94399a1","#Crop","hash-crop",{"id":1939,"name":1940,"slug":1941,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"683779b9533c9f26b94399d3","#Resize","hash-resize",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fpdf-optimization-hub\u002F","\n\n\n\n\nOptimize PDFs for Maximum Efficiency and Performance with pdfRest\n\n\n\npdfRest offers a comprehensive suite of tools to optimize your PDF documents for specific needs, from print to digital and beyond, including:\n\n\n\n * Print Optimization: Prepare PDFs for high-quality printing with features like color space conversion, page rasterization, and transparency flattening.\n * Web Viewing: Optimize PDFs for fast loading and smooth rendering on web browsers with linearization.\n * Archiving: Ensure lo","PDF Optimization, Optimize for Print, Web, Archive | pdfRest","Optimize PDFs for print, web viewing, archive, storage, performance, and other document objectives with pdfRest API Toolkit.",{"id":1949,"uuid":1950,"title":1951,"slug":1952,"html":1953,"comment_id":1954,"feature_image":48,"featured":284,"visibility":1257,"created_at":1955,"updated_at":1956,"published_at":1957,"custom_excerpt":48,"codeinjection_head":1958,"codeinjection_foot":48,"custom_template":48,"canonical_url":1959,"authors":1960,"tags":1962,"primary_author":2032,"primary_tag":2033,"url":2034,"excerpt":2035,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2036,"meta_description":2037,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12dd","10145b3c-dd78-4c0c-abcd-92608d99ab77","PDF Security","pdf-security-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Protect Sensitive Data and Control Access to PDF Documents\u003C\u002Fh2>\n\n\u003Cp>pdfRest's PDF Security API provides a robust toolkit for safeguarding sensitive information and controlling access to your PDF documents. With a wide range of features, you can implement comprehensive security measures to protect your valuable content from unauthorized access, modification, or distribution. Whether you need to redact PII, restrict editing permissions, add watermarks, prevent AI scraping, or implement advanced encryption, pdfRest's API equips you with the necessary tools to maintain the integrity and confidentiality of your PDFs.\u003C\u002Fp>\n\n\u003Ch2>Key PDF Security Features\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Redaction:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf-api\u002F'>Redact PDF\u003C\u002Fa> API to find and redact private information, including exact matches or pattern matches like phone numbers, credit card numbers, and email addresses.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Digital Signatures:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsign-pdf\u002F'>Sign PDF\u003C\u002Fa> API to apply cryptographic digital signatures to PDF files, ensuring authenticity and compliance.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Password Protection:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fencrypt-pdf\u002F'>Encrypt PDF\u003C\u002Fa> API to require passwords for opening PDF documents.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Apply Restrictions:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Frestrict-pdf\u002F'>Restrict PDF\u003C\u002Fa> API to control PDF editing, printing, copying, and other restrictions.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Watermarking:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fwatermark-pdf\u002F'>Watermark PDF\u003C\u002Fa> API to apply image or text watermarks to visually identify and protect your documents.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>AI Scraping Protection:\u003C\u002Fstrong> Use \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Ftdm-reserve-pdf\u002F'>TDM Reserve PDF\u003C\u002Fa> API to embed machine-readable metadata that restricts automated text and data mining, explicitly opting your content out of AI training.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>By leveraging pdfRest's PDF Security API Tools, you can effectively protect your sensitive data, control access to your documents, and deter unauthorized use.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","651f0e2d2d4014c9499b2127","2023-10-05T19:27:41.000+00:00","2026-09-04T17:53:51.000+00:00","2023-10-05T19:27:53.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-security\u002F#collection\",\n      \"name\": \"PDF Security\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-security\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fsecure-proprietary-pdf-reports-from-ai-scraping-and-data-mining\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-eu-cdsm-article-4-compliance-for-digital-pdf-publications\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-email-to-pdf-for-legal-and-compliance-archives\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fsecure-digital-contracts-for-remote-teams-and-clients\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fstreamline-batch-pdf-signing-for-high-volume-workflows\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fprotect-data-privacy-in-financial-services-with-pdf-redaction-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fchoose-the-right-pdf-a-version-for-your-archival-or-compliance-needs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fensure-patient-privacy-in-healthcare-research-with-pdf-redaction-solution\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fensure-gdpr-compliance-for-pdf-processing-with-eu-based-cloud-api\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fself-host-your-pdf-processing-api-on-premises-with-container-deployment\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Foptimize-pdf-file-submissions-for-uae-digital-government-strategy-2025\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fenhance-pdf-security-by-rasterizing-text\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Faccess-pdf-processing-power-with-ai-magic\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-pdf-watermarks-that-cannot-be-removed\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fpreserving-copyright-through-watermarking\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcreate-secure-document-workflows-with-pdf-password-protection\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fbest-fit-pdf-toolkit-integration-for-any-application-or-workflow\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-documents-into-encrypted-pdfs-for-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcontrol-your-backend-with-pdfrest-api-toolkit-self-hosted\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdelete-pages-from-a-pdf-to-sanitize-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-digital-signatures-for-secure-and-efficient-workflows-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-redaction-for-data-privacy-and-compliance-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-in-net-with-c-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-curl-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 47,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 48,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 49,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 50,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 51,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 52,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 53,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 54,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-add-watermark-to-pdf\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 55,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-flatten-pdf-forms-for-compatibility-and-security\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 56,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-redact-pdf-files-to-remove-sensitive-data\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 57,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-sign-pdf-documents-with-digital-signatures-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 58,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 59,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 60,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 61,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 62,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 63,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 64,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-password-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 65,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-password-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 66,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 67,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 68,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 69,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 70,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 71,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 72,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 73,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 74,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 75,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 76,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 77,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 78,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 79,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 80,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 81,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 82,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 83,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Learn how to secure and protect your PDF documents with a safe and reliable API service from pdfRest. Encrypt with password-protection, restrict access rights, & add watermarks.\",\n      \"keywords\": \"Compliance, Copyright, Decrypt PDF, Delete File, Digital Signature, EU, Encrypt PDF, GDPR, Password, Redact PDF, Restrict PDF, Sanitization, Security, Sign PDF, TDM Reserve PDF, Watermark PDF\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"PDF Security\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-security\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fpdf-security\u002F",[1961],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[1963,1964,1968,1972,1976,1980,1984,1988,1992,1996,2000,2004,2008,2012,2016,2020,2024,2028],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1965,"name":1966,"slug":1966,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1967},"65ae9a81656af204db4b0f46","pdf-security","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fpdf-security\u002F",{"id":1969,"name":1970,"slug":1971,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ea9","#Copyright","hash-copyright",{"id":1973,"name":1974,"slug":1975,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e75","#Decrypt PDF","hash-decrypt-pdf",{"id":1977,"name":1978,"slug":1979,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e79","#Password","hash-password",{"id":1981,"name":1982,"slug":1983,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e76","#Restrict PDF","hash-restrict-pdf",{"id":1985,"name":1986,"slug":1987,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e26","#Sanitization","hash-sanitization",{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e65","#Security","hash-security",{"id":1993,"name":1994,"slug":1995,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0ea8","#Watermark PDF","hash-watermark-pdf",{"id":1997,"name":1998,"slug":1999,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e74","#Encrypt PDF","hash-encrypt-pdf",{"id":2001,"name":2002,"slug":2003,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"67d0b2c5533c9f26b9439406","#GDPR","hash-gdpr",{"id":2005,"name":2006,"slug":2007,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"67d0b2c5533c9f26b9439407","#Compliance","hash-compliance",{"id":2009,"name":2010,"slug":2011,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"67d0b2c5533c9f26b9439408","#EU","hash-eu",{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"680a7e16533c9f26b943953e","#Redact PDF","hash-redact-pdf",{"id":2017,"name":2018,"slug":2019,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"687a7471533c9f26b9439e29","#Sign PDF","hash-sign-pdf",{"id":2021,"name":2022,"slug":2023,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"687a9b7d533c9f26b9439e8d","#Digital Signature","hash-digital-signature",{"id":2025,"name":2026,"slug":2027,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68e94c0a533c9f26b943a723","#Delete File","hash-delete-file",{"id":2029,"name":2030,"slug":2031,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"69eb8570533c9f26b943a9bd","#TDM Reserve PDF","hash-tdm-reserve-pdf",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fpdf-security-hub\u002F","\n\n\n\n\nProtect Sensitive Data and Control Access to PDF Documents\n\n\n\npdfRest's PDF Security API provides a robust toolkit for safeguarding sensitive information and controlling access to your PDF documents. With a wide range of features, you can implement comprehensive security measures to protect your valuable content from unauthorized access, modification, or distribution. Whether you need to redact PII, restrict editing permissions, add watermarks, prevent AI scraping, or implement advanced enc","PDF Security - Encrypt, Restrict, Watermark to Secure PDF Files | pdfRest","Learn how to secure and protect your PDF documents with a safe and reliable API service from pdfRest. Encrypt with password-protection, restrict access rights, & add watermarks.",{"id":2039,"uuid":2040,"title":2041,"slug":2042,"html":2043,"comment_id":2044,"feature_image":48,"featured":284,"visibility":1257,"created_at":2045,"updated_at":2046,"published_at":2047,"custom_excerpt":48,"codeinjection_head":2048,"codeinjection_foot":48,"custom_template":48,"canonical_url":2049,"authors":2050,"tags":2052,"primary_author":2106,"primary_tag":2107,"url":2108,"excerpt":2109,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2110,"meta_description":2111,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e4","d10e4ac1-b516-4977-941d-38e2fde9c5af","Platform Integrations","platform-integrations-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Streamline PDF Workflows with pdfRest and Low-Code \u002F No-Code Solutions\u003C\u002Fh2>\n\u003Cp>pdfRest seamlessly integrates with popular low-code and no-code platforms, empowering you to create secure and efficient PDF document workflows without extensive coding. This approach enables rapid development, deployment, and scaling to meet your evolving needs.\u003C\u002Fp>\n\n\u003Ch2>Leverage Powerful Integrations\u003C\u002Fh2>\n\u003Cp>pdfRest supports integration with a wide range of third-party services, including low-code and no-code solutions like:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-with-microsoft-power-automate\u002F'>Microsoft Power Automate\u003C\u002Fa>:\u003C\u002Fstrong> Automate tasks and build workflows for PDF processing within the Microsoft ecosystem.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-salesforce-apex-code\u002F'>Salesforce Apex\u003C\u002Fa>:\u003C\u002Fstrong> Extend Salesforce functionality and integrate pdfRest's PDF processing capabilities directly into your CRM.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-zapier-automation-google-drive-storage\u002F'>Zapier\u003C\u002Fa>:\u003C\u002Fstrong> Connect pdfRest with thousands of other applications to create powerful automated workflows.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-bubble-to-automate-pdf-workflows'>Bubble.io\u003C\u002Fa>:\u003C\u002Fstrong> Build user-friendly web applications with drag-and-drop functionality and integrate pdfRest for seamless PDF processing.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-make-automation-google-drive-storage\u002F'>Make.com\u003C\u002Fa>:\u003C\u002Fstrong> Automate complex workflows connecting pdfRest with various applications and data sources for a unified solution.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-n8n-automation-and-dropbox-storage\u002F'>n8n.io\u003C\u002Fa>:\u003C\u002Fstrong> Create flexible and powerful low-code workflows to connect pdfRest with over 400+ applications and services.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fgithub.com\u002Fdatalogics\u002Fpdf-rest-api-samples\u002Ftree\u002Fmain\u002FGoogle%20Apps%20Script'>Google Apps Script\u003C\u002Fa>:\u003C\u002Fstrong> Leverage Google Apps Script for custom scripting and integrate pdfRest's APIs for powerful PDF automation within Google Workspace.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>And more!\u003C\u002Fstrong> Easily integrate pdfRest with any service that can send out API Calls as standard http requests.\u003C\u002Fp>\n\u003C\u002Ful>\n\n\n\u003Cp>Unlock the power of low-code\u002Fno-code development and pdfRest's robust PDF processing capabilities. Start building secure and efficient workflows today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","651f10e52d4014c9499b21c3","2023-10-05T19:39:17.000+00:00","2026-09-04T17:53:46.000+00:00","2023-10-05T19:40:06.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fplatform-integrations\u002F#collection\",\n      \"name\": \"Platform Integrations\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fplatform-integrations\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-bubble-to-automate-pdf-workflows\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-make-automation-google-drive-storage\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-zapier-automation-google-drive-storage\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-n8n-automation-and-dropbox-storage\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftransform-pdf-files-to-markdown-for-dynamic-web-content-seo\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fadd-generated-barcodes-to-pdf-forms\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerating-summaries-of-pdf-documents-using-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftranslate-pdf-text-to-new-language-with-chatgpt\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-with-microsoft-power-automate\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-chatgpt-to-generate-pdf-info-summary\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-salesforce-apex-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-digital-signatures-for-secure-and-efficient-workflows-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-redaction-for-data-privacy-and-compliance-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Integrate PDF processing workflows with low-code and no-code services using pdfRest API Tools. Connect pdfRest with Power Automate, Salesforce, Bubble.io, & more.\",\n      \"keywords\": \"Apex, Bubble, Integration, Low Code, Make, Microsoft Power Automate, No Code, Power Automate, Salesforce, Workato, Zapier, n8n\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Platform Integrations\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fplatform-integrations\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fplatform-integrations\u002F",[2051],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[2053,2054,2058,2062,2066,2070,2074,2078,2082,2086,2090,2094,2098,2102],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2055,"name":2056,"slug":2056,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2057},"65ae9a81656af204db4b0f4f","platform-integrations","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fplatform-integrations\u002F",{"id":2059,"name":2060,"slug":2061,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e9d","#Apex","hash-apex",{"id":2063,"name":2064,"slug":2065,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e9c","#Integration","hash-integration",{"id":2067,"name":2068,"slug":2069,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0efc","#Low Code","hash-low-code",{"id":2071,"name":2072,"slug":2073,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0efb","#Microsoft Power Automate","hash-microsoft-power-automate",{"id":2075,"name":2076,"slug":2077,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0efd","#No Code","hash-no-code",{"id":2079,"name":2080,"slug":2081,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0efe","#Power Automate","hash-power-automate",{"id":2083,"name":2084,"slug":2085,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e9b","#Salesforce","hash-salesforce",{"id":2087,"name":2088,"slug":2089,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68b9e104533c9f26b943a1fd","#Zapier","hash-zapier",{"id":2091,"name":2092,"slug":2093,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68b9d8fd533c9f26b943a1eb","#n8n","hash-n8n",{"id":2095,"name":2096,"slug":2097,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68bb42e7533c9f26b943a398","#Make","hash-make",{"id":2099,"name":2100,"slug":2101,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68cad1c0533c9f26b943a4eb","#Bubble","hash-bubble",{"id":2103,"name":2104,"slug":2105,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68cad1f2533c9f26b943a4f4","#Workato","hash-workato",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fplatform-integrations-hub\u002F","\n\n\n\n\nStreamline PDF Workflows with pdfRest and Low-Code \u002F No-Code Solutions\n\n\npdfRest seamlessly integrates with popular low-code and no-code platforms, empowering you to create secure and efficient PDF document workflows without extensive coding. This approach enables rapid development, deployment, and scaling to meet your evolving needs.\n\n\n\n\nLeverage Powerful Integrations\n\n\npdfRest supports integration with a wide range of third-party services, including low-code and no-code solutions like:\n\n\n","Platform Integrations for Low-Code, No-Code PDF Processing | pdfRest","Integrate PDF processing workflows with low-code and no-code services using pdfRest API Tools. Connect pdfRest with Power Automate, Salesforce, Bubble.io, & more.",{"id":2113,"uuid":2114,"title":2115,"slug":2116,"html":2117,"comment_id":2118,"feature_image":48,"featured":284,"visibility":1257,"created_at":2119,"updated_at":2120,"published_at":2121,"custom_excerpt":48,"codeinjection_head":2122,"codeinjection_foot":48,"custom_template":48,"canonical_url":2123,"authors":2124,"tags":2126,"primary_author":2192,"primary_tag":2193,"url":2194,"excerpt":2195,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2196,"meta_description":2197,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12da","4748ab16-04dc-4a54-953a-cbbde9b077b1","Prepress Preflight Print","print","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Ensure Flawless Printing with pdfRest's Prepress Automation Solutions\u003C\u002Fh2>\n\u003C!--kg-card-end: html-->\n\u003Cfigure class=\"kg-card kg-embed-card\">\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FD938x1ug8XI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen=\"\" title=\"How to Automate a Print-Ready PDF Solution | pdfRest\">\u003C\u002Fiframe>\u003C\u002Ffigure>\n\u003C!--kg-card-begin: html-->\n\u003Cp>Streamline document preparation and eliminate costly printing errors with pdfRest's powerful suite of prepress and preflight tools tailored for the print industry.\u003C\u002Fp>\n\n\u003Ch2>Optimize Print Workflows and Eliminate Errors\u003C\u002Fh2>\n\u003Cp>In commercial printing, even minor PDF errors can lead to costly reprints and missed deadlines. pdfRest’s prepress tools ensure your documents are print-ready and compliant with industry standards like PDF\u002FX. Our API tools enhance your prepress with color conversions, precisely set boxes (media, crop, trim, bleed, art), and transparency flattening, helping you achieve print-ready PDFs.\u003C\u002Fp>\n\n\u003Ch2>Key Preflight Features for Developers:\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdfx\u002F'>Convert to PDF\u002FX API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Achieve the print-ready standards required by printers worldwide.\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fflatten-transparencies\u002F'>Flatten Transparencies API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Prevent unexpected print results by flattening transparency layers.\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-pdf-colors\u002F'>Convert PDF Colors API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Ensure accurate color representation by converting RGB to CMYK.\n\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Frasterize-pdf\u002F'>Rasterize PDF API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Flatten PDF pages to raster images for simplified printing.\n\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fset-page-boxes\u002F'>Set Page Boxes API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Set MediaBox, CropBox, BleedBox, TrimBox, and ArtBox.\n\u003C\u002Fli>\n\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-postscript\u002F'>PDF to PostScript API Tool\u003C\u002Fa>:\u003C\u002Fstrong> Convert PDF to PostScript for print production workflows.\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Why Choose pdfRest for Prepress Solutions?\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Customizable Automations:\u003C\u002Fstrong> Combine tools for transparency flattening and PDF optimization, allowing you to tailor workflows to your needs.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Industry Standards Compliance:\u003C\u002Fstrong> Our tools prepare files to meet PDF\u002FX and other complex commercial printing requirements.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Developer-Friendly API:\u003C\u002Fstrong> Easily integrate pdfRest’s API into your systems with comprehensive documentation and support.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Cost Reduction & Efficiency:\u003C\u002Fstrong> Automate the prepress process to avoid reprints and ensure print-ready PDFs from the start.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Seamless Color Management:\u003C\u002Fstrong> Convert RGB to CMYK for consistent color accuracy across all printed materials.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Quality Adobe Technology:\u003C\u002Fstrong> Powered by Adobe PDF Library and Adobe PDF Converter, technologies that power Acrobat and Distiller.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C!--kg-card-end: html-->\n","651d77242d4014c9499b20b6","2023-10-04T14:31:00.000+00:00","2026-09-04T19:39:01.000+00:00","2023-10-04T15:46:27.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprepress-preflight-print\u002F#collection\",\n      \"name\": \"Prepress Preflight Print\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprepress-preflight-print\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fresize-pdf-pages-for-consistent-archiving\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcrop-pdf-files-to-optimize-scanned-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fremove-white-space-from-pdf-files-for-professional-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fflatten-pdf-pages-to-raster-images-for-seamless-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 6,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-pdf-text-insertion-for-variable-data-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 7,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-color-pdf-to-black-and-white-for-print\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 8,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fchoose-the-right-pdf-x-version-for-your-print-needs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 9,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fautomate-pdf-prepress-for-direct-mailing-jobs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 10,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-files-from-rgb-to-cmyk-for-print\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 11,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fstreamline-document-color-management-for-consistent-printing\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 12,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconverting-pdf-files-to-grayscale\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 13,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fconvert-pdf-to-pdfx-to-optimize-for-print\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 14,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fflattening-pdf-transparencies-while-retaining-color-fidelity\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 15,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fflatten-transparencies-for-improved-print-performance\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 16,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Frender-pdf-pages-to-graphic-file-formats-with-accurate-color-preservation\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 17,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fmerge-multiple-types-of-files-together\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 18,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 19,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 20,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 21,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 22,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 23,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 24,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 25,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 26,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 27,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 28,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 29,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 30,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 31,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 32,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 33,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 34,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 35,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 36,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-x-in-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 37,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-net-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 38,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-x-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 39,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-javascript\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 40,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 41,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-python-2\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 42,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 43,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 44,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 45,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 46,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 47,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 48,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 49,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 50,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 51,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 52,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 53,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 54,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-pdf-x-for-print-ready-documents\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 55,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-crop-and-resize-pdf-pages-guide\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 56,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-in-net-with-c\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 57,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 58,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 59,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-javascript-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 60,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-php\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 61,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-python\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 62,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-c-code-in-net\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 63,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-curl\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 64,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-java\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 65,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-javascript-code-in-nodejs\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 66,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-php-code\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 67,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-python\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Streamline your document preparation for print with pdfRest's prepress and preflight solutions, including preflight checks and optimizations.\",\n      \"keywords\": \"Black & White, CMYK, Color Management, Convert PDF Colors, Convert to PDF\u002FX, Flatten Transparencies, PDF Refrying, PDF to PostScript, PostScript, Prepress, Print, RGB, Set Page Boxes, Translucency, Transparency\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Prepress Preflight Print\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprepress-preflight-print\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprepress-preflight-print\u002F",[2125],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[2127,2128,2132,2136,2140,2144,2148,2152,2156,2160,2164,2168,2172,2176,2180,2184,2188],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2129,"name":2130,"slug":2130,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2131},"65ae9a81656af204db4b0f43","prepress-preflight-print","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fprepress-preflight-print\u002F",{"id":2133,"name":2134,"slug":2135,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e1d","#PostScript","hash-postscript",{"id":2137,"name":2138,"slug":2139,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2d","#Print","hash-print",{"id":2141,"name":2142,"slug":2143,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e56","#Translucency","hash-translucency",{"id":2145,"name":2146,"slug":2147,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2c","#Transparency","hash-transparency",{"id":2149,"name":2150,"slug":2151,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e80","#Color Management","hash-color-management",{"id":2153,"name":2154,"slug":2155,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f61","#Prepress","hash-prepress",{"id":2157,"name":2158,"slug":2159,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f5a","#Convert to PDF\u002FX","hash-convert-to-pdfx",{"id":2161,"name":2162,"slug":2163,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"66759dfb533c9f26b9437c06","#Convert PDF Colors","hash-convert-pdf-colors",{"id":2165,"name":2166,"slug":2167,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"670ee3cf533c9f26b943876d","#CMYK","hash-cmyk-2",{"id":2169,"name":2170,"slug":2171,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"670ee1fc533c9f26b9438759","#RGB","hash-rgb",{"id":2173,"name":2174,"slug":2175,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e2b","#Flatten Transparencies","hash-flatten-transparencies",{"id":2177,"name":2178,"slug":2179,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"671293b5533c9f26b9438922","#Black & White","hash-black-white",{"id":2181,"name":2182,"slug":2183,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"68373fba533c9f26b943992d","#Set Page Boxes","hash-set-page-boxes",{"id":2185,"name":2186,"slug":2187,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a9a5143d1b70dd2e2978ce2","#PDF to PostScript","hash-pdf-to-postscript",{"id":2189,"name":2190,"slug":2191,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"6a999118d1b70dd2e2978a8c","#PDF Refrying","hash-pdf-refrying",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fprint\u002F","\n\n\n\n\nEnsure Flawless Printing with pdfRest's Prepress Automation Solutions\n\n\n\n\n\nStreamline document preparation and eliminate costly printing errors with pdfRest's powerful suite of prepress and preflight tools tailored for the print industry.\n\n\n\n\nOptimize Print Workflows and Eliminate Errors\n\n\nIn commercial printing, even minor PDF errors can lead to costly reprints and missed deadlines. pdfRest’s prepress tools ensure your documents are print-ready and compliant with industry standards like PD","PDF Prepress & Preflight Print API Tools for Developers | pdfRest","Streamline your document preparation for print with pdfRest's prepress and preflight solutions, including preflight checks and optimizations.",{"id":2199,"uuid":2200,"title":2201,"slug":2202,"html":2203,"comment_id":2204,"feature_image":48,"featured":284,"visibility":1257,"created_at":2205,"updated_at":2206,"published_at":2207,"custom_excerpt":48,"codeinjection_head":2208,"codeinjection_foot":48,"custom_template":48,"canonical_url":2209,"authors":2210,"tags":2212,"primary_author":2242,"primary_tag":2243,"url":2244,"excerpt":2245,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2246,"meta_description":2247,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b134e","1daffe00-c3b1-41fa-82b8-e29cee3adc18","Programming Languages","programming-languages-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Process PDFs with Your Favorite Programming Language\u003C\u002Fh2>\n\n\u003Cp>pdfRest empowers you to seamlessly integrate its robust PDF processing capabilities into your existing workflows, regardless of your preferred programming language. Whether you're using Python, JavaScript, C#, Java, PHP, or something else, pdfRest provides the tools and resources to get started quickly and efficiently.\u003C\u002Fp>\n\n\n\u003Ch2>Robust Code Examples for PDF Solutions\u003C\u002Fh2>\n\n\u003Cp>pdfRest's \u003Ca href='https:\u002F\u002Fgithub.com\u002Fdatalogics\u002Fpdf-rest-api-samples'>GitHub Code Sample Repository\u003C\u002Fa> serves as a valuable resource for developers seeking further guidance on pdfRest integration. This repository offers a wealth of code samples and examples across various programming languages, providing practical illustrations of how to implement pdfRest's functionalities.\u003C\u002Fp>\n\n\u003Ch2>Additional pdfRest Developer Resources\u003C\u002Fh2>\n\n\u003Cul>\n  \u003Cli>\u003Cstrong>API Lab:\u003C\u002Fstrong> Test and validate with the \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F'>API Lab\u003C\u002Fa> web interface. Process files online and automatically generate custom code.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Language-specific tutorials:\u003C\u002Fstrong> Find the right \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F'>tutorial\u003C\u002Fa> to learn how to integrate pdfRest with your chosen language for a smooth development experience.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>API Reference Guide:\u003C\u002Fstrong> Use the \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fdocumentation'>API Reference Guide\u003C\u002Fa> to look up endpoints and understand how to configure pdfRest's API for specific tasks.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Start integrating pdfRest with your chosen programming language today and unlock a world of possibilities for your PDF processing needs!\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","657ca2d22d4014c9499b3921","2023-12-15T19:02:42.000+00:00","2026-09-04T17:53:42.000+00:00","2023-12-15T19:04:28.000+00:00","{\"@context\":\"https:\u002F\u002Fschema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprogramming-languages\u002F#collection\",\"name\":\"Programming Languages\",\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprogramming-languages\u002F\",\"isPartOf\":{\"@type\":\"WebSite\",\"name\":\"pdfRest\",\"url\":\"https:\u002F\u002Fpdfrest.com\u002F\"},\"mainEntity\":{\"@type\":\"ItemList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fdiscover-how-pdfrest-outperforms-free-open-source-pdf-tools\u002F\"},{\"@type\":\"ListItem\",\"position\":2,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fgenerating-summaries-of-pdf-documents-using-chatgpt\u002F\"},{\"@type\":\"ListItem\",\"position\":3,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftranslate-pdf-text-to-new-language-with-chatgpt\u002F\"},{\"@type\":\"ListItem\",\"position\":4,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-chatgpt-to-generate-pdf-info-summary\u002F\"},{\"@type\":\"ListItem\",\"position\":5,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files\u002F\"},{\"@type\":\"ListItem\",\"position\":6,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":7,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":8,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":9,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-attachments-to-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":10,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":11,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":12,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":13,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":14,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":15,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-images-to-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":16,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":17,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":18,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":19,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":20,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":21,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-tables-to-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":22,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":23,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":24,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":25,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":26,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":27,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":28,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":29,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":30,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":31,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":32,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":33,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-vector-lines-and-rectangles-to-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":34,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":35,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":36,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":37,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":38,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":39,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-apply-tdm-reservations-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":40,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":41,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":42,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":43,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":44,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":45,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-change-pdf-password-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":46,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":47,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":48,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":49,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":50,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":51,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-check-pdf-conditions-and-metadata-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":52,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":53,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":54,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":55,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":56,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":57,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-compress-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":58,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":59,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":60,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":61,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":62,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-bmp-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":63,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":64,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":65,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":66,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":67,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":68,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":69,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":70,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":71,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":72,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":73,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":74,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-html-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":75,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":76,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":77,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":78,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":79,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":80,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-jpg-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":81,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":82,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":83,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":84,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":85,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":86,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":87,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":88,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":89,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":90,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":91,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":92,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":93,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":94,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":95,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":96,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":97,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":98,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-excel-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":99,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":100,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":101,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":102,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":103,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":104,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-powerpoint-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":105,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":106,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":107,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":108,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":109,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-microsoft-word-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":110,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-word-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":111,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":112,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":113,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":114,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":115,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":116,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-colors-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":117,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":118,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":119,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":120,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":121,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":122,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-color-to-black-and-white-grayscale-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":123,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":124,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":125,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":126,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":127,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":128,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-files-from-rgb-to-cmyk-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":129,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":130,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":131,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":132,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":133,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":134,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-forms-from-xfa-to-acroforms-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":135,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":136,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":137,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":138,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":139,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":140,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-bmp-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":141,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":142,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":143,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":144,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":145,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":146,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-excel-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":147,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":148,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":149,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":150,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":151,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":152,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-jpg-image-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":153,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":154,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":155,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\"},{\"@type\":\"ListItem\",\"position\":156,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":157,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\"},{\"@type\":\"ListItem\",\"position\":158,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":159,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":160,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":161,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":162,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":163,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-a-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":164,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfa-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":165,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-x-in-java\u002F\"},{\"@type\":\"ListItem\",\"position\":166,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-net-c\u002F\"},{\"@type\":\"ListItem\",\"position\":167,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdf-x-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":168,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-javascript\u002F\"},{\"@type\":\"ListItem\",\"position\":169,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":170,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-pdfx-with-python-2\u002F\"},{\"@type\":\"ListItem\",\"position\":171,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":172,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":173,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":174,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":175,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":176,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-png-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":177,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":178,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":179,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":180,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":181,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":182,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-powerpoint-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":183,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":184,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":185,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":186,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":187,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":188,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-tiff-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":189,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":190,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":191,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":192,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":193,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":194,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-word-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":195,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":196,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":197,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":198,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":199,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":200,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":201,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":202,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-php\u002F\"},{\"@type\":\"ListItem\",\"position\":203,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-in-python\u002F\"},{\"@type\":\"ListItem\",\"position\":204,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":205,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-png-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":206,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":207,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":208,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":209,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":210,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-tiff-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":211,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":212,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":213,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":214,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":215,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":216,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":217,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":218,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":219,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":220,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":221,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":222,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-create-a-blank-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":223,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":224,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":225,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":226,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":227,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-php-code\u002F\"},{\"@type\":\"ListItem\",\"position\":228,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-crop-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":229,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":230,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":231,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":232,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":233,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":234,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-files-on-demand-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":235,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":236,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":237,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":238,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":239,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-delete-pages-from-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":240,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-in-net-with-c-code\u002F\"},{\"@type\":\"ListItem\",\"position\":241,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-curl-code\u002F\"},{\"@type\":\"ListItem\",\"position\":242,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-java-code\u002F\"},{\"@type\":\"ListItem\",\"position\":243,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-javascript-code-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":244,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":245,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-digitally-sign-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":246,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":247,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":248,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":249,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":250,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":251,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-encrypt-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":252,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-dot-net-c-sharp\u002F\"},{\"@type\":\"ListItem\",\"position\":253,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":254,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":255,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-javascript\u002F\"},{\"@type\":\"ListItem\",\"position\":256,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":257,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":258,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":259,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":260,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":261,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":262,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":263,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":264,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":265,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":266,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":267,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":268,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":269,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":270,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\"},{\"@type\":\"ListItem\",\"position\":271,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":272,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":273,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\"},{\"@type\":\"ListItem\",\"position\":274,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":275,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":276,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":277,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":278,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":279,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":280,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-annotations-in-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":281,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-layers-in-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":282,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-layers-of-a-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":283,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":284,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":285,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":286,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":287,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":288,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-forms-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":289,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-layers-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":290,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":291,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":292,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":293,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":294,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":295,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-flatten-pdf-transparencies-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":296,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":297,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":298,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":299,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":300,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":301,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":302,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":303,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":304,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":305,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":306,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":307,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-linearize-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":308,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-different-file-formats-together-as-a-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":309,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-different-file-formats-together-as-a-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":310,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdfs-with-dot-net-c-sharp\u002F\"},{\"@type\":\"ListItem\",\"position\":311,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":312,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":313,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":314,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdfs-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":315,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-merge-pdf-documents-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":316,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-poll-for-api-request-status-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":317,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-poll-for-api-request-status-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":318,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":319,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":320,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":321,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":322,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":323,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-rasterize-pdf-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":324,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\"},{\"@type\":\"ListItem\",\"position\":325,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\"},{\"@type\":\"ListItem\",\"position\":326,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\"},{\"@type\":\"ListItem\",\"position\":327,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":328,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\"},{\"@type\":\"ListItem\",\"position\":329,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\"},{\"@type\":\"ListItem\",\"position\":330,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-password-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":331,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-password-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":332,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":333,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":334,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":335,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":336,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":337,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-remove-pdf-restrictions-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":338,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-c-code-in-net\u002F\"},{\"@type\":\"ListItem\",\"position\":339,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":340,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":341,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-javascript-code-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":342,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-php-code\u002F\"},{\"@type\":\"ListItem\",\"position\":343,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-resize-pdf-pages-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":344,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":345,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":346,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":347,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":348,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":349,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-restrict-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":350,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":351,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":352,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":353,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":354,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":355,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-split-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":356,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":357,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":358,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":359,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":360,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":361,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-summarize-pdf-text-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":362,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":363,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":364,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":365,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":366,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":367,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-translate-pdf-text-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":368,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":369,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":370,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":371,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":372,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":373,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-unzip-files-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":374,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-in-net-with-c-2\u002F\"},{\"@type\":\"ListItem\",\"position\":375,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":376,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-a-single-binary-file-to-pdfrest-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":377,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-multiple-files-to-pdfrest-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":378,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-upload-multiple-files-to-pdfrest-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":379,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":380,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":381,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":382,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":383,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":384,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":385,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":386,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":387,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":388,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":389,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":390,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":391,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":392,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":393,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":394,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":395,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":396,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-validate-pdf-a-conformance-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":397,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":398,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":399,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":400,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":401,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":402,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-watermark-pdf-with-python\u002F\"},{\"@type\":\"ListItem\",\"position\":403,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-in-net-with-c\u002F\"},{\"@type\":\"ListItem\",\"position\":404,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-curl\u002F\"},{\"@type\":\"ListItem\",\"position\":405,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-java\u002F\"},{\"@type\":\"ListItem\",\"position\":406,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-javascript-in-nodejs\u002F\"},{\"@type\":\"ListItem\",\"position\":407,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-php\u002F\"},{\"@type\":\"ListItem\",\"position\":408,\"url\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-zip-files-with-python\u002F\"}]},\"description\":\"Integrate powerful PDF processing capabilities into any development project. Discover code examples for a wide range of programming languages.\",\"keywords\":\".NET, Java, JavaScript, PHP, Python, cURL\"},{\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Learning\",\"item\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programming Languages\",\"item\":\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprogramming-languages\u002F\"}]}]}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fprogramming-languages\u002F",[2211],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[2213,2214,2218,2222,2226,2230,2234,2238],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2215,"name":2216,"slug":2216,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2217},"65ae9a81656af204db4b0f99","programming-languages","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fprogramming-languages\u002F",{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8d","#Python","hash-python",{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8e","#JavaScript","hash-javascript",{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8c","#PHP","hash-php",{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0f8f","#.NET","hash-net",{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65d8df4b533c9f26b9436590","#Java","hash-java",{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65d8e139533c9f26b94365a7","#cURL","hash-curl",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fprogramming-languages-hub\u002F","\n\n\n\n\nProcess PDFs with Your Favorite Programming Language\n\n\n\npdfRest empowers you to seamlessly integrate its robust PDF processing capabilities into your existing workflows, regardless of your preferred programming language. Whether you're using Python, JavaScript, C#, Java, PHP, or something else, pdfRest provides the tools and resources to get started quickly and efficiently.\n\n\n\n\n\nRobust Code Examples for PDF Solutions\n\n\n\npdfRest's GitHub Code Sample Repository serves as a valuable resource f","Integrate PDF Processing with Any Programming Language, JavaScript, Python, PHP, Java, C# | pdfRest","Integrate powerful PDF processing capabilities into any development project. Discover code examples for a wide range of programming languages.",{"id":2249,"uuid":2250,"title":2251,"slug":2252,"html":2253,"comment_id":2254,"feature_image":48,"featured":284,"visibility":1257,"created_at":2255,"updated_at":2256,"published_at":2257,"custom_excerpt":48,"codeinjection_head":2258,"codeinjection_foot":48,"custom_template":48,"canonical_url":2259,"authors":2260,"tags":2262,"primary_author":2284,"primary_tag":2285,"url":2286,"excerpt":2287,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2288,"meta_description":2289,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12e5","1a0663f3-8c0f-49e3-ae2c-283275646286","Self-Hosting","self-hosting-hub","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Self-Host pdfRest API for Enhanced Control and Security\u003C\u002Fh2>\n\n\u003Cp>pdfRest offers flexible deployment options to meet your specific needs. Choose between our \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fproducts\u002Fpdf-toolkit-self-hosted-api\u002F'>Self-Hosted API\u003C\u002Fa> for deployment within your own AWS VPC or our \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fproducts\u002Fpdf-toolkit-container-api\u002F'>Container API\u003C\u002Fa> for on-premises or private cloud deployment.\u003C\u002Fp>\n\n\u003Ch2>Key Benefits for Self-Hosting pdfRest\u003C\u002Fh2>\n\u003Cul>\n  \u003Cli>\u003Cstrong>Enhanced Security:\u003C\u002Fstrong> Maintain full control over your PDF data and processing workflows.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Compliance Adherence:\u003C\u002Fstrong> Ensure compliance with industry regulations and internal security standards.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Customization Flexibility:\u003C\u002Fstrong> Tailor your PDF processing environment to meet your specific needs.\u003C\u002Fli>\n  \u003Cli>\u003Cstrong>Private Deployment:\u003C\u002Fstrong> Host the API within your own AWS VPC or on-premises environment for added security and control.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Regulatory Compliance for PDF Processing\u003C\u002Fh2>\n\u003Cp>pdfRest's Self-Hosted API and Container API solutions are designed to help you meet a variety of regulatory compliance requirements, including:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>HIPAA:\u003C\u002Fstrong> Protect patient health information (PHI) with enhanced security measures and compliance controls.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>GDPR:\u003C\u002Fstrong> Ensure compliance with EU data privacy regulations, including data subject rights and data breach notification requirements.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>PCI DSS:\u003C\u002Fstrong> Protect sensitive cardholder data with robust security measures and compliance controls.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>And more:\u003C\u002Fstrong> Self-hosting pdfRest can help you meet a wide range of industry-specific regulations and standards.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Take control of your PDF processing workflows and ensure optimal security and compliance with pdfRest's Self-Hosted API solution or Container API.\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","651f11c92d4014c9499b21e8","2023-10-05T19:43:05.000+00:00","2026-09-04T17:53:45.000+00:00","2023-10-05T19:43:36.000+00:00","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"CollectionPage\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fself-hosting\u002F#collection\",\n      \"name\": \"Self-Hosting\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fself-hosting\u002F\",\n      \"isPartOf\": {\n        \"@type\": \"WebSite\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"mainEntity\": {\n        \"@type\": \"ItemList\",\n        \"itemListElement\": [\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 1,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fself-host-your-pdf-processing-api-on-premises-with-container-deployment\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 2,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fbest-fit-pdf-toolkit-integration-for-any-application-or-workflow\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 3,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fcontrol-your-backend-with-pdfrest-api-toolkit-self-hosted\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 4,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fconnect-to-a-pdfrest-self-hosted-ec2-from-windows\u002F\"\n          },\n          {\n            \"@type\": \"ListItem\",\n            \"position\": 5,\n            \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-modify-pdfrest-cloud-api-code-for-compatibility-with-self-hosted-api\u002F\"\n          }\n        ]\n      },\n      \"description\": \"Host and manage a dedicated deployment of pdfRest API service in AWS or on-premises with Docker Container. Meet regulatory compliance needs by maintaining full control.\",\n      \"keywords\": \"AWS, Container, SDK, Self-Hosted\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Self-Hosting\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fself-hosting\u002F\"\n        }\n      ]\n    }\n  ]\n}","https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fself-hosting\u002F",[2261],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},[2263,2264,2268,2272,2276,2280],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2265,"name":2266,"slug":2266,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2267},"65ae9a81656af204db4b0f51","self-hosting","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fself-hosting\u002F",{"id":2269,"name":2270,"slug":2271,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e64","#AWS","hash-aws",{"id":2273,"name":2274,"slug":2275,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e71","#SDK","hash-sdk",{"id":2277,"name":2278,"slug":2279,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"65ae9a81656af204db4b0e63","#Self-Hosted","hash-self-hosted",{"id":2281,"name":2282,"slug":2283,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},"67180876533c9f26b9438a07","#Container","hash-container",{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},"https:\u002F\u002Fcms.pdfrest.com\u002Fself-hosting-hub\u002F","\n\n\n\n\nSelf-Host pdfRest API for Enhanced Control and Security\n\n\n\npdfRest offers flexible deployment options to meet your specific needs. Choose between our Self-Hosted API for deployment within your own AWS VPC or our Container API for on-premises or private cloud deployment.\n\n\n\n\nKey Benefits for Self-Hosting pdfRest\n\n\n * Enhanced Security: Maintain full control over your PDF data and processing workflows.\n * Compliance Adherence: Ensure compliance with industry regulations and internal security ","Self-Hosted PDF API, AWS & On-Premises Container | pdfRest","Host and manage a dedicated deployment of pdfRest API service in AWS or on-premises with Docker Container. Meet regulatory compliance needs by maintaining full control.",{"isPost":284,"tutorialsHeader":2291,"contentHubs":2313,"post":2366},{"id":2292,"uuid":2293,"title":2294,"slug":2295,"html":2296,"comment_id":2297,"feature_image":48,"featured":284,"visibility":1257,"created_at":2298,"updated_at":2299,"published_at":2300,"custom_excerpt":48,"codeinjection_head":48,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2301,"authors":2306,"primary_author":2308,"primary_tag":2309,"url":2310,"excerpt":2311,"reading_time":215,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2312,"meta_description":2311,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b12f0","2d6b2fd6-b27e-4912-9d83-a23e693d3676","Tutorials","guides-header","\u003Cp>Learn how to process PDF documents with the programming languages, tools, and frameworks that best fit your development project.\u003C\u002Fp>","653ad6c42d4014c9499b2532","2023-10-26T21:14:44.000+00:00","2026-08-31T17:58:57.000+00:00","2023-10-26T21:15:01.000+00:00",[2302],{"id":2303,"name":2304,"slug":2304,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2305},"65ae9a81656af204db4b0f63","tutorials-header","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Ftutorials-header\u002F",[2307],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":2303,"name":2304,"slug":2304,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2305},"https:\u002F\u002Fcms.pdfrest.com\u002Fguides-header\u002F","Learn how to process PDF documents with the programming languages, tools, and frameworks that best fit your development project.","Tutorials | pdfRest",[2314,2332,2343,2366,2382,2400,2415,2430,2440,2451,2469,2482,2504,2528,2548,2571,2585],{"id":1251,"uuid":1252,"title":1253,"slug":1254,"html":1255,"comment_id":1256,"feature_image":48,"featured":284,"visibility":1257,"created_at":1258,"updated_at":1259,"published_at":1260,"custom_excerpt":48,"codeinjection_head":1261,"codeinjection_foot":48,"custom_template":48,"canonical_url":1262,"tags":2315,"authors":2328,"primary_author":2330,"primary_tag":2331,"url":1323,"excerpt":1324,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1325,"meta_description":1326,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1275,"name":1276,"slug":1276,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1277},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1286,"name":1287,"slug":1288,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1290,"name":1291,"slug":1292,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1294,"name":1295,"slug":1296,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1298,"name":1299,"slug":1300,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1302,"name":1303,"slug":1304,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1306,"name":1307,"slug":1308,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1310,"name":1311,"slug":1312,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1314,"name":1315,"slug":1316,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1318,"name":1319,"slug":1320,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2329],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1328,"uuid":1329,"title":1330,"slug":1331,"html":1332,"comment_id":1333,"feature_image":48,"featured":284,"visibility":1257,"created_at":1334,"updated_at":1335,"published_at":1336,"custom_excerpt":48,"codeinjection_head":1337,"codeinjection_foot":48,"custom_template":48,"canonical_url":1338,"tags":2333,"authors":2339,"primary_author":2341,"primary_tag":2342,"url":1361,"excerpt":1362,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1363,"meta_description":1364,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2334,2335,2336,2337,2338],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1344,"name":1345,"slug":1345,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1346},{"id":1348,"name":1349,"slug":1350,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1352,"name":1353,"slug":1354,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1356,"name":1357,"slug":1358,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2340],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1366,"uuid":1367,"title":1368,"slug":1369,"html":1370,"comment_id":1371,"feature_image":48,"featured":284,"visibility":1257,"created_at":1372,"updated_at":1373,"published_at":1374,"custom_excerpt":48,"codeinjection_head":1375,"codeinjection_foot":48,"custom_template":48,"canonical_url":1376,"tags":2344,"authors":2362,"primary_author":2364,"primary_tag":2365,"url":1447,"excerpt":1448,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1449,"meta_description":1450,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1382,"name":1383,"slug":1383,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1384},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1398,"name":1399,"slug":1400,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1402,"name":1403,"slug":1404,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1406,"name":1407,"slug":1408,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1410,"name":1411,"slug":1412,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1434,"name":1435,"slug":1436,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1438,"name":1439,"slug":1440,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1442,"name":1443,"slug":1444,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2363],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1452,"uuid":1453,"title":1454,"slug":1455,"html":1456,"comment_id":1457,"feature_image":48,"featured":284,"visibility":1257,"created_at":1458,"updated_at":1459,"published_at":1460,"custom_excerpt":48,"codeinjection_head":1461,"codeinjection_foot":48,"custom_template":48,"canonical_url":1462,"tags":2367,"authors":2378,"primary_author":2380,"primary_tag":2381,"url":1505,"excerpt":1506,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1507,"meta_description":1508,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2368,2369,2370,2371,2372,2373,2374,2375,2376,2377],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1468,"name":1469,"slug":1469,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1470},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2379],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1510,"uuid":1511,"title":1512,"slug":1513,"html":1514,"comment_id":1515,"feature_image":48,"featured":284,"visibility":1257,"created_at":1516,"updated_at":1517,"published_at":1518,"custom_excerpt":48,"codeinjection_head":1519,"codeinjection_foot":48,"custom_template":48,"canonical_url":1520,"tags":2383,"authors":2396,"primary_author":2398,"primary_tag":2399,"url":1571,"excerpt":1572,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1573,"meta_description":1574,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1526,"name":1527,"slug":1527,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1528},{"id":1530,"name":1531,"slug":1532,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1534,"name":1535,"slug":1536,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1538,"name":1539,"slug":1540,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1550,"name":1551,"slug":1552,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1558,"name":1559,"slug":1560,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1562,"name":1563,"slug":1564,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1566,"name":1567,"slug":1568,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2397],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1576,"uuid":1577,"title":1578,"slug":1579,"html":1580,"comment_id":1581,"feature_image":48,"featured":284,"visibility":1257,"created_at":1582,"updated_at":1459,"published_at":1583,"custom_excerpt":48,"codeinjection_head":1584,"codeinjection_foot":48,"custom_template":48,"canonical_url":1585,"tags":2401,"authors":2411,"primary_author":2413,"primary_tag":2414,"url":1624,"excerpt":1625,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1626,"meta_description":1627,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2402,2403,2404,2405,2406,2407,2408,2409,2410],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1591,"name":1592,"slug":1592,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1593},{"id":1595,"name":1596,"slug":1597,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1599,"name":1600,"slug":1601,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1611,"name":1612,"slug":1613,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1615,"name":1616,"slug":1617,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1619,"name":1620,"slug":1621,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2412],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1629,"uuid":1630,"title":1631,"slug":1632,"html":1633,"comment_id":1634,"feature_image":48,"featured":284,"visibility":1257,"created_at":1635,"updated_at":1636,"published_at":1637,"custom_excerpt":48,"codeinjection_head":1638,"codeinjection_foot":48,"custom_template":48,"canonical_url":1639,"tags":2416,"authors":2426,"primary_author":2428,"primary_tag":2429,"url":1678,"excerpt":1679,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1680,"meta_description":1681,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2417,2418,2419,2420,2421,2422,2423,2424,2425],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1645,"name":1646,"slug":1646,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1647},{"id":1649,"name":1650,"slug":1651,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1653,"name":1654,"slug":1655,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1657,"name":1658,"slug":1659,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1661,"name":1662,"slug":1663,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1665,"name":1666,"slug":1667,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1669,"name":1670,"slug":1671,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1673,"name":1674,"slug":1675,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2427],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1683,"uuid":1684,"title":1685,"slug":1686,"html":1687,"comment_id":1688,"feature_image":48,"featured":284,"visibility":1257,"created_at":1689,"updated_at":1335,"published_at":1690,"custom_excerpt":48,"codeinjection_head":1691,"codeinjection_foot":48,"custom_template":48,"canonical_url":1692,"tags":2431,"authors":2436,"primary_author":2438,"primary_tag":2439,"url":1711,"excerpt":1712,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1713,"meta_description":1714,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2432,2433,2434,2435],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1698,"name":1699,"slug":1699,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1700},{"id":1702,"name":1703,"slug":1704,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1706,"name":1707,"slug":1708,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2437],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1716,"uuid":1717,"title":1718,"slug":1719,"html":1720,"comment_id":1721,"feature_image":48,"featured":284,"visibility":1257,"created_at":1722,"updated_at":1723,"published_at":1724,"custom_excerpt":48,"codeinjection_head":1725,"codeinjection_foot":48,"custom_template":48,"canonical_url":1726,"tags":2441,"authors":2447,"primary_author":2449,"primary_tag":2450,"url":1749,"excerpt":1750,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1751,"meta_description":1752,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2442,2443,2444,2445,2446],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1732,"name":1733,"slug":1733,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1734},{"id":1736,"name":1737,"slug":1738,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1740,"name":1741,"slug":1742,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1744,"name":1745,"slug":1746,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2448],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1754,"uuid":1755,"title":1756,"slug":1757,"html":1758,"comment_id":1759,"feature_image":48,"featured":284,"visibility":1257,"created_at":1760,"updated_at":1761,"published_at":1762,"custom_excerpt":48,"codeinjection_head":1763,"codeinjection_foot":48,"custom_template":48,"canonical_url":1764,"tags":2452,"authors":2465,"primary_author":2467,"primary_tag":2468,"url":1819,"excerpt":1820,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1821,"meta_description":1822,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1774,"name":1775,"slug":1775,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1776},{"id":1778,"name":1779,"slug":1780,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1786,"name":1787,"slug":1788,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1790,"name":1791,"slug":1792,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1794,"name":1795,"slug":1796,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1798,"name":1799,"slug":1800,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1802,"name":1803,"slug":1804,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1806,"name":1807,"slug":1808,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1810,"name":1811,"slug":1812,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1814,"name":1815,"slug":1816,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2466],{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1824,"uuid":1825,"title":1826,"slug":1827,"html":1828,"comment_id":1824,"feature_image":48,"featured":284,"visibility":1257,"created_at":1829,"updated_at":1830,"published_at":1831,"custom_excerpt":48,"codeinjection_head":1832,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2470,"authors":2478,"primary_author":2480,"primary_tag":2481,"url":1863,"excerpt":1864,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1865,"meta_description":1866,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2471,2472,2473,2474,2475,2476,2477],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1838,"name":1839,"slug":1839,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1840},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1846,"name":1847,"slug":1848,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1854,"name":1855,"slug":1856,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1858,"name":1859,"slug":1860,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2479],{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1767,"name":1768,"slug":1769,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1770},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1868,"uuid":1869,"title":1870,"slug":1871,"html":1872,"comment_id":1873,"feature_image":48,"featured":284,"visibility":1257,"created_at":1874,"updated_at":1723,"published_at":1875,"custom_excerpt":48,"codeinjection_head":1876,"codeinjection_foot":48,"custom_template":48,"canonical_url":1877,"tags":2483,"authors":2500,"primary_author":2502,"primary_tag":2503,"url":1944,"excerpt":1945,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":1946,"meta_description":1947,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1883,"name":1884,"slug":1884,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1885},{"id":1887,"name":1888,"slug":1889,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1891,"name":1892,"slug":1893,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1895,"name":1896,"slug":1897,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1899,"name":1900,"slug":1901,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1903,"name":1904,"slug":1905,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1907,"name":1908,"slug":1909,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1911,"name":1912,"slug":1913,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1915,"name":1916,"slug":1917,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1919,"name":1920,"slug":1921,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1927,"name":1928,"slug":1929,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1931,"name":1932,"slug":1933,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1935,"name":1936,"slug":1937,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1939,"name":1940,"slug":1941,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2501],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1949,"uuid":1950,"title":1951,"slug":1952,"html":1953,"comment_id":1954,"feature_image":48,"featured":284,"visibility":1257,"created_at":1955,"updated_at":1956,"published_at":1957,"custom_excerpt":48,"codeinjection_head":1958,"codeinjection_foot":48,"custom_template":48,"canonical_url":1959,"tags":2505,"authors":2524,"primary_author":2526,"primary_tag":2527,"url":2034,"excerpt":2035,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2036,"meta_description":2037,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":1965,"name":1966,"slug":1966,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1967},{"id":1969,"name":1970,"slug":1971,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1973,"name":1974,"slug":1975,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1977,"name":1978,"slug":1979,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1981,"name":1982,"slug":1983,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1985,"name":1986,"slug":1987,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1993,"name":1994,"slug":1995,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1997,"name":1998,"slug":1999,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2001,"name":2002,"slug":2003,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2005,"name":2006,"slug":2007,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2009,"name":2010,"slug":2011,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2017,"name":2018,"slug":2019,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2021,"name":2022,"slug":2023,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2025,"name":2026,"slug":2027,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2029,"name":2030,"slug":2031,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2525],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2039,"uuid":2040,"title":2041,"slug":2042,"html":2043,"comment_id":2044,"feature_image":48,"featured":284,"visibility":1257,"created_at":2045,"updated_at":2046,"published_at":2047,"custom_excerpt":48,"codeinjection_head":2048,"codeinjection_foot":48,"custom_template":48,"canonical_url":2049,"tags":2529,"authors":2544,"primary_author":2546,"primary_tag":2547,"url":2108,"excerpt":2109,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2110,"meta_description":2111,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2055,"name":2056,"slug":2056,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2057},{"id":2059,"name":2060,"slug":2061,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2063,"name":2064,"slug":2065,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2067,"name":2068,"slug":2069,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2071,"name":2072,"slug":2073,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2075,"name":2076,"slug":2077,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2079,"name":2080,"slug":2081,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2083,"name":2084,"slug":2085,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2087,"name":2088,"slug":2089,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2091,"name":2092,"slug":2093,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2095,"name":2096,"slug":2097,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2099,"name":2100,"slug":2101,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2103,"name":2104,"slug":2105,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2545],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2113,"uuid":2114,"title":2115,"slug":2116,"html":2117,"comment_id":2118,"feature_image":48,"featured":284,"visibility":1257,"created_at":2119,"updated_at":2120,"published_at":2121,"custom_excerpt":48,"codeinjection_head":2122,"codeinjection_foot":48,"custom_template":48,"canonical_url":2123,"tags":2549,"authors":2567,"primary_author":2569,"primary_tag":2570,"url":2194,"excerpt":2195,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2196,"meta_description":2197,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2129,"name":2130,"slug":2130,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2131},{"id":2133,"name":2134,"slug":2135,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2137,"name":2138,"slug":2139,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2141,"name":2142,"slug":2143,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2145,"name":2146,"slug":2147,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2149,"name":2150,"slug":2151,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2153,"name":2154,"slug":2155,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2157,"name":2158,"slug":2159,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2161,"name":2162,"slug":2163,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2165,"name":2166,"slug":2167,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2169,"name":2170,"slug":2171,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2173,"name":2174,"slug":2175,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2177,"name":2178,"slug":2179,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2181,"name":2182,"slug":2183,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2185,"name":2186,"slug":2187,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2189,"name":2190,"slug":2191,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2568],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2199,"uuid":2200,"title":2201,"slug":2202,"html":2203,"comment_id":2204,"feature_image":48,"featured":284,"visibility":1257,"created_at":2205,"updated_at":2206,"published_at":2207,"custom_excerpt":48,"codeinjection_head":2208,"codeinjection_foot":48,"custom_template":48,"canonical_url":2209,"tags":2572,"authors":2581,"primary_author":2583,"primary_tag":2584,"url":2244,"excerpt":2245,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2246,"meta_description":2247,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2573,2574,2575,2576,2577,2578,2579,2580],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2215,"name":2216,"slug":2216,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2217},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2582],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2249,"uuid":2250,"title":2251,"slug":2252,"html":2253,"comment_id":2254,"feature_image":48,"featured":284,"visibility":1257,"created_at":2255,"updated_at":2256,"published_at":2257,"custom_excerpt":48,"codeinjection_head":2258,"codeinjection_foot":48,"custom_template":48,"canonical_url":2259,"tags":2586,"authors":2593,"primary_author":2595,"primary_tag":2596,"url":2286,"excerpt":2287,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2288,"meta_description":2289,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},[2587,2588,2589,2590,2591,2592],{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"id":2265,"name":2266,"slug":2266,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2267},{"id":2269,"name":2270,"slug":2271,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2273,"name":2274,"slug":2275,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2277,"name":2278,"slug":2279,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2281,"name":2282,"slug":2283,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},[2594],{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1265,"name":1266,"slug":1267,"profile_image":48,"cover_image":48,"bio":48,"website":48,"location":48,"facebook":48,"twitter":48,"meta_title":48,"meta_description":48,"url":1268},{"id":1271,"name":1272,"slug":1272,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1273},{"data":2598,"meta":2694},{"id":5,"createdAt":6,"updatedAt":7,"publishedAt":8,"stateful_cta":2599,"documentId":43,"seo":2619,"api_tool_buckets":2632,"nav":2641,"footer_developers":2662,"footer_products":2682},{"pro":2600,"default":2604,"premium":2607,"starter":2611,"enterprise":2615},{"links":2601,"title":18,"description":19},[2602,2603],{"to":13,"label":14},{"to":16,"label":17},{"links":2605,"title":25,"description":26},[2606],{"label":23,"action":24},{"links":2608,"title":18,"description":19},[2609,2610],{"to":13,"label":14},{"to":16,"label":17},{"links":2612,"title":37,"description":38},[2613,2614],{"to":34,"label":35},{"to":16,"label":17},{"links":2616,"title":18,"description":19},[2617,2618],{"to":13,"label":14},{"to":16,"label":17},{"id":45,"metaTitle":46,"metaDescription":47,"canonicalUrl":48,"structured_data":2620},{"@graph":2621,"@context":85},[2622,2627,2629],{"@id":52,"url":53,"logo":2623,"name":57,"@type":58,"sameAs":2624,"knowsAbout":2625,"description":71,"parentOrganization":2626},{"url":55,"@type":56},[60,61,62],[64,65,66,67,68,69,70],{"url":73,"name":74,"@type":58},{"@id":76,"url":53,"name":57,"@type":77,"publisher":2628},{"@id":52},{"@id":80,"url":53,"name":46,"@type":81,"about":2630,"isPartOf":2631,"description":84},{"@id":52},{"@id":76},[2633,2634,2635,2636,2637,2638,2639,2640],{"id":209,"name":210,"description":211,"createdAt":212,"updatedAt":213,"publishedAt":214,"rank":215,"documentId":216},{"id":5,"name":273,"description":274,"createdAt":275,"updatedAt":276,"publishedAt":277,"rank":5,"documentId":278},{"id":295,"name":504,"description":505,"createdAt":506,"updatedAt":507,"publishedAt":508,"rank":295,"documentId":509},{"id":394,"name":665,"description":666,"createdAt":667,"updatedAt":668,"publishedAt":669,"rank":320,"documentId":670},{"id":369,"name":811,"description":812,"createdAt":813,"updatedAt":814,"publishedAt":815,"rank":345,"documentId":816},{"id":320,"name":934,"description":935,"createdAt":936,"updatedAt":937,"publishedAt":938,"rank":369,"documentId":939},{"id":345,"name":1055,"description":1056,"createdAt":1057,"updatedAt":1058,"publishedAt":1059,"rank":394,"documentId":1060},{"id":419,"name":1153,"description":1154,"createdAt":1155,"updatedAt":1156,"publishedAt":1157,"rank":419,"documentId":1158},[2642,2643,2644,2645,2653,2660,2661],{"id":88,"label":89,"description":48,"to":13,"icon":48,"external":48,"target":48,"children":48,"__component":90},{"id":92,"label":93,"description":48,"to":94,"icon":48,"external":48,"target":48,"children":48,"__component":90},{"id":96,"label":97,"description":48,"to":98,"icon":48,"external":48,"target":48,"children":48,"__component":90},{"id":100,"label":101,"description":48,"to":102,"icon":48,"external":48,"target":48,"children":2646,"__component":90},[2647,2652],{"to":102,"label":105,"children":2648,"description":119},[2649,2650,2651],{"to":108,"label":109,"description":110},{"to":112,"label":113,"description":114},{"to":116,"label":117,"description":118},{"to":121,"label":122,"target":123,"external":124,"description":125},{"id":127,"label":128,"description":48,"to":16,"icon":48,"external":48,"target":48,"children":2654,"__component":90},[2655],{"to":16,"label":105,"children":2656,"description":119},[2657,2658,2659],{"to":133,"label":109,"exactHash":124,"description":110},{"to":135,"label":113,"exactHash":124,"description":118},{"to":137,"label":117,"exactHash":124,"description":118},{"id":139,"label":140,"description":48,"to":141,"icon":48,"external":48,"target":123,"children":48,"__component":90},{"id":143,"label":144,"description":48,"to":145,"icon":48,"external":48,"target":123,"children":48,"__component":90},[2663,2667,2672,2679],{"id":148,"label":149,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2664,"__component":90},[2665,2666],{"to":152,"label":153,"target":123,"external":124},{"to":155,"label":156,"target":123,"external":124},{"id":158,"label":159,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2668,"__component":90},[2669,2670,2671],{"to":162,"label":109,"target":123,"external":124},{"to":164,"label":117,"target":123,"external":124},{"to":166,"label":113,"target":123,"external":124},{"id":168,"label":169,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2673,"__component":90},[2674,2675,2676,2677,2678],{"to":13,"label":89},{"to":173,"label":174,"target":123,"external":124},{"to":176,"label":177,"target":123,"external":124},{"to":179,"label":180,"target":123,"external":124},{"to":182,"label":183,"target":123,"external":124},{"id":185,"label":144,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2680,"__component":90},[2681],{"to":145,"label":188,"target":123,"external":124},[2683,2689],{"id":191,"label":105,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2684,"__component":90},[2685,2686,2687,2688],{"to":108,"label":109},{"to":116,"label":117},{"to":112,"label":113},{"to":16,"label":128},{"id":198,"label":122,"description":48,"to":48,"icon":48,"external":48,"target":48,"children":2690,"__component":90},[2691,2692,2693],{"to":121,"label":201,"target":123,"external":124},{"to":203,"label":204,"target":123,"external":124},{"to":206,"label":128,"target":123,"external":124},{},{"posts":2696,"meta":4525},[2697,2723,2742,2760,2779,2797,2821,2844,2867,2888,2909,2930,2951,2974,2996,3017,3038,3060,3081,3103,3124,3145,3167,3188,3210,3231,3252,3272,3292,3313,3333,3355,3376,3397,3420,3441,3463,3486,3509,3529,3550,3571,3593,3614,3636,3657,3678,3699,3720,3741,3762,3781,3800,3819,3838,3858,3877,3898,3918,3937,3958,3979,4000,4020,4041,4062,4082,4102,4125,4145,4166,4187,4207,4226,4245,4265,4288,4311,4334,4356,4379,4402,4423,4443,4464,4484,4504],{"id":2698,"uuid":2699,"title":2700,"slug":2701,"html":2702,"comment_id":2698,"feature_image":48,"featured":284,"visibility":1257,"created_at":2703,"updated_at":2704,"published_at":2703,"custom_excerpt":2705,"codeinjection_head":2706,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2707,"primary_tag":2720,"url":2721,"excerpt":2705,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2722,"meta_description":2705,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672a9da6533c9f26b9438bb8","2c84f07a-cec7-4123-8acf-ea1cc71600ea","How to Add Text to PDF Files with cURL","how-to-add-text-to-pdf-files-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Add Text to PDF Files with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F'>Add to PDF API Tool\u003C\u002Fa> is a powerful resource for developers who need to programmatically add text to PDF documents. This tutorial will guide you through the process of sending an API call to the Add to PDF endpoint using cURL, a command line tool for transferring data with URLs. By learning how to use cURL with pdfRest, you can automate the process of modifying PDFs, making it efficient and scalable for various applications.\u003C\u002Fp>\n\n\u003Cp>Imagine you are working for a company that needs to generate personalized reports for hundreds of clients. Each report is a PDF document that requires the client's name and unique data to be added to specific locations within the document. Using the Add to PDF API with cURL, you can automate this process, ensuring accuracy and saving time by eliminating the need for manual editing.\u003C\u002Fp>\n\n\u003Ch2>Add Text to PDF Files with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">TEXT_OPTIONS='[{\"font\":\"Times New Roman\",\"max_width\":\"175\",\"opacity\":\"1\",\"page\":\"1\",\"rotation\":\"0\",\"text\":\"sample text in PDF\",\"text_color_rgb\":\"0,0,0\",\"text_size\":\"30\",\"x\":\"72\",\"y\":\"144\"}]'\n\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"text_objects=$TEXT_OPTIONS\" \\\n  -F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-added-text.sh\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the provided cURL command to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">TEXT_OPTIONS='[{\"font\":\"Times New Roman\",\"max_width\":\"175\",\"opacity\":\"1\",\"page\":\"1\",\"rotation\":\"0\",\"text\":\"sample text in PDF\",\"text_color_rgb\":\"0,0,0\",\"text_size\":\"30\",\"x\":\"72\",\"y\":\"144\"}]'\n\u003C\u002Fpre>\n\n\u003Cp>This line defines a shell variable \u003Ccode>TEXT_OPTIONS\u003C\u002Fcode> containing a JSON string. This JSON specifies the text properties to be added to the PDF, such as font, size, color, and position.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text\"\n\u003C\u002Fpre>\n\n\u003Cp>This line initiates a POST request to the pdfRest API endpoint for adding text to PDFs.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\n\u003C\u002Fpre>\n\n\u003Cp>This header specifies that the client expects a JSON response from the server.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\n\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the request body will be sent as \u003Ccode>multipart\u002Fform-data\u003C\u002Fcode>, which is necessary for file uploads.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n\u003C\u002Fpre>\n\n\u003Cp>This header includes the API key, which is required for authentication. You must replace the placeholder with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\n\u003C\u002Fpre>\n\n\u003Cp>This option specifies the file to upload. Replace \u003Ccode>\u002Fpath\u002Fto\u002Ffile\u003C\u002Fcode> with the path to your PDF file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"text_objects=$TEXT_OPTIONS\"\n\u003C\u002Fpre>\n\n\u003Cp>This option sends the text options defined earlier as part of the form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>This option specifies the output file name for the processed PDF.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to make a multipart API call to add text to a PDF using the pdfRest Add to PDF API Tool with cURL. This process allows for efficient and automated PDF modifications. To explore more features and tools, try out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-added-text.sh\">GitHub JSON Payload Examples\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-05T22:35:18.000+00:00","2026-09-02T18:26:45.000+00:00","Learn how to add text to a PDF using pdfRest Add to PDF API Tool with cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F#article\",\n      \"headline\": \"How to Add Text to PDF Files with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\",\n      \"datePublished\": \"2024-11-05T22:35:18.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:22.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to add text to a PDF using pdfRest Add to PDF API Tool with cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, Text, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Add Text to PDF Files with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2708,2712,2717,2718,2719],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"65ae9a81656af204db4b0f62","tutorial-post","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Ftutorial-post\u002F",{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},"65ae9a81656af204db4b0f89","seo-meta","Used to identify pages which hold metadata for SEO SERP listings.","https:\u002F\u002Fcms.pdfrest.com\u002Ftag\u002Fseo-meta\u002F",{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-add-text-to-pdf-files-with-curl\u002F","How to Add Text to PDF Files with cURL, Tutorial | pdfRest",{"id":2724,"uuid":2725,"title":2726,"slug":2727,"html":2728,"comment_id":2724,"feature_image":48,"featured":284,"visibility":1257,"created_at":2729,"updated_at":2704,"published_at":2730,"custom_excerpt":2731,"codeinjection_head":2732,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2733,"primary_tag":2739,"url":2740,"excerpt":2731,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2741,"meta_description":2731,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c55533c9f26b943b47f","e98c7cc8-285b-4f44-98df-2f21fe373dd3","How to Add Text to PDF Files with Java","how-to-add-text-to-pdf-files-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows you how to add text to PDF files from a Java application with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\">Add to PDF API Tool\u003C\u002Fa>. The example builds a \u003Ccode>text_objects\u003C\u002Fcode> profile that controls placement and appearance before posting the PDF and instructions together. The walkthrough gives you a practical starting point that you can adapt when you need to add text to PDF files in your own document workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Add Text to PDF Files with Java?\u003C\u002Fh2>\n\n\u003Cp>A case-management service may need to stamp a case number and review date onto an incoming document before it enters an approval queue. Adding text programmatically makes the identifier visible on the page and repeatable across every processed file.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>text_objects\u003C\u002Fcode> JSON array controls page number, coordinates, font, text size, color, opacity, rotation, and wrapping width. Coordinate values are expressed in PDF points.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PDFWithAddedText {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final String text_options =\n        \"[{\\\"font\\\":\\\"Times New Roman\\\",\\\"max_width\\\":\\\"175\\\",\\\"opacity\\\":\\\"1\\\",\\\"page\\\":\\\"1\\\",\\\"rotation\\\":\\\"0\\\",\\\"text\\\":\\\"sample text in PDF\\\",\\\"text_color_rgb\\\":\\\"0,0,0\\\",\\\"text_size\\\":\\\"30\\\",\\\"x\\\":\\\"72\\\",\\\"y\\\":\\\"144\\\"}]\";\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"text_objects\", text_options)\n            .addFormDataPart(\"output\", \"pdfrest_added_text\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-added-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPDFWithAddedText.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>This dependency set combines OkHttp networking with dotenv configuration and \u003Ccode>org.json\u003C\u002Fcode> processing.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final String text_options =\u003C\u002Fpre>\n\n\u003Cp>The startup code separates file selection from authentication so either value can change without rewriting the request.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"text_objects\", text_options)\n            .addFormDataPart(\"output\", \"pdfrest_added_text\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-added-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>text_objects\u003C\u002Fcode> JSON array controls page number, coordinates, font, text size, color, opacity, rotation, and wrapping width. Coordinate values are expressed in PDF points. The multipart section uses the form multipart type required for combining uploaded content with operation parameters.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-added-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The request builder adds the API key header, selects the operation URL, and attaches the prepared body; changing the base constant switches between US and EU service hosts.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>The response block shows the raw outcome for learning purposes; production code can retain output IDs and branch on reported errors.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>You have now seen how to add text to PDF files from a Java application. With that foundation, you can adapt the text-object array for document IDs, status labels, page-specific notices, or generated headings.\u003C\u002Fp>\n\n\u003Cp>When you move beyond the sample, keep in mind that pDF coordinates are measured in points, so placement should be tested against the actual page dimensions and rotation of representative inputs. For variable text, calculate wrapping width and position from document data rather than assuming every identifier or notice occupies the same space.\u003C\u002Fp>\n\n\u003Cp>You can experiment with the Add Text to PDF operation in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. The \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\u002F\">Add to PDF API Tool documentation\u003C\u002Fa> describes the full parameter and response contract.\u003C\u002Fp>\n\n\u003Cp>Note: The Add Text to PDF example above uses multipart form data; to avoid transferring the same input again, compare the multipart call with the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FPDFWithAddedText.java\">JSON payload example\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:09.000+00:00","2026-09-01T21:57:31.000+00:00","Place positioned text on an existing PDF with Java using configurable fonts, size, color, and coordinates.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F#article\",\n      \"headline\": \"How to Add Text to PDF Files with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:31.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:31.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Place positioned text on an existing PDF with Java using configurable fonts, size, color, and coordinates.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, Java, Text\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Add Text to PDF Files with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2734,2735,2736,2737,2738],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-add-text-to-pdf-files-with-java\u002F","Add Text to PDF Files with Java | pdfRest",{"id":2743,"uuid":2744,"title":2745,"slug":2746,"html":2747,"comment_id":2743,"feature_image":48,"featured":284,"visibility":1257,"created_at":2748,"updated_at":2704,"published_at":2748,"custom_excerpt":2749,"codeinjection_head":2750,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2751,"primary_tag":2757,"url":2758,"excerpt":2749,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2759,"meta_description":2749,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672a9738533c9f26b9438ba8","2e9d62fb-5446-48db-ac41-413049f3c0c1","How to Add Text to PDF Files with JavaScript in NodeJS","how-to-add-text-to-pdf-files-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Add Text to PDF Files with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F'>Add to PDF API Tool\u003C\u002Fa> is a powerful solution for developers looking to programmatically add text to PDF documents. By using JavaScript, you can easily integrate this functionality into your web applications, allowing for dynamic PDF content updates. This tutorial will guide you through the process of sending an API call to the Add to PDF endpoint using JavaScript.\u003C\u002Fp>\n\n\u003Cp>Imagine a scenario where a company needs to generate personalized invoices for its clients. By using the Add to PDF API, the company can automate the process of adding client-specific details, such as names and billing information, directly onto a PDF template. This not only saves time but also reduces the possibility of errors that can occur with manual entry.\u003C\u002Fp>\n\n\u003Ch2>Add Text to PDF Files with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F**\n * This request demonstrates how to add text to a PDF.\n * Horizontal and vertical offsets of the text are measured in PDF units. (1 inch = 72 PDF units)\n *\u002F\nvar axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\nvar text_option_array = [];\nvar text_options = {\n    \"font\":\"Times New Roman\",\n    \"max_width\":\"175\",\n    \"opacity\":\"1\",\n    \"page\":\"1\",\n    \"rotation\":\"0\",\n    \"text\":\"sample text in PDF\",\n    \"text_color_rgb\":\"0,0,0\",\n    \"text_size\":\"30\",\n    \"x\":\"72\",\n    \"y\":\"144\"\n};\ntext_option_array.push(text_options);\ndata.append('text_objects', JSON.stringify(text_option_array));\ndata.append('output', 'pdfrest_pdf_with_added_text');\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: 'post',\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', \u002F\u002F Replace with your API key\n    ...data.getHeaders() \u002F\u002F set headers for the request\n  },\n  data : data \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\n\u002F\u002F If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.js' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-added-text.js\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by requiring necessary modules: \u003Ccode>axios\u003C\u002Fcode> for HTTP requests, \u003Ccode>form-data\u003C\u002Fcode> for handling form data, and \u003Ccode>fs\u003C\u002Fcode> for file system operations.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new instance of \u003Ccode>FormData\u003C\u002Fcode> is created. The PDF file to be processed is appended to this instance using a file stream. Ensure the file path is correct.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var text_options = {\n    \"font\":\"Times New Roman\",\n    \"max_width\":\"175\",\n    \"opacity\":\"1\",\n    \"page\":\"1\",\n    \"rotation\":\"0\",\n    \"text\":\"sample text in PDF\",\n    \"text_color_rgb\":\"0,0,0\",\n    \"text_size\":\"30\",\n    \"x\":\"72\",\n    \"y\":\"144\"\n};\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>text_options\u003C\u002Fcode> object specifies the text attributes to be added to the PDF. Each parameter is crucial: \n\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>font\u003C\u002Fcode>: The font type for the text.\u003C\u002Fli>\n\u003Cli>\u003Ccode>max_width\u003C\u002Fcode>: Maximum width of the text box in PDF units.\u003C\u002Fli>\n\u003Cli>\u003Ccode>opacity\u003C\u002Fcode>: Opacity level of the text.\u003C\u002Fli>\n\u003Cli>\u003Ccode>page\u003C\u002Fcode>: Page number where the text will be added.\u003C\u002Fli>\n\u003Cli>\u003Ccode>rotation\u003C\u002Fcode>: Rotation angle of the text.\u003C\u002Fli>\n\u003Cli>\u003Ccode>text\u003C\u002Fcode>: The actual text content to be added.\u003C\u002Fli>\n\u003Cli>\u003Ccode>text_color_rgb\u003C\u002Fcode>: RGB color values for the text.\u003C\u002Fli>\n\u003Cli>\u003Ccode>text_size\u003C\u002Fcode>: Size of the text.\u003C\u002Fli>\n\u003Cli>\u003Ccode>x\u003C\u002Fcode> and \u003Ccode>y\u003C\u002Fcode>: Coordinates for text placement.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: 'post',\n  maxBodyLength: Infinity,\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',\n    ...data.getHeaders()\n  },\n  data : data\n};\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>config\u003C\u002Fcode> object defines the request parameters, including the HTTP method, endpoint URL, headers, and the data payload. The API key must be replaced with a valid key.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use JavaScript to send an API request to pdfRest's Add to PDF endpoint, allowing you to add text to a PDF document programmatically. This can be a valuable tool for automating document processing tasks.\u003C\u002Fp>\n\n\u003Cp>Explore more about pdfRest's capabilities by trying out all the API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-added-text.js\">here\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-05T22:07:52.000+00:00","Learn how to insert text into a PDF with JavaScript using pdfRest Add to PDF API Tool","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Add Text to PDF Files with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2024-11-05T22:07:52.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:23.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to insert text into a PDF with JavaScript using pdfRest Add to PDF API Tool\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, JavaScript, Text\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Add Text to PDF Files with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2752,2753,2754,2755,2756],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-add-text-to-pdf-files-with-javascript-in-nodejs\u002F","How to Add Text to PDF Files with JavaScript in NodeJS, Tutorial | pdfRest",{"id":2761,"uuid":2762,"title":2763,"slug":2764,"html":2765,"comment_id":2761,"feature_image":48,"featured":284,"visibility":1257,"created_at":2766,"updated_at":2767,"published_at":2766,"custom_excerpt":2768,"codeinjection_head":2769,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2770,"primary_tag":2776,"url":2777,"excerpt":2768,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2778,"meta_description":2768,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672a965d533c9f26b9438b94","f0f9eaee-5379-4647-9912-a131deea0d38","How to Add Text to PDF Files with PHP","how-to-add-text-to-a-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Add Text to PDF Files with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F'>Add to PDF API Tool\u003C\u002Fa> is a powerful solution for developers looking to programmatically add text to PDF documents. This tutorial demonstrates how to send an API call to the Add to PDF endpoint using PHP. By leveraging this tool, users can automate the process of editing PDFs, making it an efficient option for applications that require dynamic PDF content generation.\u003C\u002Fp>\n\n\u003Cp>In a real-world scenario, a business might use the Add to PDF API to automatically generate invoices or reports that include custom text, such as customer names, dates, or transaction details. This can streamline workflows by eliminating the need for manual PDF editing, ensuring that documents are consistently formatted and delivered in a timely manner.\u003C\u002Fp>\n\n\u003Ch2>Add Text to PDF Files with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">\nrequire 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\nuse GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\n$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by the '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'text_objects', \u002F\u002F Specify the field name for the text options.\n      'contents' => '[{\"font\":\"Times New Roman\",\"max_width\":\"175\",\"opacity\":\"1\",\"page\":\"1\",\"rotation\":\"0\",\"text\":\"sample text in PDF\",\"text_color_rgb\":\"0,0,0\",\"text_size\":\"30\",\"x\":\"72\",\"y\":\"144\"}]' \u002F\u002F Set the value for the text_objects option. This is a JSON-formatted string consisting of an array with sets of text options.\n    ],\n    [\n      'name' => 'output', \u002F\u002F Specify the field name for the output option.\n      'contents' => 'pdfrest_pdf_with_added_text' \u002F\u002F Set the value for the output option (in this case, 'pdfrest_pdf_with_added_text').\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text', $headers); \u002F\u002F Create a new HTTP POST request with the API endpoint and headers.\n\n$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\necho $res->getBody(); \u002F\u002F Output the response body, which contains the PDF with new text.\n\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-added-text.php\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by requiring the autoload file to load the Guzzle HTTP client, which is necessary for making HTTP requests:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">require 'vendor\u002Fautoload.php';\n\u003C\u002Fpre>\n\n\u003Cp>Next, we import the necessary classes from the Guzzle library:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">use GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\u003C\u002Fpre>\n\n\u003Cp>We then create a new instance of the Guzzle HTTP client:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$client = new Client();\n\u003C\u002Fpre>\n\n\u003Cp>The headers for the request are set, including the API key for authentication:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$headers = [\n  'Api-Key' => 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\u003C\u002Fpre>\n\n\u003Cp>The options array is configured with multipart data, which includes the file to be processed, the text objects to add, and the output format:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$options = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'),\n      'filename' => '\u002Fpath\u002Fto\u002Ffile',\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">'\n      ]\n    ],\n    [\n      'name' => 'text_objects',\n      'contents' => '[{\"font\":\"Times New Roman\",\"max_width\":\"175\",\"opacity\":\"1\",\"page\":\"1\",\"rotation\":\"0\",\"text\":\"sample text in PDF\",\"text_color_rgb\":\"0,0,0\",\"text_size\":\"30\",\"x\":\"72\",\"y\":\"144\"}]'\n    ],\n    [\n      'name' => 'output',\n      'contents' => 'pdfrest_pdf_with_added_text'\n    ]\n  ]\n];\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>A new HTTP POST request is created with the specified endpoint and headers:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text', $headers);\n\u003C\u002Fpre>\n\n\u003Cp>The request is sent asynchronously, and the response is awaited and outputted:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$res = $client->sendAsync($request, $options)->wait();\necho $res->getBody();\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we demonstrated how to use PHP to make an API call to the pdfRest Add to PDF endpoint, allowing you to add text to a PDF document programmatically. This can be a valuable tool for automating document processing tasks.\u003C\u002Fp>\n\n\u003Cp>To further explore the capabilities of the pdfRest API, we encourage you to try out all the available tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-added-text.php\">this GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-05T22:04:13.000+00:00","2026-09-02T18:26:46.000+00:00","Learn how use pdfRest Add to PDF API Tool with PHP to insert text into a PDF","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Add Text to PDF Files with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\",\n      \"datePublished\": \"2024-11-05T22:04:13.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:23.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how use pdfRest Add to PDF API Tool with PHP to insert text into a PDF\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, PHP, Text\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Add Text to PDF Files with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-a-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2771,2772,2773,2774,2775],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-add-text-to-a-pdf-with-php\u002F","How to Add Text to a PDF with PHP, Tutorial | pdfRest",{"id":2780,"uuid":2781,"title":2782,"slug":2783,"html":2784,"comment_id":2780,"feature_image":48,"featured":284,"visibility":1257,"created_at":2785,"updated_at":2767,"published_at":2785,"custom_excerpt":2786,"codeinjection_head":2787,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2788,"primary_tag":2794,"url":2795,"excerpt":2786,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2796,"meta_description":2786,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672a9634533c9f26b9438b8a","c8a54afb-bdb0-4e92-b48c-af682e4d27c8","How to Add Text to PDF Files with Python","how-to-add-text-to-pdf-files-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Add to PDF Files with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F'>Add to PDF API Tool\u003C\u002Fa> is a powerful resource for developers looking to programmatically add text to PDF documents. This tutorial will guide you through the process of sending an API call to the Add to PDF endpoint using Python. By leveraging this tool, you can automate the process of modifying PDF files, which is particularly useful for applications that require dynamic PDF content generation or updates.\u003C\u002Fp>\n\n\u003Cp>Consider a scenario where a business needs to generate personalized invoices for its customers. By using the Add to PDF API, the business can automatically insert customer names, addresses, and invoice details into a PDF template, streamlining the invoicing process and reducing the potential for manual errors. This approach not only enhances efficiency but also ensures a consistent and professional appearance for all generated documents.\u003C\u002Fp>\n\n\u003Ch2>Add Text to PDF Files with Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\npdf_with_added_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text'\n\ntext_options = [{\n    \"font\":\"Times New Roman\",\n    \"max_width\":\"175\",\n    \"opacity\":\"1\",\n    \"page\":\"1\",\n    \"rotation\":\"0\",\n    \"text\":\"sample text in PDF\",\n    \"text_color_rgb\":\"0,0,0\",\n    \"text_size\":\"30\",\n    \"x\":\"72\",\n    \"y\":\"144\"\n}]\n\nmp_encoder_addedtextPDF = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'text_objects': json.dumps(text_options),\n        'output' : 'example_out'\n    }\n)\n\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_addedtextPDF.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to pdf-with-added-text endpoint...\")\nresponse = requests.post(pdf_with_added_text_endpoint_url, data=mp_encoder_addedtextPDF, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-added-text.py\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary libraries: \u003Ccode>requests_toolbelt\u003C\u002Fcode> for handling multipart encoding, \u003Ccode>requests\u003C\u002Fcode> for making HTTP requests, and \u003Ccode>json\u003C\u002Fcode> for handling JSON data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">pdf_with_added_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text'\n\u003C\u002Fpre>\n\n\u003Cp>This line sets the endpoint URL for the Add to PDF API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">text_options = [{\n    \"font\":\"Times New Roman\",\n    \"max_width\":\"175\",\n    \"opacity\":\"1\",\n    \"page\":\"1\",\n    \"rotation\":\"0\",\n    \"text\":\"sample text in PDF\",\n    \"text_color_rgb\":\"0,0,0\",\n    \"text_size\":\"30\",\n    \"x\":\"72\",\n    \"y\":\"144\"\n}]\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>text_options\u003C\u002Fcode> dictionary specifies the text attributes to be added to the PDF. Each key-value pair defines a property such as \u003Ccode>font\u003C\u002Fcode>, \u003Ccode>max_width\u003C\u002Fcode>, \u003Ccode>opacity\u003C\u002Fcode>, \u003Ccode>page\u003C\u002Fcode>, \u003Ccode>rotation\u003C\u002Fcode>, \u003Ccode>text\u003C\u002Fcode>, \u003Ccode>text_color_rgb\u003C\u002Fcode>, \u003Ccode>text_size\u003C\u002Fcode>, \u003Ccode>x\u003C\u002Fcode>, and \u003Ccode>y\u003C\u002Fcode>. These options allow precise control over the appearance and placement of the text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">mp_encoder_addedtextPDF = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'text_objects': json.dumps(text_options),\n        'output' : 'example_out'\n    }\n)\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>MultipartEncoder\u003C\u002Fcode> is used to prepare the multipart form-data payload. The \u003Ccode>fields\u003C\u002Fcode> parameter includes the PDF file, the JSON-encoded \u003Ccode>text_objects\u003C\u002Fcode>, and the desired \u003Ccode>output\u003C\u002Fcode> filename.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_addedtextPDF.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>headers\u003C\u002Fcode> dictionary sets the request headers, including the \u003Ccode>Accept\u003C\u002Fcode> type, \u003Ccode>Content-Type\u003C\u002Fcode> derived from the \u003Ccode>MultipartEncoder\u003C\u002Fcode>, and the \u003Ccode>Api-Key\u003C\u002Fcode>, which you need to replace with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(pdf_with_added_text_endpoint_url, data=mp_encoder_addedtextPDF, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This line sends the POST request to the API endpoint, passing the encoded data and headers.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you successfully learned how to use Python to send an API request to the pdfRest Add to PDF endpoint, allowing you to add text to a PDF document programmatically. This is a versatile tool that can be integrated into various applications requiring PDF modifications.\u003C\u002Fp>\n\n\u003Cp>For further exploration, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. Additionally, the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa> provides comprehensive details on all available endpoints and parameters.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-added-text.py\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-05T22:03:32.000+00:00","Learn how to insert text into a PDF using pdfRest Add to PDF API Tool with Python","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F#article\",\n      \"headline\": \"How to Add Text to PDF Files with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\",\n      \"datePublished\": \"2024-11-05T22:03:32.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:23.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to insert text into a PDF using pdfRest Add to PDF API Tool with Python\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, Python, Text\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Add Text to PDF Files with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-add-text-to-pdf-files-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2789,2790,2791,2792,2793],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-add-text-to-pdf-files-with-python\u002F","How to Add Text to PDF Files with Python, Tutorial | pdfRest",{"id":2798,"uuid":2799,"title":2800,"slug":2801,"html":2802,"comment_id":2798,"feature_image":48,"featured":284,"visibility":1257,"created_at":2803,"updated_at":2804,"published_at":2805,"custom_excerpt":2806,"codeinjection_head":2807,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2808,"primary_tag":2818,"url":2819,"excerpt":2806,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2820,"meta_description":2806,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"68a617ec533c9f26b9439fc6","6561010d-c5da-4c12-b200-780e64f590b8","How to Automate PDF to Markdown Conversion for Data & Content Extraction","how-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Streamline content repurposing and data analysis by learning \u003Cstrong>how to automate PDF to Markdown conversion\u003C\u002Fstrong> using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\">pdfRest PDF to Markdown API Tool\u003C\u002Fa>. This powerful REST API is designed for accurate content extraction, allowing you to transform PDFs into clean, structured Markdown. If you are looking for a reliable way to automate your content pipelines and build a robust \u003Cstrong>content automation\u003C\u002Fstrong> process, pdfRest provides the precision and efficiency your business needs for tasks like content migration, dynamic publishing, or LLM training.\u003C\u002Fp>\n\n\u003Chr>\n\n\u003Ch2>Why Automation is Essential for Content Workflows\u003C\u002Fh2>\n\u003Cul>\n    \u003Cli>\u003Cstrong>Extract Structured Content:\u003C\u002Fstrong> Automation accurately preserves headings, lists, tables, and other formatting elements, ensuring your output is clean, structured data ready for immediate use.\u003C\u002Fli>\n    \u003Cli>\u003Cstrong>Simplify Content Management:\u003C\u002Fstrong> By converting PDFs to lightweight, plain-text Markdown, you simplify content for easier management and version control in text-based systems like Git.\u003C\u002Fli>\n    \u003Cli>\u003Cstrong>Enable LLM Training & Analysis:\u003C\u002Fstrong> The clean, semantic text extracted from PDFs is an ideal format for training Large Language Models, enabling more robust and intelligent AI-driven solutions.\u003C\u002Fli>\n    \u003Cli>\u003Cstrong>Streamline Publishing:\u003C\u002Fstrong> Automate large-scale PDF to Markdown conversions, streamlining workflows for content migration to modern web formats or dynamic publishing systems.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Chr>\n\n\u003Ch2>How to Automate PDF to Markdown with pdfRest\u003C\u002Fh2>\n\u003Cp>Automating PDF to Markdown conversion with pdfRest involves connecting a series of simple steps in your automation platform. The exact setup varies depending on the service you use, whether it's a \u003Cstrong>low-code\u003C\u002Fstrong> platform like \u003Cstrong>Microsoft Power Automate\u003C\u002Fstrong> or \u003Cstrong>Workato\u003C\u002Fstrong>, a \u003Cstrong>no-code\u003C\u002Fstrong> tool like \u003Cstrong>Zapier\u003C\u002Fstrong> or \u003Cstrong>Bubble.io\u003C\u002Fstrong>, or a custom solution built with a service like \u003Cstrong>Salesforce\u003C\u002Fstrong>, \u003Cstrong>Make.com\u003C\u002Fstrong>, or \u003Cstrong>n8n\u003C\u002Fstrong>. The workflow for automating your conversions generally follows this pattern:\u003C\u002Fp>\n\u003Col>\n    \u003Cli>\u003Cb>Set Your Trigger:\u003C\u002Fb> The first step in automating your process is defining the event that initiates the workflow. This could be a new file being added to a cloud storage folder, an email attachment arriving in a specific inbox, or a new record being created in your CRM.\u003C\u002Fli>\n    \u003Cli>\u003Cb>Process the PDF:\u003C\u002Fb> This core step uses two simple API calls. First, use your automation platform's HTTP connector to send a POST call to the pdfRest \u003Ccode>\u002Fupload\u003C\u002Fcode> endpoint to prepare your file. This returns a unique resource ID. Next, you will send a second POST call to the \u003Ccode>\u002Fmarkdown\u003C\u002Fcode> endpoint, using the resource ID. You can also specify an \u003Ccode>output_type\u003C\u002Fcode> to receive the Markdown content as an .md file or directly in the JSON response, which is great for small documents or for direct data piping to another service like an LLM.\u003C\u002Fli>\n    \u003Cli>\u003Cb>Handle the Output:\u003C\u002Fb> Depending on your chosen \u003Ccode>output_type\u003C\u002Fcode>, the response will either provide a URL to download the output file or contain the raw Markdown content directly in the JSON response. You will need to add a final action to your workflow to either make a GET request to the URL or parse the JSON response to retrieve the content.\u003C\u002Fli>\n    \u003Cli>\u003Cb>Define the Next Step:\u003C\u002Fb> Once you have the Markdown content, the final step in your automation is to specify what happens to it. This could be saving the file to a documentation system, publishing it to a CMS, or sending it as a direct input to an AI or data analysis tool.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>This approach allows you to build a secure, end-to-end workflow that fits seamlessly into your existing business processes, whether you use a low-code tool, a no-code tool, or a custom solution.\u003C\u002Fp>\n\n\u003Chr>\n\n\u003Ch2>Try Now in API Lab\u003C\u002Fh2>\n\u003Cp>Experience how easy it is to convert PDFs to Markdown directly in your browser using our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?tool=markdown\">API Lab\u003C\u002Fa>. Upload your PDF, choose your parameters, generate the code, and download the structured Markdown content to validate the result.\u003C\u002Fp>\n\n\u003Chr>\n\n\u003Ch2>Start Automating Your Conversions Today!\u003C\u002Fh2>\n\u003Cp>Take the first step toward a more efficient content workflow by integrating pdfRest into your existing services. For more detailed guides on automating your processes, review our solutions for \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Ftransform-pdfs-to-markdown-for-dynamic-web-content-seo\u002F\">transforming PDFs to Markdown for dynamic web content\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-with-microsoft-power-automate\u002F\">integrating with Microsoft Power Automate\u003C\u002Fa>, and \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Fsolutions\u002Fintegrate-pdfrest-with-salesforce-apex-code\u002F\">integrating with Salesforce Apex Code\u003C\u002Fa>. You can also refer to our comprehensive \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\u002F\" target=\"_blank\">API Documentation\u003C\u002Fa> to learn about all available parameters. Sign up for a \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">free pdfRest account\u003C\u002Fa> and start automating your conversions today!\u003C\u002Fp>\n\n\u003C!--kg-card-end: html-->\n","2025-08-20T18:46:04.000+00:00","2026-09-02T18:26:54.000+00:00","2025-08-20T18:53:44.000+00:00","Automate PDF to Markdown conversion with the pdfRest API. Learn how to extract structured data and content for repurposing, data analysis, and LLM training using low-code and no-code tools.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F#article\",\n      \"headline\": \"How to Automate PDF to Markdown Conversion for Data & Content Extraction\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\",\n      \"datePublished\": \"2025-08-20T18:53:44.000Z\",\n      \"dateModified\": \"2026-09-01T05:54:34.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Automate PDF to Markdown conversion with the pdfRest API. Learn how to extract structured data and content for repurposing, data analysis, and LLM training using low-code and no-code tools.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Upload Files API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fupload-files\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fupload API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fupload-files\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert, Extract, Integration, Low Code, No Code, PDF to Markdown\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Automate PDF to Markdown Conversion for Data & Content Extraction\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2809,2810,2811,2812,2813,2814,2815,2816,2817],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2063,"name":2064,"slug":2065,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2067,"name":2068,"slug":2069,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2075,"name":2076,"slug":2077,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-automate-pdf-to-markdown-conversions-for-content-repurposing-and-llm-training\u002F","How to Automate PDF to Markdown Conversion for Data & Content Extraction | pdfRest",{"id":2822,"uuid":2823,"title":2824,"slug":2825,"html":2826,"comment_id":2822,"feature_image":48,"featured":284,"visibility":1257,"created_at":2827,"updated_at":2828,"published_at":2829,"custom_excerpt":2830,"codeinjection_head":2831,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2832,"primary_tag":2841,"url":2842,"excerpt":2830,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2843,"meta_description":2830,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965176533c9f26b943adba","a798132c-ebb3-410a-8650-1527b86b64e4","How to Convert CSV to PDF in .NET with C#","how-to-convert-csv-to-pdf-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This .NET walkthrough shows how C# can transform CSV data into a styled, tagged PDF table with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The request defines column widths and alignment along with header, border, row, padding, and pagination behavior.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF in .NET with C#?\u003C\u002Fh2>\n\n\u003Cp>Line-of-business .NET applications often receive CSV exports from ERP, manufacturing, and finance platforms. Although users can open those files in spreadsheet software, the raw export does not provide a controlled layout for approval packets, shift records, or management review.\u003C\u002Fp>\n\n\u003Cp>A production system might export work-center names, exception descriptions, and affected-unit counts at the end of each shift. C# can convert the file into a PDF with a broad description column, right-aligned counts, and repeating headers. The report then fits naturally beside other PDF records for the shift without an operator reformatting the data.\u003C\u002Fp>\n\n\u003Cp>This automation makes the generated document reproducible. Table colors, border rules, spacing, page margins, metadata, and tagging come from application-owned options instead of a workbook that can be changed accidentally.\u003C\u002Fp>\n\n\u003Ch2>C# Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Converts structured CSV input to PDF through the \u002Fpdf endpoint.\n *\n * Setup (environment):\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region.\n *\n * Usage:\n *   dotnet run -- pdf-from-csv-multipart \u003CinputFile>\n *\u002F\nusing Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nnamespace Samples.EndpointExamples.MultipartPayload;\n\npublic static class PdfFromCsv\n{\n    public static async Task Execute(string[] args)\n    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.csv\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\n        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n        var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"csv\"\":{\"\"first_row_is_header\"\":true,\"\"delimiter\"\":\"\",\"\",\"\"columns\"\":[{\"\"index\"\":0,\"\"width_weight\"\":2,\"\"text_align\"\":\"\"left\"\"},{\"\"index\"\":1,\"\"width_weight\"\":3,\"\"text_align\"\":\"\"left\"\"},{\"\"index\"\":2,\"\"width_weight\"\":1,\"\"text_align\"\":\"\"right\"\"}]}}\");\n        using var form = new MultipartFormDataContent();\n        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-csv.cs\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The C# CSV sample uses the framework \u003Ccode>HttpClient\u003C\u002Fcode> APIs and Newtonsoft JSON types for \u003Ccode>structured_text_options\u003C\u002Fcode>. A project adopting this code must retain the Newtonsoft.Json package reference used by the samples repository.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        using var form = new MultipartFormDataContent();\u003C\u002Fpre>\n\n\u003Cp>The .NET endpoint block shows which regional service receives this CSV request:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\u003C\u002Fpre>\n\n\u003Cp>C# turns the .csv source into \u003Ccode>StreamContent\u003C\u002Fcode> and preserves its filename in the multipart part. That extension directs the shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint to the CSV converter.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.csv\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\u003C\u002Fpre>\n\n\u003Cp>The Newtonsoft \u003Ccode>JObject\u003C\u002Fcode> represents pdfRest’s structured conversion settings. It defines the output title and language, explicitly enables tags, configures Letter portrait pages and margins, and carries the typography and CSV-related style properties used by the renderer.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>For CSV, \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> owns the source stream, serialized settings, and output field. \u003Ccode>HttpClient\u003C\u002Fcode> generates the matching multipart boundary and content type when it sends the container.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>The C# client authenticates and posts the CSV form, then reads the response as text. Reporting both status and payload lets an integration distinguish a generated PDF resource from validation or processing errors.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Useful adaptations include quality-control lists, production summaries, ledger extracts, and service-level reports. Column definitions can be tailored to each export while the larger document style remains consistent across the organization.\u003C\u002Fp>\n\n\u003Cp>The requested tags describe table relationships for compatible consumers but do not guarantee PDF\u002FUA or WCAG compliance. Prototype the table in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for validation requirements and option details.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:15:50.000+00:00","2026-09-02T18:27:07.000+00:00","2026-09-01T04:35:12.000+00:00","Generate styled and tagged PDF tables from CSV in .NET with C# using precise column and pagination settings.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:12.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:12.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Generate styled and tagged PDF tables from CSV in .NET with C# using precise column and pagination settings.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Conversion, Convert to PDF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2833,2834,2835,2836,2837,2838,2839,2840],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-in-net-with-c\u002F","Convert CSV to PDF in .NET with C# | pdfRest",{"id":2845,"uuid":2846,"title":2847,"slug":2848,"html":2849,"comment_id":2845,"feature_image":48,"featured":284,"visibility":1257,"created_at":2850,"updated_at":2851,"published_at":2852,"custom_excerpt":2853,"codeinjection_head":2854,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2855,"primary_tag":2864,"url":2865,"excerpt":2853,"reading_time":369,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2866,"meta_description":2853,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965175533c9f26b943ad9c","c19463c2-2299-4f33-9d4d-8adf93b07882","How to Convert CSV to PDF with cURL","how-to-convert-csv-to-pdf-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows how to convert CSV to PDF with cURL and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The request turns comma-separated data into a tagged table with configured columns, header styling, alternating row colors, borders, padding, and page behavior.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>CSV is ideal for moving rows of data between spreadsheets, databases, and automated systems, but it does not define a dependable presentation. Opening the same file in different tools can change column widths, wrapping, and print layout, while nontechnical recipients may not know how the values are meant to be read.\u003C\u002Fp>\n\n\u003Cp>A scheduled sales export illustrates the benefit. A shell job can retrieve regional totals as CSV, convert them to a PDF with a branded header row and right-aligned numeric column, and place the document in a shared reporting folder. If the data spans multiple pages, repeated headers keep each page understandable without manual spreadsheet formatting.\u003C\u002Fp>\n\n\u003Cp>The conversion profile makes those decisions explicit and repeatable. It identifies the delimiter and header row, assigns relative widths and alignment by column, and controls borders, fills, padding, margins, and tagging so every generated report follows the same table design.\u003C\u002Fp>\n\n\u003Ch2>cURL Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.csv\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_csv\"\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-csv.sh\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The CSV shell example calls cURL directly, so no language package is required. \u003Ccode>API_URL\u003C\u002Fcode> keeps regional routing visible: the active value uses the US service, and the commented alternative selects the EU service.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.csv\"\u003C\u002Fpre>\n\n\u003Cp>For this CSV request, the endpoint excerpt makes the regional service choice explicit:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>INPUT_PATH\u003C\u002Fcode> identifies the local .csv source. The \u003Ccode>@\u003C\u002Fcode> prefix in the later \u003Ccode>--form\u003C\u002Fcode> argument instructs cURL to upload that file’s contents instead of sending its path as text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.csv\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}'\u003C\u002Fpre>\n\n\u003Cp>The JSON assigned to \u003Ccode>OPTIONS\u003C\u002Fcode> is pdfRest-specific rather than shell syntax. \u003Ccode>title\u003C\u002Fcode> becomes document metadata, \u003Ccode>language\u003C\u002Fcode> identifies the document language, and \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical structure. \u003Ccode>page_setup\u003C\u002Fcode> selects Letter portrait pages with 36-point margins, while \u003Ccode>style\u003C\u002Fcode> supplies fonts, text size, color, and format-specific presentation.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>For CSV conversion, the \u003Ccode>--form\u003C\u002Fcode> arguments create the multipart fields: \u003Ccode>file\u003C\u002Fcode> carries the structured source, \u003Ccode>structured_text_options\u003C\u002Fcode> carries serialized settings, and \u003Ccode>output\u003C\u002Fcode> names the requested PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_csv\"\u003C\u002Fpre>\n\n\u003Cp>The CSV request asks for JSON with \u003Ccode>Accept\u003C\u002Fcode>, declares multipart form data with \u003Ccode>Content-Type\u003C\u002Fcode>, and authenticates through \u003Ccode>Api-Key\u003C\u002Fcode>. Success returns the generated PDF resource and download URL; failure returns API error information.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.csv\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_csv\"\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This pattern works well for recurring operational reports, exports attached to support cases, and tabular snapshots that need to remain readable outside a spreadsheet application. Adjusting the column profile lets the same command accommodate identifiers, descriptions, dates, and numeric measures.\u003C\u002Fp>\n\n\u003Cp>Tagged output adds logical table structure that can assist navigation and downstream processing, but it does not by itself certify accessibility conformance. Test profile variations in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for the complete parameter contract.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:15:49.000+00:00","2026-09-02T18:27:08.000+00:00","2026-09-01T04:35:11.000+00:00","Use cURL to convert CSV data into a styled, tagged PDF table with controlled columns, headers, and pagination.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:11.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:11.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use cURL to convert CSV data into a styled, tagged PDF table with controlled columns, headers, and pagination.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2856,2857,2858,2859,2860,2861,2862,2863],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-with-curl\u002F","Convert CSV to PDF with cURL | pdfRest",{"id":2868,"uuid":2869,"title":2870,"slug":2871,"html":2872,"comment_id":2868,"feature_image":48,"featured":284,"visibility":1257,"created_at":2850,"updated_at":2873,"published_at":2852,"custom_excerpt":2874,"codeinjection_head":2875,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2876,"primary_tag":2885,"url":2886,"excerpt":2874,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2887,"meta_description":2874,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965175533c9f26b943ada6","ace415fd-d1c8-4973-a20e-69ec401c216d","How to Convert CSV to PDF with Java","how-to-convert-csv-to-pdf-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Java example converts CSV records into a styled PDF table through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It demonstrates tagged output, per-column width and alignment choices, repeated headers, alternating row fills, and multipart upload from a server application.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF with Java?\u003C\u002Fh2>\n\n\u003Cp>Enterprise Java systems commonly export inventory, transactions, and reconciliation data as CSV because the format is lightweight and widely supported. That portability does not solve the presentation problem when managers or customers need a document with clear columns, page breaks, and labels.\u003C\u002Fp>\n\n\u003Cp>Consider a warehouse platform that produces a daily CSV of item numbers, descriptions, and quantities requiring review. The Java service can turn the export into a PDF where the description receives more width, quantities align to the right, and header rows repeat across pages. Supervisors receive a report they can print or annotate without first opening and styling a spreadsheet.\u003C\u002Fp>\n\n\u003Cp>Generating the table through a service also keeps recurring reports consistent. Page geometry, border rules, colors, padding, typography, and structural tags live in the conversion profile rather than in desktop templates maintained by individual users.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PdfFromCsv {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.csv\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n    JSONObject options =\n        new JSONObject(\n            \"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\",\\\"enable_tagging\\\":true,\\\"page_setup\\\":{\\\"size\\\":\\\"Letter\\\",\\\"orientation\\\":\\\"portrait\\\",\\\"margin\\\":{\\\"top\\\":36,\\\"right\\\":42,\\\"bottom\\\":36,\\\"left\\\":42}},\\\"style\\\":{\\\"font\\\":\\\"Arial\\\",\\\"heading_font\\\":\\\"Arial\\\",\\\"code_font\\\":\\\"Courier\\\",\\\"text_size\\\":11,\\\"text_color_rgb\\\":[34,34,34],\\\"heading_scale\\\":1.35,\\\"table\\\":{\\\"column_width_weights\\\":[2,3,2],\\\"keep_header_with_first_row\\\":true,\\\"repeat_headers_on_overflow\\\":true,\\\"show_borders\\\":true,\\\"border_width\\\":0.75,\\\"border_color_rgb\\\":[180,188,200],\\\"header_fill_color_rgb\\\":[33,64,98],\\\"header_text_color_rgb\\\":[255,255,255],\\\"row_fill_color_rgb\\\":[250,250,252],\\\"alternate_row_fill_color_rgb\\\":[235,240,246],\\\"cell_padding\\\":{\\\"top\\\":6,\\\"right\\\":8,\\\"bottom\\\":6,\\\"left\\\":8}}},\\\"csv\\\":{\\\"first_row_is_header\\\":true,\\\"delimiter\\\":\\\",\\\",\\\"columns\\\":[{\\\"index\\\":0,\\\"width_weight\\\":2,\\\"text_align\\\":\\\"left\\\"},{\\\"index\\\":1,\\\"width_weight\\\":3,\\\"text_align\\\":\\\"left\\\"},{\\\"index\\\":2,\\\"width_weight\\\":1,\\\"text_align\\\":\\\"right\\\"}]}}\");\n    MultipartBody.Builder form =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\n                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\n  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPdfFromCsv.java\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This Java CSV example combines OkHttp for transport, \u003Ccode>org.json\u003C\u002Fcode> for conversion settings, and dotenv support for repository configuration. Those project dependencies must remain available when the class is moved into another application.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The Java endpoint excerpt exposes the regional service selection used for this CSV conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">public class PdfFromCsv {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.csv\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\u003C\u002Fpre>\n\n\u003Cp>Java wraps the .csv path in an OkHttp request body and retains the filename in the multipart upload. The shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint uses that extension to select CSV conversion.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.csv\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>JSONObject\u003C\u002Fcode> is the pdfRest conversion profile. Its title and language describe the PDF, \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical tags, and \u003Ccode>page_setup\u003C\u002Fcode> establishes Letter portrait pages with 36-point margins. The \u003Ccode>style\u003C\u002Fcode> member controls the fonts, text size, color, and any CSV-specific rendering choices.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>For the CSV upload, \u003Ccode>MultipartBody.Builder\u003C\u002Fcode> combines the source file, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and ordinary \u003Ccode>output\u003C\u002Fcode> text field in one request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\u003C\u002Fpre>\n\n\u003Cp>OkHttp submits the CSV conversion with the API key and checks the HTTP result. The printed body contains generated-resource JSON after success or API error details when processing fails.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Java teams can adapt this workflow for inventory reviews, financial reconciliations, exception lists, and customer-facing data extracts. Explicit column rules are especially valuable when long descriptions and compact numeric fields must share the same page.\u003C\u002Fp>\n\n\u003Cp>Tags provide a logical table hierarchy for assistive and automated consumers without guaranteeing a specific compliance level. Explore the layout interactively with \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, then reference the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API guide\u003C\u002Fa> for supported values and limits.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:27:09.000+00:00","Convert CSV records into styled, multipage PDF tables with Java using column, header, and tagging controls.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:11.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:11.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert CSV records into styled, multipage PDF tables with Java using column, header, and tagging controls.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2877,2878,2879,2880,2881,2882,2883,2884],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-with-java\u002F","Convert CSV to PDF with Java | pdfRest",{"id":2889,"uuid":2890,"title":2891,"slug":2892,"html":2893,"comment_id":2889,"feature_image":48,"featured":284,"visibility":1257,"created_at":2827,"updated_at":2894,"published_at":2852,"custom_excerpt":2895,"codeinjection_head":2896,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2897,"primary_tag":2906,"url":2907,"excerpt":2895,"reading_time":369,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2908,"meta_description":2895,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965176533c9f26b943adb0","a54df7c9-30fa-41c8-aca0-a9940403379e","How to Convert CSV to PDF with JavaScript in NodeJS","how-to-convert-csv-to-pdf-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This NodeJS tutorial uses JavaScript to convert CSV into a formatted, tagged PDF with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The example controls table columns, alignment, borders, header treatment, row striping, padding, and multipage behavior.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF with JavaScript in NodeJS?\u003C\u002Fh2>\n\n\u003Cp>SaaS applications frequently expose analytics and account data as CSV, which is useful for further computation but less effective as a finished report. Users who simply need to read, present, or approve the information may prefer a PDF that already communicates the table’s structure.\u003C\u002Fp>\n\n\u003Cp>A usage dashboard provides one concrete scenario. Its NodeJS backend can export plan names, usage descriptions, and totals to CSV, then create a PDF for a quarterly account review. Wider descriptive columns prevent cramped text, right alignment clarifies totals, and alternating row colors help readers track values across a dense table.\u003C\u002Fp>\n\n\u003Cp>By defining the layout in the API request, the product can offer a consistent PDF export without rendering a hidden web page or depending on a user’s spreadsheet settings. Header repetition also keeps long datasets usable after pagination.\u003C\u002Fp>\n\n\u003Ch2>JavaScript Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.csv\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}));\nform.append(\"output\", \"pdf_from_csv\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-csv.js\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The NodeJS CSV walkthrough uses \u003Ccode>axios\u003C\u002Fcode>, \u003Ccode>form-data\u003C\u002Fcode>, and Node’s file-system module. Outside the samples project, install its HTTP and multipart dependencies with \u003Ccode>npm install axios form-data\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\u003C\u002Fpre>\n\n\u003Cp>This NodeJS excerpt keeps the regional endpoint visible for the CSV workflow:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>JavaScript streams the .csv source into the form while preserving its filename. pdfRest infers CSV conversion from that extension, so \u003Ccode>structured_text_options\u003C\u002Fcode> does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.csv\";\nvar form = new FormData();\u003C\u002Fpre>\n\n\u003Cp>The object passed through \u003Ccode>JSON.stringify\u003C\u002Fcode> is interpreted by pdfRest as \u003Ccode>structured_text_options\u003C\u002Fcode>. It sets PDF metadata, explicitly enables tagging, defines Letter portrait geometry and margins, and supplies the font and color choices used when laying out the CSV content.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>NodeJS uses \u003Ccode>FormData\u003C\u002Fcode> to append the CSV file, stringified \u003Ccode>structured_text_options\u003C\u002Fcode>, and output name. The generated form headers provide the multipart boundary for those fields.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var inputPath = \"\u002Fpath\u002Fto\u002Fsample.csv\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}));\nform.append(\"output\", \"pdf_from_csv\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Axios sends the CSV request to \u003Ccode>\u002Fpdf\u003C\u002Fcode> with the form headers and \u003Ccode>Api-Key\u003C\u002Fcode>. Its success path prints resource JSON, while the rejection path exposes either the API response or the client-side error.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}));\nform.append(\"output\", \"pdf_from_csv\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>The same technique can support billing summaries, event exports, survey results, and application health reports. Applications can construct different column arrays for each dataset while retaining a shared visual style.\u003C\u002Fp>\n\n\u003Cp>Tagged tables can improve structural interpretation for accessibility tools and later processing, though tags alone are not a conformance claim. Try representative datasets in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and review the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa> before finalizing production options.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:27:10.000+00:00","Create styled, tagged PDF tables from CSV in NodeJS with custom columns, row colors, headers, and page flow.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:11.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:12.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Create styled, tagged PDF tables from CSV in NodeJS with custom columns, row colors, headers, and page flow.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, JavaScript\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2898,2899,2900,2901,2902,2903,2904,2905],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-with-javascript-in-nodejs\u002F","Convert CSV to PDF with NodeJS | pdfRest",{"id":2910,"uuid":2911,"title":2912,"slug":2913,"html":2914,"comment_id":2910,"feature_image":48,"featured":284,"visibility":1257,"created_at":2915,"updated_at":2894,"published_at":2829,"custom_excerpt":2916,"codeinjection_head":2917,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2918,"primary_tag":2927,"url":2928,"excerpt":2916,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2929,"meta_description":2916,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965177533c9f26b943adc4","4e7edb07-ab26-485c-a5e7-311750e89fb6","How to Convert CSV to PDF with PHP","how-to-convert-csv-to-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This PHP tutorial converts CSV data into a polished, tagged PDF table with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It combines the upload with settings for column proportions, alignment, header colors, alternating rows, borders, padding, and overflow.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>Commerce and portal applications often generate CSV for orders, commissions, and account activity. That format is convenient for importing data, but customers and internal reviewers may need a ready-to-read document rather than a dataset they must style themselves.\u003C\u002Fp>\n\n\u003Cp>An affiliate platform, for example, can export campaign names, transaction descriptions, and commission amounts as CSV at month end. PHP can convert the data to PDF with readable descriptions, aligned currency values, and repeated column labels. The partner receives a statement-like report while the platform retains CSV for downstream analysis.\u003C\u002Fp>\n\n\u003Cp>A server-generated table also avoids differences between spreadsheet applications and print settings. The PHP workflow controls page dimensions and table appearance consistently for every account and reporting period.\u003C\u002Fp>\n\n\u003Ch2>PHP Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$inputPath = '\u002Fpath\u002Fto\u002Fsample.csv';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}', true);\n\n\u002F\u002F This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_csv'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-csv.php\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This PHP CSV example relies on Guzzle for HTTP and PSR-7 stream utilities for the upload. When using the code outside this repository, add the client with \u003Ccode>composer require guzzlehttp\u002Fguzzle\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\u003C\u002Fpre>\n\n\u003Cp>The PHP endpoint excerpt keeps regional routing explicit for this CSV operation:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>PHP opens the .csv source as a PSR-7 stream and includes its filename in the multipart part. The extension selects CSV processing without duplicating the format in the options JSON.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$inputPath = '\u002Fpath\u002Fto\u002Fsample.csv';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"csv\":{\"first_row_is_header\":true,\"delimiter\":\",\",\"columns\":[{\"index\":0,\"width_weight\":2,\"text_align\":\"left\"},{\"index\":1,\"width_weight\":3,\"text_align\":\"left\"},{\"index\":2,\"width_weight\":1,\"text_align\":\"right\"}]}}', true);\u003C\u002Fpre>\n\n\u003Cp>The array decoded into \u003Ccode>$options\u003C\u002Fcode> is serialized as pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode>. It describes the PDF title and language, explicitly turns on tagging, chooses Letter portrait pages with 36-point margins, and provides typography plus CSV-specific styling.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>The PHP multipart array assigns \u003Ccode>name\u003C\u002Fcode> and \u003Ccode>contents\u003C\u002Fcode> values to the CSV stream, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and requested output name.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_csv'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Guzzle prepares and submits the CSV multipart body with the API key. The response body contains generated-resource information on success and service error details when the conversion cannot be completed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_csv'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This approach can produce payout statements, order summaries, subscription exports, and downloadable account reports without building an HTML table for each document. Per-column options preserve clarity even when one field contains much longer text than another.\u003C\u002Fp>\n\n\u003Cp>Logical table tags support navigation and document processing but are not a promise of full accessibility conformance. Exercise the request with sample data in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API documentation\u003C\u002Fa> as the authoritative field reference.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:15:51.000+00:00","Turn CSV exports into readable, tagged PDF tables with PHP and configurable columns, styles, and page headers.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:12.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:12.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Turn CSV exports into readable, tagged PDF tables with PHP and configurable columns, styles, and page headers.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2919,2920,2921,2922,2923,2924,2925,2926],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-with-php\u002F","Convert CSV to PDF with PHP | pdfRest",{"id":2931,"uuid":2932,"title":2933,"slug":2934,"html":2935,"comment_id":2931,"feature_image":48,"featured":284,"visibility":1257,"created_at":2915,"updated_at":2936,"published_at":2829,"custom_excerpt":2937,"codeinjection_head":2938,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2939,"primary_tag":2948,"url":2949,"excerpt":2937,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2950,"meta_description":2937,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965177533c9f26b943adce","f6d7dae5-5733-4691-8b6a-7495cb6f69ff","How to Convert CSV to PDF with Python","how-to-convert-csv-to-pdf-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Python example sends CSV data to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> and creates a styled, tagged PDF table. The conversion profile controls column widths, alignment, header formatting, row shading, borders, padding, page setup, and repeated headers.\u003C\u002Fp>\n\n\u003Ch2>Why Convert CSV to PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>Python data workflows produce CSV at nearly every stage because it is simple to generate and analyze. When results are delivered to auditors, clients, or project leaders, a designed PDF table can communicate the dataset more clearly and preserve a consistent reporting artifact.\u003C\u002Fp>\n\n\u003Cp>A data-quality pipeline might write rule names, failure descriptions, and affected-record counts to CSV after validating an import. Python can immediately convert that output into a PDF for the review package. The description column receives extra room, counts align to the right, and alternating fills make a long exception list easier to scan.\u003C\u002Fp>\n\n\u003Cp>Keeping this step in the pipeline eliminates manual spreadsheet formatting and makes every run reproducible. The source remains available for analysis, while the PDF serves the human review and documentation need.\u003C\u002Fp>\n\n\u003Ch2>Python Code Example for Converting CSV to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts CSV input to a tagged PDF through multipart \u002Fpdf.\n# It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.csv\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  \"enable_tagging\": true,\n  \"page_setup\": {\n    \"size\": \"Letter\",\n    \"orientation\": \"portrait\",\n    \"margin\": {\n      \"top\": 36,\n      \"right\": 42,\n      \"bottom\": 36,\n      \"left\": 42\n    }\n  },\n  \"style\": {\n    \"font\": \"Arial\",\n    \"heading_font\": \"Arial\",\n    \"code_font\": \"Courier\",\n    \"text_size\": 11,\n    \"text_color_rgb\": [\n      34,\n      34,\n      34\n    ],\n    \"heading_scale\": 1.35,\n    \"table\": {\n      \"column_width_weights\": [\n        2,\n        3,\n        2\n      ],\n      \"keep_header_with_first_row\": true,\n      \"repeat_headers_on_overflow\": true,\n      \"show_borders\": true,\n      \"border_width\": 0.75,\n      \"border_color_rgb\": [\n        180,\n        188,\n        200\n      ],\n      \"header_fill_color_rgb\": [\n        33,\n        64,\n        98\n      ],\n      \"header_text_color_rgb\": [\n        255,\n        255,\n        255\n      ],\n      \"row_fill_color_rgb\": [\n        250,\n        250,\n        252\n      ],\n      \"alternate_row_fill_color_rgb\": [\n        235,\n        240,\n        246\n      ],\n      \"cell_padding\": {\n        \"top\": 6,\n        \"right\": 8,\n        \"bottom\": 6,\n        \"left\": 8\n      }\n    }\n  },\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}''')\n\nfrom requests_toolbelt import MultipartEncoder\nwith open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-csv.py\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Python CSV sample uses \u003Ccode>requests\u003C\u002Fcode> and \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. Install both with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode> when they are not already present.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\u003C\u002Fpre>\n\n\u003Cp>This Python endpoint excerpt identifies the regional service used for CSV conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>Python opens the .csv input in binary mode and sends its base filename with the stream. \u003Ccode>\u002Fpdf\u003C\u002Fcode> uses that filename extension to infer the CSV input type.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.csv\"\noptions = json.loads(r'''{\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> dictionary becomes pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode> field. It supplies document metadata, explicitly requests tags, establishes Letter portrait pages and 36-point margins, and selects the fonts, text size, color, and CSV-specific presentation values.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"csv\": {\n    \"first_row_is_header\": true,\n    \"delimiter\": \",\",\n    \"columns\": [\n      {\n        \"index\": 0,\n        \"width_weight\": 2,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 1,\n        \"width_weight\": 3,\n        \"text_align\": \"left\"\n      },\n      {\n        \"index\": 2,\n        \"width_weight\": 1,\n        \"text_align\": \"right\"\n      }\n    ]\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>first_row_is_header\u003C\u002Fcode> defaults to \u003Ccode>true\u003C\u002Fcode>; setting it to \u003Ccode>false\u003C\u002Fcode> renders every record as a body row. \u003Ccode>delimiter\u003C\u002Fcode> defaults to a comma and must contain exactly one character, so a tab or semicolon can be selected but a multi-character separator cannot.\u003C\u002Fp>\n\n\u003Cp>Column indexes are zero-based. Unspecified columns default to weight \u003Ccode>1\u003C\u002Fcode> and left alignment. Width weights are positive relative proportions, not points or pixels, and \u003Ccode>text_align\u003C\u002Fcode> accepts only \u003Ccode>left\u003C\u002Fcode>, \u003Ccode>center\u003C\u002Fcode>, or \u003Ccode>right\u003C\u002Fcode>. An index outside the parsed CSV, a nonpositive weight, or another alignment value produces a validation error.\u003C\u002Fp>\n\n\u003Cp>The per-column CSV weights take precedence over \u003Ccode>style.table.column_width_weights\u003C\u002Fcode>; the broader table list is only a fallback when CSV-specific widths are absent. The remaining table style controls borders, colors, row striping, and padding. \u003Ccode>keep_header_with_first_row\u003C\u002Fcode> prevents a header from appearing alone, and \u003Ccode>repeat_headers_on_overflow\u003C\u002Fcode> repeats it as rows continue onto later pages.\u003C\u002Fp>\n\n\u003Cp>For the CSV call, \u003Ccode>MultipartEncoder\u003C\u002Fcode> combines the file tuple with serialized \u003Ccode>structured_text_options\u003C\u002Fcode>. Its \u003Ccode>content_type\u003C\u002Fcode>, including the boundary, becomes the request’s \u003Ccode>Content-Type\u003C\u002Fcode> header.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">with open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>requests.post\u003C\u002Fcode> sends the encoded CSV form with the API key. The script pretty-prints resource JSON after success and otherwise displays the API message before exiting with a nonzero status.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Teams can reuse the pattern for experiment results, validation summaries, survey data, and scheduled KPI extracts. A different columns array can adapt the table to each schema without replacing the overall report design.\u003C\u002Fp>\n\n\u003Cp>Tagged structure can make headers and cells more understandable to assistive and automated tools, but additional evaluation is needed for any accessibility claim. Validate representative files in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and review the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa> for all available settings.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:27:11.000+00:00","Convert CSV datasets into styled, tagged PDF tables with Python using column sizing, alignment, and pagination controls.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F#article\",\n      \"headline\": \"How to Convert CSV to PDF with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F\",\n      \"datePublished\": \"2026-09-01T04:35:12.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert CSV datasets into styled, tagged PDF tables with Python using column sizing, alignment, and pagination controls.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert CSV to PDF with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-csv-to-pdf-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2940,2941,2942,2943,2944,2945,2946,2947],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1418,"name":1419,"slug":1420,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-csv-to-pdf-with-python\u002F","Convert CSV to PDF with Python | pdfRest",{"id":2952,"uuid":2953,"title":2954,"slug":2955,"html":2956,"comment_id":2952,"feature_image":48,"featured":284,"visibility":1257,"created_at":2957,"updated_at":2958,"published_at":2959,"custom_excerpt":2960,"codeinjection_head":2961,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2962,"primary_tag":2971,"url":2972,"excerpt":2960,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2973,"meta_description":2960,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965690533c9f26b943ae4b","67a6c4f3-b124-4ca7-9ff1-8e627c2d537b","How to Convert JSON to PDF in .NET with C#","how-to-convert-json-to-pdf-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This .NET tutorial shows how C# can turn JSON into a tagged PDF with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The sample combines a JSON upload with metadata, layout, and style options, then reads the generated PDF resource response.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF in .NET with C#?\u003C\u002Fh2>\n\n\u003Cp>.NET workflow systems often persist approvals, automation outcomes, and external-service responses as JSON. While that representation works well in storage and code, reviewers may need a document that fits naturally into an audit packet or case-management process.\u003C\u002Fp>\n\n\u003Cp>For example, an approval engine may record a completed request with nested approvers, timestamps, conditions, and decision values. C# can generate a hierarchy-formatted PDF that keeps those relationships clear and place it with the associated forms and correspondence. The source JSON remains the system record, while the PDF serves human review.\u003C\u002Fp>\n\n\u003Cp>This approach avoids mapping every possible payload shape into report classes or drawing instructions. The application can use hierarchy mode for business users and source mode for technical reviewers, with consistent page formatting and tags supplied by the same conversion profile.\u003C\u002Fp>\n\n\u003Ch2>C# Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Converts structured JSON input to PDF through the \u002Fpdf endpoint.\n *\n * Setup (environment):\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region.\n *\n * Usage:\n *   dotnet run -- pdf-from-json-multipart \u003CinputFile>\n *\u002F\nusing Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nnamespace Samples.EndpointExamples.MultipartPayload;\n\npublic static class PdfFromJson\n{\n    public static async Task Execute(string[] args)\n    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.json\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\n        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n        var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"data_presentation\"\":\"\"hierarchy\"\"}\");\n        using var form = new MultipartFormDataContent();\n        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-json.cs\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The C# JSON sample uses the framework \u003Ccode>HttpClient\u003C\u002Fcode> APIs and Newtonsoft JSON types for \u003Ccode>structured_text_options\u003C\u002Fcode>. A project adopting this code must retain the Newtonsoft.Json package reference used by the samples repository.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        using var form = new MultipartFormDataContent();\u003C\u002Fpre>\n\n\u003Cp>The .NET endpoint block shows which regional service receives this JSON request:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\u003C\u002Fpre>\n\n\u003Cp>C# turns the .json source into \u003Ccode>StreamContent\u003C\u002Fcode> and preserves its filename in the multipart part. That extension directs the shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint to the JSON converter.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.json\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\u003C\u002Fpre>\n\n\u003Cp>The Newtonsoft \u003Ccode>JObject\u003C\u002Fcode> represents pdfRest’s structured conversion settings. It defines the output title and language, explicitly enables tags, configures Letter portrait pages and margins, and carries the typography and JSON-related style properties used by the renderer.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>For JSON, \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> owns the source stream, serialized settings, and output field. \u003Ccode>HttpClient\u003C\u002Fcode> generates the matching multipart boundary and content type when it sends the container.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>The C# client authenticates and posts the JSON form, then reads the response as text. Reporting both status and payload lets an integration distinguish a generated PDF resource from validation or processing errors.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Potential .NET use cases include workflow histories, configuration baselines, automation results, and integration acknowledgements. Objects and arrays retain their nesting without the converter inventing business-specific labels or summaries.\u003C\u002Fp>\n\n\u003Cp>Tagging supplies logical organization for compatible consumers but does not itself prove accessibility conformance. Build a representative request in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and verify optional fields against the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:37:36.000+00:00","2026-09-02T18:27:16.000+00:00","2026-09-01T04:48:30.000+00:00","Generate structured, tagged PDFs from JSON in .NET with C# using hierarchy or normalized source output.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:30.000Z\",\n      \"dateModified\": \"2026-09-01T05:08:58.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Generate structured, tagged PDFs from JSON in .NET with C# using hierarchy or normalized source output.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Conversion, Convert to PDF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2963,2964,2965,2966,2967,2968,2969,2970],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-in-net-with-c\u002F","Convert JSON to PDF in .NET with C# | pdfRest",{"id":2975,"uuid":2976,"title":2977,"slug":2978,"html":2979,"comment_id":2975,"feature_image":48,"featured":284,"visibility":1257,"created_at":2980,"updated_at":2958,"published_at":2981,"custom_excerpt":2982,"codeinjection_head":2983,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":2984,"primary_tag":2993,"url":2994,"excerpt":2982,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":2995,"meta_description":2982,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a96568e533c9f26b943ae2d","bad005b6-ec25-49e7-a962-af81c01b31be","How to Convert JSON to PDF with cURL","how-to-convert-json-to-pdf-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows how to convert JSON to PDF with cURL and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The request creates tagged output, presents nested JSON as a reader-oriented hierarchy, and applies consistent page and typography settings without requiring a local PDF renderer.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>JSON is designed for APIs and application state, not for people who need a paginated record. A raw payload may be difficult for support staff, project managers, or auditors to scan, and its appearance depends on whichever editor or browser opens it.\u003C\u002Fp>\n\n\u003Cp>A deployment pipeline provides a practical example. After promoting a service, a shell job may save a JSON manifest containing component versions, environment values, and feature flags. The same job can convert that manifest into a hierarchy-formatted PDF and store it with the release evidence, giving reviewers an accessible snapshot without replacing the machine-readable original.\u003C\u002Fp>\n\n\u003Cp>When exact syntax is more useful than a nested outline, the request can use source presentation instead. That mode validates and pretty-prints the JSON, making cURL suitable for both human-oriented operational records and code-oriented diagnostic artifacts.\u003C\u002Fp>\n\n\u003Ch2>cURL Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.json\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_json\"\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-json.sh\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The JSON shell example calls cURL directly, so no language package is required. \u003Ccode>API_URL\u003C\u002Fcode> keeps regional routing visible: the active value uses the US service, and the commented alternative selects the EU service.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.json\"\u003C\u002Fpre>\n\n\u003Cp>For this JSON request, the endpoint excerpt makes the regional service choice explicit:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>INPUT_PATH\u003C\u002Fcode> identifies the local .json source. The \u003Ccode>@\u003C\u002Fcode> prefix in the later \u003Ccode>--form\u003C\u002Fcode> argument instructs cURL to upload that file’s contents instead of sending its path as text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.json\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\u003C\u002Fpre>\n\n\u003Cp>The JSON assigned to \u003Ccode>OPTIONS\u003C\u002Fcode> is pdfRest-specific rather than shell syntax. \u003Ccode>title\u003C\u002Fcode> becomes document metadata, \u003Ccode>language\u003C\u002Fcode> identifies the document language, and \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical structure. \u003Ccode>page_setup\u003C\u002Fcode> selects Letter portrait pages with 36-point margins, while \u003Ccode>style\u003C\u002Fcode> supplies fonts, text size, color, and format-specific presentation.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>For JSON conversion, the \u003Ccode>--form\u003C\u002Fcode> arguments create the multipart fields: \u003Ccode>file\u003C\u002Fcode> carries the structured source, \u003Ccode>structured_text_options\u003C\u002Fcode> carries serialized settings, and \u003Ccode>output\u003C\u002Fcode> names the requested PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_json\"\u003C\u002Fpre>\n\n\u003Cp>The JSON request asks for JSON with \u003Ccode>Accept\u003C\u002Fcode>, declares multipart form data with \u003Ccode>Content-Type\u003C\u002Fcode>, and authenticates through \u003Ccode>Api-Key\u003C\u002Fcode>. Success returns the generated PDF resource and download URL; failure returns API error information.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.json\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_json\"\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This pattern can support configuration snapshots, API response archives, processing manifests, and automated evidence packages. Hierarchy mode emphasizes relationships and values, while source mode retains normalized braces, brackets, and property syntax for technical inspection.\u003C\u002Fp>\n\n\u003Cp>Tagged output contributes logical structure for compatible assistive and downstream tools but does not independently establish accessibility conformance. Test representative payloads in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for the authoritative option contract.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:37:34.000+00:00","2026-09-01T04:48:29.000+00:00","Use cURL to convert JSON into a styled, tagged PDF with either readable hierarchy or normalized source presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:29.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use cURL to convert JSON into a styled, tagged PDF with either readable hierarchy or normalized source presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[2985,2986,2987,2988,2989,2990,2991,2992],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-with-curl\u002F","Convert JSON to PDF with cURL | pdfRest",{"id":2997,"uuid":2998,"title":2999,"slug":3000,"html":3001,"comment_id":2997,"feature_image":48,"featured":284,"visibility":1257,"created_at":2980,"updated_at":3002,"published_at":2959,"custom_excerpt":3003,"codeinjection_head":3004,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3005,"primary_tag":3014,"url":3015,"excerpt":3003,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3016,"meta_description":3003,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a96568e533c9f26b943ae37","f82ca99c-1c0d-44eb-81db-b2a3e1fb9924","How to Convert JSON to PDF with Java","how-to-convert-json-to-pdf-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Java example sends JSON to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> and receives a styled, tagged PDF. It demonstrates hierarchy presentation, document metadata, page setup, typography, multipart construction, and resource-response handling.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF with Java?\u003C\u002Fh2>\n\n\u003Cp>Enterprise Java services exchange JSON for orders, decisions, events, and integration results. Those payloads are efficient application contracts, but they are poor review documents when someone must understand nested properties or retain the information with a business case.\u003C\u002Fp>\n\n\u003Cp>Consider an order platform that receives a JSON decision from a fraud-screening service. Java can convert the response into a hierarchy-formatted PDF where decision fields, reason arrays, and nested account details remain visibly related. Operations staff can add the PDF to the order record while developers preserve the original payload for programmatic analysis.\u003C\u002Fp>\n\n\u003Cp>Using the API keeps the Java application from maintaining a second reporting model for arbitrary JSON shapes. It can choose a readable hierarchy for operational review or normalized source for engineers, while applying the same metadata, page design, and tagging rules to both.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PdfFromJson {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.json\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n    JSONObject options =\n        new JSONObject(\n            \"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\",\\\"enable_tagging\\\":true,\\\"page_setup\\\":{\\\"size\\\":\\\"Letter\\\",\\\"orientation\\\":\\\"portrait\\\",\\\"margin\\\":{\\\"top\\\":36,\\\"right\\\":42,\\\"bottom\\\":36,\\\"left\\\":42}},\\\"style\\\":{\\\"font\\\":\\\"Arial\\\",\\\"heading_font\\\":\\\"Arial\\\",\\\"code_font\\\":\\\"Courier\\\",\\\"text_size\\\":11,\\\"text_color_rgb\\\":[34,34,34],\\\"heading_scale\\\":1.35,\\\"table\\\":{\\\"column_width_weights\\\":[2,3,2],\\\"keep_header_with_first_row\\\":true,\\\"repeat_headers_on_overflow\\\":true,\\\"show_borders\\\":true,\\\"border_width\\\":0.75,\\\"border_color_rgb\\\":[180,188,200],\\\"header_fill_color_rgb\\\":[33,64,98],\\\"header_text_color_rgb\\\":[255,255,255],\\\"row_fill_color_rgb\\\":[250,250,252],\\\"alternate_row_fill_color_rgb\\\":[235,240,246],\\\"cell_padding\\\":{\\\"top\\\":6,\\\"right\\\":8,\\\"bottom\\\":6,\\\"left\\\":8}}},\\\"data_presentation\\\":\\\"hierarchy\\\"}\");\n    MultipartBody.Builder form =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\n                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\n  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPdfFromJson.java\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This Java JSON example combines OkHttp for transport, \u003Ccode>org.json\u003C\u002Fcode> for conversion settings, and dotenv support for repository configuration. Those project dependencies must remain available when the class is moved into another application.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The Java endpoint excerpt exposes the regional service selection used for this JSON conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">public class PdfFromJson {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.json\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\u003C\u002Fpre>\n\n\u003Cp>Java wraps the .json path in an OkHttp request body and retains the filename in the multipart upload. The shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint uses that extension to select JSON conversion.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.json\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>JSONObject\u003C\u002Fcode> is the pdfRest conversion profile. Its title and language describe the PDF, \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical tags, and \u003Ccode>page_setup\u003C\u002Fcode> establishes Letter portrait pages with 36-point margins. The \u003Ccode>style\u003C\u002Fcode> member controls the fonts, text size, color, and any JSON-specific rendering choices.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>For the JSON upload, \u003Ccode>MultipartBody.Builder\u003C\u002Fcode> combines the source file, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and ordinary \u003Ccode>output\u003C\u002Fcode> text field in one request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\u003C\u002Fpre>\n\n\u003Cp>OkHttp submits the JSON conversion with the API key and checks the HTTP result. The printed body contains generated-resource JSON after success or API error details when processing fails.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Java teams can adapt this workflow to transaction records, service responses, policy snapshots, and integration diagnostics. Complex arrays are labeled by item number, which helps reviewers navigate repeated objects without requiring domain-specific templates.\u003C\u002Fp>\n\n\u003Cp>The generated tags expose document structure but are not a PDF\u002FUA or WCAG certification. Explore payload and styling variations with \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, then consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API guide\u003C\u002Fa> for supported parameters and constraints.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:27:17.000+00:00","Convert JSON objects and arrays into styled, tagged PDFs with Java using hierarchy or normalized source views.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:30.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert JSON objects and arrays into styled, tagged PDFs with Java using hierarchy or normalized source views.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3006,3007,3008,3009,3010,3011,3012,3013],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-with-java\u002F","Convert JSON to PDF with Java | pdfRest",{"id":3018,"uuid":3019,"title":3020,"slug":3021,"html":3022,"comment_id":3018,"feature_image":48,"featured":284,"visibility":1257,"created_at":3023,"updated_at":3002,"published_at":2959,"custom_excerpt":3024,"codeinjection_head":3025,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3026,"primary_tag":3035,"url":3036,"excerpt":3024,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3037,"meta_description":3024,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a96568f533c9f26b943ae41","ca13babe-721a-47c7-965d-36d6c48c1439","How to Convert JSON to PDF with JavaScript in NodeJS","how-to-convert-json-to-pdf-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This NodeJS walkthrough uses JavaScript to convert a JSON file through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. One multipart request supplies the source and structured options for a tagged PDF with a clear nested layout.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF with JavaScript in NodeJS?\u003C\u002Fh2>\n\n\u003Cp>NodeJS applications routinely receive webhook payloads and API responses that are meaningful to the product but hard to share outside a developer console. Customer-facing and operational workflows often need a stable artifact that can be downloaded, forwarded, and reviewed with other documents.\u003C\u002Fp>\n\n\u003Cp>Imagine a SaaS support system investigating a failed provisioning webhook. Its backend can convert the captured JSON into a PDF that groups account fields, status details, and nested error objects hierarchically. The support engineer gains a readable case attachment, while the exact JSON remains available in the event store.\u003C\u002Fp>\n\n\u003Cp>The same JavaScript integration can request source mode when braces, arrays, and literal values must remain visible. Because both presentations use \u003Ccode>\u002Fpdf\u003C\u002Fcode>, the application can choose according to the audience rather than building separate browser and server rendering paths.\u003C\u002Fp>\n\n\u003Ch2>JavaScript Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.json\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_json\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-json.js\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The NodeJS JSON walkthrough uses \u003Ccode>axios\u003C\u002Fcode>, \u003Ccode>form-data\u003C\u002Fcode>, and Node’s file-system module. Outside the samples project, install its HTTP and multipart dependencies with \u003Ccode>npm install axios form-data\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\u003C\u002Fpre>\n\n\u003Cp>This NodeJS excerpt keeps the regional endpoint visible for the JSON workflow:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>JavaScript streams the .json source into the form while preserving its filename. pdfRest infers JSON conversion from that extension, so \u003Ccode>structured_text_options\u003C\u002Fcode> does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.json\";\nvar form = new FormData();\u003C\u002Fpre>\n\n\u003Cp>The object passed through \u003Ccode>JSON.stringify\u003C\u002Fcode> is interpreted by pdfRest as \u003Ccode>structured_text_options\u003C\u002Fcode>. It sets PDF metadata, explicitly enables tagging, defines Letter portrait geometry and margins, and supplies the font and color choices used when laying out the JSON content.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>NodeJS uses \u003Ccode>FormData\u003C\u002Fcode> to append the JSON file, stringified \u003Ccode>structured_text_options\u003C\u002Fcode>, and output name. The generated form headers provide the multipart boundary for those fields.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var inputPath = \"\u002Fpath\u002Fto\u002Fsample.json\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_json\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Axios sends the JSON request to \u003Ccode>\u002Fpdf\u003C\u002Fcode> with the form headers and \u003Ccode>Api-Key\u003C\u002Fcode>. Its success path prints resource JSON, while the rejection path exposes either the API response or the client-side error.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_json\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Useful extensions include webhook archives, account snapshots, job-result exports, and downloadable API diagnostics. Hierarchy presentation favors quick comprehension; source presentation favors developers comparing the normalized payload with code or logs.\u003C\u002Fp>\n\n\u003Cp>Logical tags can improve navigation and automated interpretation without guaranteeing compliance with a named accessibility standard. Prototype the conversion in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and reference the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> before finalizing production behavior.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:37:35.000+00:00","Create styled and tagged PDFs from JSON in NodeJS with configurable hierarchy and normalized source presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:30.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:14.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Create styled and tagged PDFs from JSON in NodeJS with configurable hierarchy and normalized source presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, JavaScript\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3027,3028,3029,3030,3031,3032,3033,3034],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-with-javascript-in-nodejs\u002F","Convert JSON to PDF with NodeJS | pdfRest",{"id":3039,"uuid":3040,"title":3041,"slug":3042,"html":3043,"comment_id":3039,"feature_image":48,"featured":284,"visibility":1257,"created_at":2957,"updated_at":3044,"published_at":3045,"custom_excerpt":3046,"codeinjection_head":3047,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3048,"primary_tag":3057,"url":3058,"excerpt":3046,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3059,"meta_description":3046,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965690533c9f26b943ae55","82aef272-3ab4-4761-b98c-25c03e95d8b5","How to Convert JSON to PDF with PHP","how-to-convert-json-to-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This PHP tutorial converts JSON into a styled, tagged PDF through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The example uploads the payload with structured options and requests a nested hierarchy designed for human reading.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>PHP commerce and portal applications generate JSON for orders, fulfillment events, account settings, and background jobs. A raw payload is useful to the application but can create unnecessary friction when customer service or a partner needs a readable record.\u003C\u002Fp>\n\n\u003Cp>An online store might receive a JSON fulfillment response containing packages, tracking events, item arrays, and exception details. PHP can convert the response into a hierarchy-formatted PDF and attach it to an escalated order. Agents can follow the nested information without searching through punctuation or copying values into a separate document.\u003C\u002Fp>\n\n\u003Cp>Source presentation remains available when technical support needs normalized JSON syntax for troubleshooting. One PHP integration can therefore produce either a reader-oriented case attachment or a developer-oriented payload record while keeping common styling and metadata.\u003C\u002Fp>\n\n\u003Ch2>PHP Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$inputPath = '\u002Fpath\u002Fto\u002Fsample.json';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}', true);\n\n\u002F\u002F This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_json'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-json.php\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This PHP JSON example relies on Guzzle for HTTP and PSR-7 stream utilities for the upload. When using the code outside this repository, add the client with \u003Ccode>composer require guzzlehttp\u002Fguzzle\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\u003C\u002Fpre>\n\n\u003Cp>The PHP endpoint excerpt keeps regional routing explicit for this JSON operation:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>PHP opens the .json source as a PSR-7 stream and includes its filename in the multipart part. The extension selects JSON processing without duplicating the format in the options JSON.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$inputPath = '\u002Fpath\u002Fto\u002Fsample.json';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}', true);\u003C\u002Fpre>\n\n\u003Cp>The array decoded into \u003Ccode>$options\u003C\u002Fcode> is serialized as pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode>. It describes the PDF title and language, explicitly turns on tagging, chooses Letter portrait pages with 36-point margins, and provides typography plus JSON-specific styling.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>The PHP multipart array assigns \u003Ccode>name\u003C\u002Fcode> and \u003Ccode>contents\u003C\u002Fcode> values to the JSON stream, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and requested output name.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_json'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Guzzle prepares and submits the JSON multipart body with the API key. The response body contains generated-resource information on success and service error details when the conversion cannot be completed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_json'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This method can generate downloadable account snapshots, order-event records, job summaries, and partner-integration evidence. It is especially useful when payload structures vary enough that maintaining a custom template for every response would be impractical.\u003C\u002Fp>\n\n\u003Cp>Tagged structure supports document navigation and later processing but is not an automatic accessibility guarantee. Exercise different JSON shapes in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API documentation\u003C\u002Fa> for the complete set of controls.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:27:18.000+00:00","2026-09-01T04:48:31.000+00:00","Turn JSON files into readable, tagged PDF documents with PHP using hierarchy or normalized source presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:31.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:15.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Turn JSON files into readable, tagged PDF documents with PHP using hierarchy or normalized source presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3049,3050,3051,3052,3053,3054,3055,3056],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-with-php\u002F","Convert JSON to PDF with PHP | pdfRest",{"id":3061,"uuid":3062,"title":3063,"slug":3064,"html":3065,"comment_id":3061,"feature_image":48,"featured":284,"visibility":1257,"created_at":3066,"updated_at":3044,"published_at":3045,"custom_excerpt":3067,"codeinjection_head":3068,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3069,"primary_tag":3078,"url":3079,"excerpt":3067,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3080,"meta_description":3067,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a965691533c9f26b943ae5f","bab2aa16-6a53-42bc-8028-f2fd5df338f6","How to Convert JSON to PDF with Python","how-to-convert-json-to-pdf-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Python example converts a JSON file with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It demonstrates multipart upload, hierarchy presentation, tagged output, page setup, typography, and explicit response handling.\u003C\u002Fp>\n\n\u003Ch2>Why Convert JSON to PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>Python pipelines frequently write run metadata, validation results, and experiment configurations as JSON. Those files are ideal for further processing, but project leads and reviewers may need a PDF that can be annotated, distributed, or retained with other deliverables.\u003C\u002Fp>\n\n\u003Cp>A data-science workflow offers a concrete case: after an evaluation run, Python can save model settings, dataset identifiers, metric values, and warning arrays as JSON. Converting that payload into a hierarchy-formatted PDF creates a readable experiment record without discarding the machine-readable source used for reproducibility.\u003C\u002Fp>\n\n\u003Cp>When a developer needs to inspect literal JSON instead, source mode validates and pretty-prints the payload. Python automation can choose either presentation for each audience while using the same request to enforce page size, fonts, language metadata, and tagging.\u003C\u002Fp>\n\n\u003Ch2>Python Code Example for Converting JSON to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts JSON input to a tagged PDF through multipart \u002Fpdf.\n# It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.json\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  \"enable_tagging\": true,\n  \"page_setup\": {\n    \"size\": \"Letter\",\n    \"orientation\": \"portrait\",\n    \"margin\": {\n      \"top\": 36,\n      \"right\": 42,\n      \"bottom\": 36,\n      \"left\": 42\n    }\n  },\n  \"style\": {\n    \"font\": \"Arial\",\n    \"heading_font\": \"Arial\",\n    \"code_font\": \"Courier\",\n    \"text_size\": 11,\n    \"text_color_rgb\": [\n      34,\n      34,\n      34\n    ],\n    \"heading_scale\": 1.35,\n    \"table\": {\n      \"column_width_weights\": [\n        2,\n        3,\n        2\n      ],\n      \"keep_header_with_first_row\": true,\n      \"repeat_headers_on_overflow\": true,\n      \"show_borders\": true,\n      \"border_width\": 0.75,\n      \"border_color_rgb\": [\n        180,\n        188,\n        200\n      ],\n      \"header_fill_color_rgb\": [\n        33,\n        64,\n        98\n      ],\n      \"header_text_color_rgb\": [\n        255,\n        255,\n        255\n      ],\n      \"row_fill_color_rgb\": [\n        250,\n        250,\n        252\n      ],\n      \"alternate_row_fill_color_rgb\": [\n        235,\n        240,\n        246\n      ],\n      \"cell_padding\": {\n        \"top\": 6,\n        \"right\": 8,\n        \"bottom\": 6,\n        \"left\": 8\n      }\n    }\n  },\n  \"data_presentation\": \"hierarchy\"\n}''')\n\nfrom requests_toolbelt import MultipartEncoder\nwith open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-json.py\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Python JSON sample uses \u003Ccode>requests\u003C\u002Fcode> and \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. Install both with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode> when they are not already present.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\u003C\u002Fpre>\n\n\u003Cp>This Python endpoint excerpt identifies the regional service used for JSON conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>Python opens the .json input in binary mode and sends its base filename with the stream. \u003Ccode>\u002Fpdf\u003C\u002Fcode> uses that filename extension to infer the JSON input type.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.json\"\noptions = json.loads(r'''{\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> dictionary becomes pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode> field. It supplies document metadata, explicitly requests tags, establishes Letter portrait pages and 36-point margins, and selects the fonts, text size, color, and JSON-specific presentation values.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It validates and parses the input, then pretty-prints normalized JSON syntax in a code-style block; original indentation and insignificant whitespace are not preserved. \u003Ccode>hierarchy\u003C\u002Fcode> removes the syntax and creates a nested list in which property names are bold and primitive values appear as key-value items.\u003C\u002Fp>\n\n\u003Cp>Scalar arrays become ordinary nested values. Arrays containing objects or other arrays label their members \u003Ccode>Item 1\u003C\u002Fcode>, \u003Ccode>Item 2\u003C\u002Fcode>, and so on. The converter preserves JSON structure but intentionally does not infer application-specific report meaning. Malformed JSON is rejected in either presentation mode.\u003C\u002Fp>\n\n\u003Cp>The sample’s shared \u003Ccode>style.table\u003C\u002Fcode> object does not affect JSON source or hierarchy output. It can be omitted when the profile is used only for JSON conversion.\u003C\u002Fp>\n\n\u003Cp>For the JSON call, \u003Ccode>MultipartEncoder\u003C\u002Fcode> combines the file tuple with serialized \u003Ccode>structured_text_options\u003C\u002Fcode>. Its \u003Ccode>content_type\u003C\u002Fcode>, including the boundary, becomes the request’s \u003Ccode>Content-Type\u003C\u002Fcode> header.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">with open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>requests.post\u003C\u002Fcode> sends the encoded JSON form with the API key. The script pretty-prints resource JSON after success and otherwise displays the API message before exiting with a nonzero status.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>The pattern also suits pipeline manifests, data-quality output, API snapshots, and reproducibility records. Hierarchy mode clarifies nested values and arrays; source mode provides normalized syntax for comparison and debugging.\u003C\u002Fp>\n\n\u003Cp>Tags establish logical structure for assistive and downstream software without constituting a formal conformance claim. Test realistic files in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for current requirements and limitations.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T04:37:37.000+00:00","Convert JSON data into styled, tagged PDFs with Python and choose hierarchy or normalized source presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F#article\",\n      \"headline\": \"How to Convert JSON to PDF with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F\",\n      \"datePublished\": \"2026-09-01T04:48:31.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:15.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert JSON data into styled, tagged PDFs with Python and choose hierarchy or normalized source presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert JSON to PDF with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-json-to-pdf-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3070,3071,3072,3073,3074,3075,3076,3077],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1422,"name":1423,"slug":1424,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-json-to-pdf-with-python\u002F","Convert JSON to PDF with Python | pdfRest",{"id":3082,"uuid":3083,"title":3084,"slug":3085,"html":3086,"comment_id":3082,"feature_image":48,"featured":284,"visibility":1257,"created_at":3087,"updated_at":3088,"published_at":3087,"custom_excerpt":3089,"codeinjection_head":3090,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3091,"primary_tag":3100,"url":3101,"excerpt":3089,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3102,"meta_description":3089,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a92036e533c9f26b943ac68","90b73e28-1206-4e90-ad2b-1caa7705d4f8","How to Convert Markdown to PDF in .NET with C#","how-to-convert-markdown-to-pdf-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This C# walkthrough converts a Markdown file into a tagged PDF using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It combines the source, an uploaded image, and layout settings in a multipart request suitable for a .NET document workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with C#?\u003C\u002Fh2>\n\n\u003Cp>.NET teams commonly author runbooks, change notes, and internal standards in Markdown because it fits naturally with Git-based review. Formal approval processes, external distribution, and records management often require a PDF version with predictable pages and presentation.\u003C\u002Fp>\n\n\u003Cp>For example, a release-management portal can collect approved Markdown change notes, a compatibility matrix, and a product diagram, then generate a PDF for the change-approval package. Reviewers get a stable artifact with styled tables and visible document structure, while developers avoid manually copying the content into Word or rebuilding it in a second template.\u003C\u002Fp>\n\n\u003Cp>The API makes the export repeatable from the same source of truth. C# code can specify margins, fonts, colors, tagging, and image alternate text without automating desktop software or calculating where each Markdown element belongs on the page.\u003C\u002Fp>\n\n\u003Ch2>C# Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Converts structured Markdown input to PDF through the \u002Fpdf endpoint.\n *\n * Setup (environment):\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region.\n *\n * Usage:\n *   dotnet run -- pdf-from-markdown-multipart \u003CinputFile> \u003CimageFile>\n *\u002F\nusing Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nnamespace Samples.EndpointExamples.MultipartPayload;\n\npublic static class PdfFromMarkdown\n{\n    public static async Task Execute(string[] args)\n    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.md\";\n        var imagePath = args.Length > 1 ? args[1] : \"\u002Fpath\u002Fto\u002Flogo.png\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\n        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n        var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"markdown\"\":{\"\"image_alt_text\"\":{\"\"sample-logo\"\":\"\"Sample logo\"\"},\"\"missing_image_alt_text\"\":\"\"fail\"\",\"\"image_sources\"\":{\"\"sample-logo\"\":{\"\"upload_index\"\":0}}}}\");\n        using var form = new MultipartFormDataContent();\n        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        var imageContent = new ByteArrayContent(await File.ReadAllBytesAsync(imagePath));\n        imageContent.Headers.ContentType = new MediaTypeHeaderValue(\"image\u002Fpng\");\n        form.Add(imageContent, \"image_files\", Path.GetFileName(imagePath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-markdown.cs\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The \u003Ccode>Execute\u003C\u002Fcode> method accepts command-line arguments for the Markdown source and image file. These values can be supplied when running the sample, or you can replace the placeholder paths directly.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.md\";\nvar imagePath = args.Length > 1 ? args[1] : \"\u002Fpath\u002Fto\u002Flogo.png\";\n\u003C\u002Fpre>\n\n\u003Cp>The first path identifies the Markdown source, while the second identifies the local image uploaded with the request. The API determines that the source is Markdown from the uploaded file extension, so the options JSON does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\nif (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n\u003C\u002Fpre>\n\n\u003Cp>The sample reads the pdfRest API key from the \u003Ccode>PDFREST_API_KEY\u003C\u002Fcode> environment variable and stops with a clear error if the key is missing.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\nusing var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n\u003C\u002Fpre>\n\n\u003Cp>The API base URL defaults to the US-based pdfRest service. Set \u003Ccode>PDFREST_URL\u003C\u002Fcode> when you need to use a different supported service region.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\nclient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n\u003C\u002Fpre>\n\n\u003Cp>These headers authenticate the request and indicate that the application expects a JSON response containing the generated PDF resource details and download URL.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"markdown\"\":{\"\"image_alt_text\"\":{\"\"sample-logo\"\":\"\"Sample logo\"\"},\"\"missing_image_alt_text\"\":\"\"fail\"\",\"\"image_sources\"\":{\"\"sample-logo\"\":{\"\"upload_index\"\":0}}}}\");\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> object becomes the \u003Ccode>structured_text_options\u003C\u002Fcode> form field. It sets the PDF title and language, enables tagged output, configures the page, and applies typography and table styling. The table settings control relative column widths, repeated headers, borders, colors, padding, and alternating row fills for Markdown tables.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>markdown.image_sources\u003C\u002Fcode> configuration maps the Markdown image target \u003Ccode>sample-logo\u003C\u002Fcode> to the first uploaded image, represented by \u003Ccode>\"upload_index\": 0\u003C\u002Fcode>. The Markdown source should contain the same target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. The \u003Ccode>image_alt_text\u003C\u002Fcode> value supplies alternate text, while \u003Ccode>missing_image_alt_text\u003C\u002Fcode> is set to \u003Ccode>fail\u003C\u002Fcode> so that conversion stops if a meaningful image lacks alternate text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using var form = new MultipartFormDataContent();\nvar inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\ninputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\nform.Add(inputContent, \"file\", Path.GetFileName(inputPath));\nvar imageContent = new ByteArrayContent(await File.ReadAllBytesAsync(imagePath));\nimageContent.Headers.ContentType = new MediaTypeHeaderValue(\"image\u002Fpng\");\nform.Add(imageContent, \"image_files\", Path.GetFileName(imagePath));\nform.Add(new StringContent(options.ToString()), \"structured_text_options\");\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> object holds the Markdown source, uploaded image, and JSON conversion options. The uploaded image is available to the Markdown conversion through its zero-based upload index.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var response = await client.PostAsync(\"pdf\", form);\nvar result = await response.Content.ReadAsStringAsync();\nConsole.WriteLine(result);\nif (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>PostAsync\u003C\u002Fcode> call sends the multipart request to \u003Ccode>\u002Fpdf\u003C\u002Fcode>. The response is printed to the console, and the sample returns a nonzero exit status when the API reports an error.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how a C# application can create a polished, tagged PDF from Markdown while controlling document presentation and resolving a local image in the same request. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>.NET applications may remove image, table, or typography fields that are unnecessary for a particular Markdown conversion. Validate representative requests in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and review the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa> before finalizing the integration.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T21:53:50.000+00:00","2026-09-02T18:27:19.000+00:00","Create a tagged, professionally styled PDF from Markdown in C#, with support for tables and mapped images.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F\",\n      \"datePublished\": \"2026-08-28T21:53:50.000Z\",\n      \"dateModified\": \"2026-09-01T05:11:16.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Create a tagged, professionally styled PDF from Markdown in C#, with support for tables and mapped images.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Conversion, Convert to PDF, Markdown\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3092,3093,3094,3095,3096,3097,3098,3099],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-in-net-with-c\u002F","How to Convert Markdown to PDF in .NET with C#, Tutorial | pdfRest",{"id":3104,"uuid":3105,"title":3106,"slug":3107,"html":3108,"comment_id":3104,"feature_image":48,"featured":284,"visibility":1257,"created_at":3109,"updated_at":3088,"published_at":3109,"custom_excerpt":3110,"codeinjection_head":3111,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3112,"primary_tag":3121,"url":3122,"excerpt":3110,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3123,"meta_description":3110,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a920738533c9f26b943ac85","d5cddba3-657e-47b5-81e7-dac562cffe99","How to Convert Markdown to PDF with cURL","how-to-convert-markdown-to-pdf-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows how to convert Markdown to PDF with cURL and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The request applies page and table styling, creates tagged output, and maps an uploaded image into the Markdown document in one multipart API call.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>Markdown is efficient for writing release notes, technical instructions, and project documentation, but a \u003Ccode>.md\u003C\u002Fcode> file is not always appropriate for customers, approvers, or document archives. PDF gives that same content a stable page layout while retaining headings, lists, links, code blocks, tables, and images.\u003C\u002Fp>\n\n\u003Cp>A CI release job offers a practical example. After a build creates Markdown release notes containing a compatibility table and product image, a shell step can submit those assets to pdfRest and save the generated PDF with the release artifacts. Product managers and customers receive a polished document, while engineers continue maintaining the source in version control.\u003C\u002Fp>\n\n\u003Cp>The image mapping and alternate-text settings make the workflow suitable for more than text-only conversion. Combined with configurable typography, table colors, margins, language metadata, and tags, cURL can turn an existing Markdown publishing step into repeatable PDF generation without adding a browser-based renderer to the build environment.\u003C\u002Fp>\n\n\u003Ch2>cURL Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts Markdown input to a tagged PDF through multipart \u002Fpdf.\n# It maps a Markdown image target to an uploaded image resource.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.md\"\nIMAGE_PATH=\"\u002Fpath\u002Fto\u002Flogo.png\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"markdown\":{\"image_alt_text\":{\"sample-logo\":\"Sample logo\"},\"missing_image_alt_text\":\"fail\",\"image_sources\":{\"sample-logo\":{\"upload_index\":0}}}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"image_files=@$IMAGE_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_markdown\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-markdown.sh\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Markdown shell example calls cURL directly, so no language package is required. \u003Ccode>API_URL\u003C\u002Fcode> keeps regional routing visible: the active value uses the US service, and the commented alternative selects the EU service.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts Markdown input to a tagged PDF through multipart \u002Fpdf.\n# It maps a Markdown image target to an uploaded image resource.\u003C\u002Fpre>\n\n\u003Cp>For this Markdown request, the endpoint excerpt makes the regional service choice explicit:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>INPUT_PATH\u003C\u002Fcode> identifies the local .md source. The \u003Ccode>@\u003C\u002Fcode> prefix in the later \u003Ccode>--form\u003C\u002Fcode> argument instructs cURL to upload that file’s contents instead of sending its path as text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># It maps a Markdown image target to an uploaded image resource.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.md\"\nIMAGE_PATH=\"\u002Fpath\u002Fto\u002Flogo.png\"\u003C\u002Fpre>\n\n\u003Cp>The JSON assigned to \u003Ccode>OPTIONS\u003C\u002Fcode> is pdfRest-specific rather than shell syntax. \u003Ccode>title\u003C\u002Fcode> becomes document metadata, \u003Ccode>language\u003C\u002Fcode> identifies the document language, and \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical structure. \u003Ccode>page_setup\u003C\u002Fcode> selects Letter portrait pages with 36-point margins, while \u003Ccode>style\u003C\u002Fcode> supplies fonts, text size, color, and format-specific presentation.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"markdown\": {\n    \"image_alt_text\": {\n      \"sample-logo\": \"Company logo\"\n    },\n    \"missing_image_alt_text\": \"fail\",\n    \"image_sources\": {\n      \"sample-logo\": {\n        \"upload_index\": 0\n      }\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>The key \u003Ccode>sample-logo\u003C\u002Fcode> must match the Markdown image target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. \u003Ccode>upload_index: 0\u003C\u002Fcode> selects the first file supplied through \u003Ccode>image_files\u003C\u002Fcode>; indexes are zero-based. The alternate-text map supplies meaningful text for that target, and \u003Ccode>missing_image_alt_text: \"fail\"\u003C\u002Fcode> stops conversion when a meaningful mapped image lacks alternate text.\u003C\u002Fp>\n\n\u003Cp>The table subsection styles Markdown tables with relative column widths, repeated headers, borders, header and row colors, alternating fills, and cell padding. These values affect Markdown tables found in the source; they do not create a table when the Markdown contains none.\u003C\u002Fp>\n\n\u003Cp>For Markdown conversion, the \u003Ccode>--form\u003C\u002Fcode> arguments create the multipart fields: \u003Ccode>file\u003C\u002Fcode> carries the structured source, \u003Ccode>structured_text_options\u003C\u002Fcode> carries serialized settings, and \u003Ccode>output\u003C\u002Fcode> names the requested PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"image_files=@$IMAGE_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_markdown\"\u003C\u002Fpre>\n\n\u003Cp>The Markdown request asks for JSON with \u003Ccode>Accept\u003C\u002Fcode>, declares multipart form data with \u003Ccode>Content-Type\u003C\u002Fcode>, and authenticates through \u003Ccode>Api-Key\u003C\u002Fcode>. Success returns the generated PDF resource and download URL; failure returns API error information.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">INPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.md\"\nIMAGE_PATH=\"\u002Fpath\u002Fto\u002Flogo.png\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"markdown\":{\"image_alt_text\":{\"sample-logo\":\"Sample logo\"},\"missing_image_alt_text\":\"fail\",\"image_sources\":{\"sample-logo\":{\"upload_index\":0}}}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"image_files=@$IMAGE_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_markdown\"\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how cURL can generate a polished, tagged PDF from Markdown while controlling presentation and resolving a local image in the same multipart request. Enabling tags adds logical document structure, but it does not establish compliance with a particular accessibility standard.\u003C\u002Fp>\n\n\u003Cp>Simpler Markdown workflows can omit image mapping or styling fields they do not use. Explore request variations in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and see the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for the complete parameter reference.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T22:10:00.000+00:00","Convert styled Markdown with tables, images, and tagged structure into PDF using cURL and the pdfRest API.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F\",\n      \"datePublished\": \"2026-08-28T22:10:00.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:04.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert styled Markdown with tables, images, and tagged structure into PDF using cURL and the pdfRest API.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Markdown, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3113,3114,3115,3116,3117,3118,3119,3120],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-with-curl\u002F","How to Convert Markdown to PDF with cURL, Tutorial | pdfRest",{"id":3125,"uuid":3126,"title":3127,"slug":3128,"html":3129,"comment_id":3125,"feature_image":48,"featured":284,"visibility":1257,"created_at":3130,"updated_at":3088,"published_at":3130,"custom_excerpt":3131,"codeinjection_head":3132,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3133,"primary_tag":3142,"url":3143,"excerpt":3131,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3144,"meta_description":3131,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a920725533c9f26b943ac7c","90d5f08c-d95e-43d6-a08c-4666e2969bc1","How to Convert Markdown to PDF with Java","how-to-convert-markdown-to-pdf-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Java example converts Markdown into a styled, tagged PDF through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It demonstrates multipart upload, document and table styling, and explicit image mapping for a complete server-side conversion workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with Java?\u003C\u002Fh2>\n\n\u003Cp>Enterprise applications often store procedures and product content as Markdown because it is easy to review, diff, and generate. The people consuming that material may instead need a paginated PDF for onboarding, deployment, approval, or offline access.\u003C\u002Fp>\n\n\u003Cp>Consider a Java-based knowledge platform that maintains installation guides in Markdown. When a customer downloads a guide, the application can submit the article, its logo, and its configuration table to pdfRest. The resulting PDF preserves the document hierarchy, styles the table consistently, and embeds the supplied image without requiring the platform to maintain a separate PDF template.\u003C\u002Fp>\n\n\u003Cp>Using one structured conversion request also reduces drift between online and downloadable documentation. Java services can control page geometry and visual presentation while retaining Markdown’s authoring advantages, and tagged output provides logical structure for assistive technology and downstream document processing.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PdfFromMarkdown {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.md\");\n    File imageFile = new File(args.length > 1 ? args[1] : \"\u002Fpath\u002Fto\u002Flogo.png\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n    JSONObject options =\n        new JSONObject(\n            \"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\",\\\"enable_tagging\\\":true,\\\"page_setup\\\":{\\\"size\\\":\\\"Letter\\\",\\\"orientation\\\":\\\"portrait\\\",\\\"margin\\\":{\\\"top\\\":36,\\\"right\\\":42,\\\"bottom\\\":36,\\\"left\\\":42}},\\\"style\\\":{\\\"font\\\":\\\"Arial\\\",\\\"heading_font\\\":\\\"Arial\\\",\\\"code_font\\\":\\\"Courier\\\",\\\"text_size\\\":11,\\\"text_color_rgb\\\":[34,34,34],\\\"heading_scale\\\":1.35,\\\"table\\\":{\\\"column_width_weights\\\":[2,3,2],\\\"keep_header_with_first_row\\\":true,\\\"repeat_headers_on_overflow\\\":true,\\\"show_borders\\\":true,\\\"border_width\\\":0.75,\\\"border_color_rgb\\\":[180,188,200],\\\"header_fill_color_rgb\\\":[33,64,98],\\\"header_text_color_rgb\\\":[255,255,255],\\\"row_fill_color_rgb\\\":[250,250,252],\\\"alternate_row_fill_color_rgb\\\":[235,240,246],\\\"cell_padding\\\":{\\\"top\\\":6,\\\"right\\\":8,\\\"bottom\\\":6,\\\"left\\\":8}}},\\\"markdown\\\":{\\\"image_alt_text\\\":{\\\"sample-logo\\\":\\\"Sample logo\\\"},\\\"missing_image_alt_text\\\":\\\"fail\\\",\\\"image_sources\\\":{\\\"sample-logo\\\":{\\\"upload_index\\\":0}}}}\");\n    MultipartBody.Builder form =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\n                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\n                \"image_files\",\n                imageFile.getName(),\n                RequestBody.create(imageFile, MediaType.parse(\"image\u002Fpng\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\n  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPdfFromMarkdown.java\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code imports \u003Ccode>Dotenv\u003C\u002Fcode> to load the API key from environment configuration, \u003Ccode>OkHttp\u003C\u002Fcode> to make the HTTP request, and \u003Ccode>JSONObject\u003C\u002Fcode> to construct the structured-text conversion options.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.md\");\nFile imageFile = new File(args.length > 1 ? args[1] : \"\u002Fpath\u002Fto\u002Flogo.png\");\n\u003C\u002Fpre>\n\n\u003Cp>These lines identify the Markdown source file and local image file. You can supply their paths as command-line arguments or replace the placeholder paths directly. The API determines that the source is Markdown from the uploaded file extension, so the options object does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\nString apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n\u003C\u002Fpre>\n\n\u003Cp>This code loads \u003Ccode>PDFREST_API_KEY\u003C\u002Fcode> from a local environment file when available. Replace the placeholder value with a valid pdfRest API key if you do not use a \u003Ccode>.env\u003C\u002Fcode> file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">JSONObject options = new JSONObject(\"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\", ... }\");\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> object is sent as \u003Ccode>structured_text_options\u003C\u002Fcode>. It sets the PDF title and language, enables tagged output, configures the page, and applies typography and table styling. The table options control relative column widths, repeated headers, borders, colors, padding, and alternating row fills for Markdown tables.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>markdown.image_sources\u003C\u002Fcode> configuration maps the Markdown image target \u003Ccode>sample-logo\u003C\u002Fcode> to the first uploaded image, represented by \u003Ccode>\"upload_index\": 0\u003C\u002Fcode>. The Markdown source should contain the same target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. The \u003Ccode>image_alt_text\u003C\u002Fcode> setting supplies alternate text, while \u003Ccode>missing_image_alt_text\u003C\u002Fcode> is set to \u003Ccode>fail\u003C\u002Fcode> so that conversion stops if a meaningful image lacks alternate text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">MultipartBody.Builder form = new MultipartBody.Builder().setType(MultipartBody.FORM) ...\n\u003C\u002Fpre>\n\n\u003Cp>The multipart form includes the Markdown source as \u003Ccode>file\u003C\u002Fcode>, the local image as \u003Ccode>image_files\u003C\u002Fcode>, and the JSON configuration as \u003Ccode>structured_text_options\u003C\u002Fcode>. The uploaded image is available to the Markdown conversion through its zero-based upload index.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">Request request = new Request.Builder().url(API_URL + \"\u002Fpdf\").header(\"Api-Key\", apiKey).post(form.build()).build();\n\u003C\u002Fpre>\n\n\u003Cp>This constructs a \u003Ccode>POST\u003C\u002Fcode> request to the Convert to PDF endpoint and includes the API key and multipart form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">private static void send(Request request) throws IOException { ... }\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>send\u003C\u002Fcode> method executes the request with OkHttp, prints the response code and body, and returns a nonzero exit status when the API reports an error.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how a Java application can create a polished, tagged PDF from Markdown while controlling document presentation and resolving a local image in the same request. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>A Java integration can omit image mapping, table styling, or other controls that its Markdown source does not use. Experiment with a smaller profile in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for accepted values and defaults.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T22:09:41.000+00:00","Use Java to create a styled, tagged PDF from Markdown content, tables, and uploaded images with pdfRest.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F\",\n      \"datePublished\": \"2026-08-28T22:09:41.000Z\",\n      \"dateModified\": \"2026-09-01T05:11:15.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use Java to create a styled, tagged PDF from Markdown content, tables, and uploaded images with pdfRest.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Java, Markdown\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3134,3135,3136,3137,3138,3139,3140,3141],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-with-java\u002F","How to Convert Markdown to PDF with Java, Tutorial | pdfRest",{"id":3146,"uuid":3147,"title":3148,"slug":3149,"html":3150,"comment_id":3146,"feature_image":48,"featured":284,"visibility":1257,"created_at":3151,"updated_at":3152,"published_at":3151,"custom_excerpt":3153,"codeinjection_head":3154,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3155,"primary_tag":3164,"url":3165,"excerpt":3153,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3166,"meta_description":3153,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a920399533c9f26b943ac72","617bfe16-cd2a-4ec2-83ac-dd32de720e8b","How to Convert Markdown to PDF with JavaScript in NodeJS","how-to-convert-markdown-to-pdf-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This JavaScript tutorial uses NodeJS to send Markdown, an image, and structured conversion options to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The response is a tagged PDF with customized typography, page setup, and table presentation.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>Web applications frequently accept Markdown for project updates, user-authored documentation, and generated reports. Browser rendering works inside the product, but users still ask for a PDF they can download, circulate, or include with records outside the application.\u003C\u002Fp>\n\n\u003Cp>A project-management service might assemble a quarterly status report in Markdown with milestone lists, a risk table, and an uploaded progress chart. Its NodeJS backend can map that chart to the image reference in the source and create a PDF export on demand. Stakeholders receive a coherent document rather than a screenshot or an unstyled print view.\u003C\u002Fp>\n\n\u003Cp>This approach allows the same Markdown content model to serve both web and document channels. The conversion profile handles page boundaries, repeated table headers, colors, fonts, image alternate text, and tagging, leaving the JavaScript application responsible for the content rather than PDF layout calculations.\u003C\u002Fp>\n\n\u003Ch2>JavaScript Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F This sample converts Markdown input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options, table styling, tagging, and uploaded Markdown image mapping.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.md\";\nvar imagePath = \"\u002Fpath\u002Fto\u002Flogo.png\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"image_files\", fs.createReadStream(imagePath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"markdown\":{\"image_alt_text\":{\"sample-logo\":\"Sample logo\"},\"missing_image_alt_text\":\"fail\",\"image_sources\":{\"sample-logo\":{\"upload_index\":0}}}}));\nform.append(\"output\", \"pdf_from_markdown\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\n\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-markdown.js\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The sample uses \u003Ccode>axios\u003C\u002Fcode> to send the HTTP request, Node.js \u003Ccode>fs\u003C\u002Fcode> streams to read the local files, and \u003Ccode>form-data\u003C\u002Fcode> to construct the multipart request. When using this sample outside the pdfRest API samples repository, install the required packages with \u003Ccode>npm install axios form-data\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>apiUrl\u003C\u002Fcode> value selects the US-based pdfRest service by default. An EU endpoint is included as a commented alternative when that service region is appropriate for your workflow.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var inputPath = \"\u002Fpath\u002Fto\u002Fsample.md\";\nvar imagePath = \"\u002Fpath\u002Fto\u002Flogo.png\";\nvar form = new FormData();\n\u003C\u002Fpre>\n\n\u003Cp>These values identify the Markdown source and local image file. The API determines that the source is Markdown from the uploaded file extension, so the options object does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"image_files\", fs.createReadStream(imagePath));\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>file\u003C\u002Fcode> form field uploads the Markdown source, while \u003Ccode>image_files\u003C\u002Fcode> uploads the local image. Both files are read as streams, which is appropriate for larger files and avoids loading them entirely into memory.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"markdown\":{\"image_alt_text\":{\"sample-logo\":\"Sample logo\"},\"missing_image_alt_text\":\"fail\",\"image_sources\":{\"sample-logo\":{\"upload_index\":0}}}}));\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>structured_text_options\u003C\u002Fcode> JSON configures the generated PDF. It sets the title and language, enables tagged output, defines page setup, and applies typography and table styling. The table options control relative column widths, repeated headers, borders, colors, padding, and alternating row fills for Markdown tables.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>markdown.image_sources\u003C\u002Fcode> object maps the Markdown image target \u003Ccode>sample-logo\u003C\u002Fcode> to the first uploaded image, represented by \u003Ccode>\"upload_index\": 0\u003C\u002Fcode>. The Markdown source should use the same target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. The \u003Ccode>image_alt_text\u003C\u002Fcode> setting supplies alternate text, while \u003Ccode>missing_image_alt_text\u003C\u002Fcode> is set to \u003Ccode>fail\u003C\u002Fcode> so that conversion stops if a meaningful image lacks alternate text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"output\", \"pdf_from_markdown\");\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>output\u003C\u002Fcode> value sets the output filename for the generated PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>axios.post\u003C\u002Fcode> call sends the multipart form to \u003Ccode>\u002Fpdf\u003C\u002Fcode>. The request includes the pdfRest API key and the form headers generated by \u003Ccode>form-data\u003C\u002Fcode>. A successful response is printed as formatted JSON, while an API or network error is written to standard error.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how a Node.js application can create a polished, tagged PDF from Markdown while controlling document presentation and resolving a local image in the same request. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>NodeJS workflows only need to send the Markdown options that apply to their content and image strategy. Try alternate profiles in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, then use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> as the complete parameter reference.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T21:54:33.000+00:00","2026-09-02T18:27:20.000+00:00","Generate styled and tagged PDFs from Markdown with JavaScript, including tables and mapped image uploads.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2026-08-28T21:54:33.000Z\",\n      \"dateModified\": \"2026-09-01T05:11:16.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Generate styled and tagged PDFs from Markdown with JavaScript, including tables and mapped image uploads.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, JavaScript, Markdown\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3156,3157,3158,3159,3160,3161,3162,3163],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-with-javascript-in-nodejs\u002F","How to Convert Markdown to PDF with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3168,"uuid":3169,"title":3170,"slug":3171,"html":3172,"comment_id":3168,"feature_image":48,"featured":284,"visibility":1257,"created_at":3173,"updated_at":3152,"published_at":3173,"custom_excerpt":3174,"codeinjection_head":3175,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3176,"primary_tag":3185,"url":3186,"excerpt":3174,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3187,"meta_description":3174,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a920356533c9f26b943ac5e","e692c757-8646-49ab-b60b-33de9a58b301","How to Convert Markdown to PDF with PHP","how-to-convert-markdown-to-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This PHP tutorial converts Markdown into a tagged PDF with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The sample sends the article, a referenced image, and structured styling options together so the downloadable document matches the intended content.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>Content portals and support sites often store articles as Markdown because editors can maintain headings, links, procedures, and code examples without working in raw HTML. Customers may still need a PDF for offline troubleshooting, field work, or sharing with someone who cannot access the portal.\u003C\u002Fp>\n\n\u003Cp>Imagine a PHP knowledge base containing a repair procedure with ordered steps, a parts table, command examples, and an annotated image. When a technician requests a download, the application can convert the existing Markdown into a formatted PDF and map the uploaded illustration to its source reference. The team maintains one article instead of a web version and a separately edited manual.\u003C\u002Fp>\n\n\u003Cp>Configurable table fills, borders, padding, typography, and page margins help the export look intentional rather than like a browser printout. Tags and image alternate text add useful document semantics, while the PHP application continues using its established Markdown publishing workflow.\u003C\u002Fp>\n\n\u003Ch2>PHP Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$inputPath = '\u002Fpath\u002Fto\u002Fsample.md';\n$imagePath = '\u002Fpath\u002Fto\u002Flogo.png';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"markdown\":{\"image_alt_text\":{\"sample-logo\":\"Sample logo\"},\"missing_image_alt_text\":\"fail\",\"image_sources\":{\"sample-logo\":{\"upload_index\":0}}}}', true);\n\n\u002F\u002F This sample converts Markdown input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options, table styling, tagging, and uploaded Markdown image mapping.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'image_files', 'contents' => Utils::tryFopen($imagePath, 'r'), 'filename' => basename($imagePath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_markdown'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\n\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-markdown.php\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The sample uses Composer to load the Guzzle HTTP client and related utilities. When using this example outside the pdfRest API samples repository, install Guzzle with \u003Ccode>composer require guzzlehttp\u002Fguzzle\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>Client\u003C\u002Fcode> class sends the HTTP request, while \u003Ccode>Utils::tryFopen\u003C\u002Fcode> opens the local Markdown and image files for the multipart form.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>The API URL selects the US-based pdfRest service by default. An EU endpoint is included as a commented alternative when that service region is appropriate for your workflow.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$inputPath = '\u002Fpath\u002Fto\u002Fsample.md';\n$imagePath = '\u002Fpath\u002Fto\u002Flogo.png';\n$options = json_decode('{\"title\":\"Structured Content Sample\", ... }', true);\u003C\u002Fpre>\n\n\u003Cp>These values identify the Markdown source, local image file, and structured-text conversion options. The API determines that the source is Markdown from the uploaded file extension, so the options JSON does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> array becomes the \u003Ccode>structured_text_options\u003C\u002Fcode> form field. It sets the PDF title and language, enables tagged output, configures the page, and applies typography and table styling. The table settings control relative column widths, repeated headers, borders, colors, padding, and alternating row fills for Markdown tables.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>markdown.image_sources\u003C\u002Fcode> configuration maps the Markdown image target \u003Ccode>sample-logo\u003C\u002Fcode> to the first uploaded image, represented by \u003Ccode>\"upload_index\": 0\u003C\u002Fcode>. The Markdown source should contain the same target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. The \u003Ccode>image_alt_text\u003C\u002Fcode> value supplies alternate text, while \u003Ccode>missing_image_alt_text\u003C\u002Fcode> is set to \u003Ccode>fail\u003C\u002Fcode> so that conversion stops if a meaningful image lacks alternate text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'image_files', 'contents' => Utils::tryFopen($imagePath, 'r'), 'filename' => basename($imagePath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_markdown'],\n];\u003C\u002Fpre>\n\n\u003Cp>The multipart array includes the Markdown source as \u003Ccode>file\u003C\u002Fcode>, the local image as \u003Ccode>image_files\u003C\u002Fcode>, and the JSON configuration as \u003Ccode>structured_text_options\u003C\u002Fcode>. The uploaded image is available to the Markdown conversion through its zero-based upload index. The \u003Ccode>output\u003C\u002Fcode> field sets the output filename for the generated PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>The request sends the multipart data to \u003Ccode>\u002Fpdf\u003C\u002Fcode> with the pdfRest API key and requests a JSON response. Replace the placeholder key with your own pdfRest API key. The response body contains the generated PDF resource details and download URL.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how a PHP application can create a polished, tagged PDF from Markdown while controlling document presentation and resolving a local image in the same request. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>PHP implementations can keep the request compact by retaining only the Markdown presentation and asset settings their documents require. Explore those combinations in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and verify the full contract in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API documentation\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T21:53:26.000+00:00","Convert Markdown articles into styled, tagged PDFs with PHP, including table formatting and uploaded images.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F\",\n      \"datePublished\": \"2026-08-28T21:53:26.000Z\",\n      \"dateModified\": \"2026-09-01T05:11:17.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert Markdown articles into styled, tagged PDFs with PHP, including table formatting and uploaded images.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Markdown, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3177,3178,3179,3180,3181,3182,3183,3184],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-with-php\u002F","How to Convert Markdown to PDF with PHP, Tutorial | pdfRest",{"id":3189,"uuid":3190,"title":3191,"slug":3192,"html":3193,"comment_id":3189,"feature_image":48,"featured":284,"visibility":1257,"created_at":3194,"updated_at":3195,"published_at":3194,"custom_excerpt":3196,"codeinjection_head":3197,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3198,"primary_tag":3207,"url":3208,"excerpt":3196,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3209,"meta_description":3196,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a920134533c9f26b943ac4c","1b73a9ce-dab9-417c-ac53-75bbcde87821","How to Convert Markdown to PDF with Python","how-to-convert-markdown-to-pdf-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Python example converts Markdown to PDF through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It uploads the source and an image, applies structured page and table settings, and requests tagged output for a complete automated report workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Markdown to PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>Python programs regularly produce Markdown summaries from analytics, testing, and data-processing jobs. Markdown is convenient for assembling headings, findings, code, and tables, but decision-makers often want a PDF that can be reviewed, annotated, and distributed as a finished report.\u003C\u002Fp>\n\n\u003Cp>A model-evaluation pipeline, for instance, can write its metrics and observations to Markdown, include a comparison table, and save a generated chart. A Python step can submit the report and chart to pdfRest, map the image reference, and return a styled PDF for the project record. Analysts keep an easy-to-generate source format while stakeholders receive a familiar document.\u003C\u002Fp>\n\n\u003Cp>The request also demonstrates how automation can enforce consistent margins, fonts, colors, table behavior, language metadata, alternate text, and tagging across every run. That consistency is difficult to achieve with ad hoc Markdown print commands and requires no separate HTML conversion stage.\u003C\u002Fp>\n\n\u003Ch2>Python Code Example for Converting Markdown to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts Markdown input to a tagged PDF through multipart \u002Fpdf.\n# It demonstrates structured_text_options, table styling, tagging, and uploaded Markdown image mapping.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.md\"\nimage_path = \"\u002Fpath\u002Fto\u002Flogo.png\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  \"enable_tagging\": true,\n  \"page_setup\": {\n    \"size\": \"Letter\",\n    \"orientation\": \"portrait\",\n    \"margin\": {\n      \"top\": 36,\n      \"right\": 42,\n      \"bottom\": 36,\n      \"left\": 42\n    }\n  },\n  \"style\": {\n    \"font\": \"Arial\",\n    \"heading_font\": \"Arial\",\n    \"code_font\": \"Courier\",\n    \"text_size\": 11,\n    \"text_color_rgb\": [\n      34,\n      34,\n      34\n    ],\n    \"heading_scale\": 1.35,\n    \"table\": {\n      \"column_width_weights\": [\n        2,\n        3,\n        2\n      ],\n      \"keep_header_with_first_row\": true,\n      \"repeat_headers_on_overflow\": true,\n      \"show_borders\": true,\n      \"border_width\": 0.75,\n      \"border_color_rgb\": [\n        180,\n        188,\n        200\n      ],\n      \"header_fill_color_rgb\": [\n        33,\n        64,\n        98\n      ],\n      \"header_text_color_rgb\": [\n        255,\n        255,\n        255\n      ],\n      \"row_fill_color_rgb\": [\n        250,\n        250,\n        252\n      ],\n      \"alternate_row_fill_color_rgb\": [\n        235,\n        240,\n        246\n      ],\n      \"cell_padding\": {\n        \"top\": 6,\n        \"right\": 8,\n        \"bottom\": 6,\n        \"left\": 8\n      }\n    }\n  },\n  \"markdown\": {\n    \"image_alt_text\": {\n      \"sample-logo\": \"Sample logo\"\n    },\n    \"missing_image_alt_text\": \"fail\",\n    \"image_sources\": {\n      \"sample-logo\": {\n        \"upload_index\": 0\n      }\n    }\n  }\n}''')\n\nfrom requests_toolbelt import MultipartEncoder\nwith open(input_path, \"rb\") as input_file, open(image_path, \"rb\") as image_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n        \"image_files\": (os.path.basename(image_path), image_file, \"image\u002Fpng\"),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-markdown.py\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The sample uses Python's built-in \u003Ccode>json\u003C\u002Fcode> and \u003Ccode>os\u003C\u002Fcode> modules, the \u003Ccode>requests\u003C\u002Fcode> HTTP library, and \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. When using this example outside the pdfRest API samples repository, install its dependencies with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">api_url = \"https:\u002F\u002Fapi.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>api_url\u003C\u002Fcode> value selects the US-based pdfRest service by default. An EU endpoint is included as a commented alternative when that service region is appropriate for your workflow.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">input_path = \"\u002Fpath\u002Fto\u002Fsample.md\"\nimage_path = \"\u002Fpath\u002Fto\u002Flogo.png\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  ...\n}''')\u003C\u002Fpre>\n\n\u003Cp>These values identify the Markdown source, local image file, and structured-text conversion options. The API determines that the source is Markdown from the uploaded file extension, so the options object does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> object becomes the \u003Ccode>structured_text_options\u003C\u002Fcode> form field. It sets the PDF title and language, enables tagged output, configures the page, and applies typography and table styling. The table settings control relative column widths, repeated headers, borders, colors, padding, and alternating row fills for Markdown tables.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>markdown.image_sources\u003C\u002Fcode> configuration maps the Markdown image target \u003Ccode>sample-logo\u003C\u002Fcode> to the first uploaded image, represented by \u003Ccode>\"upload_index\": 0\u003C\u002Fcode>. The Markdown source should contain the same target, such as \u003Ccode>![Company logo](sample-logo)\u003C\u002Fcode>. The \u003Ccode>image_alt_text\u003C\u002Fcode> value supplies alternate text, while \u003Ccode>missing_image_alt_text\u003C\u002Fcode> is set to \u003Ccode>fail\u003C\u002Fcode> so that conversion stops if a meaningful image lacks alternate text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">fields = {\n    \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n    \"structured_text_options\": json.dumps(options),\n    \"image_files\": (os.path.basename(image_path), image_file, \"image\u002Fpng\"),\n}\u003C\u002Fpre>\n\n\u003Cp>The multipart fields include the Markdown source as \u003Ccode>file\u003C\u002Fcode>, the JSON configuration as \u003Ccode>structured_text_options\u003C\u002Fcode>, and the local image as \u003Ccode>image_files\u003C\u002Fcode>. The uploaded image is available to the Markdown conversion through its zero-based upload index.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">form = MultipartEncoder(fields=fields)\nresponse = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n    \"Accept\": \"application\u002Fjson\",\n    \"Content-Type\": form.content_type,\n    \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n})\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>MultipartEncoder\u003C\u002Fcode> prepares the multipart request and supplies the required \u003Ccode>Content-Type\u003C\u002Fcode> header, including its boundary. The \u003Ccode>requests.post\u003C\u002Fcode> call sends the request to \u003Ccode>\u002Fpdf\u003C\u002Fcode>. Replace the placeholder \u003Ccode>Api-Key\u003C\u002Fcode> value with your own pdfRest API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">if response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\u003C\u002Fpre>\n\n\u003Cp>The response status code is printed first. On success, the script formats and prints the JSON response, which includes the generated PDF resource details and download URL. On failure, it prints the API error and exits with a nonzero status.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how a Python application can create a polished, tagged PDF from Markdown while controlling document presentation and resolving a local image in the same request. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>Python automation can simplify this profile whenever its Markdown does not contain mapped images, styled tables, or other optional features. Compare request variations with \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and find all supported settings in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-28T21:44:20.000+00:00","2026-09-02T18:27:21.000+00:00","Turn Markdown reports into styled, tagged PDFs with Python, including tables and explicitly mapped images.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F#article\",\n      \"headline\": \"How to Convert Markdown to PDF with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F\",\n      \"datePublished\": \"2026-08-28T21:44:20.000Z\",\n      \"dateModified\": \"2026-09-01T05:11:17.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Turn Markdown reports into styled, tagged PDFs with Python, including tables and explicitly mapped images.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Markdown, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Markdown to PDF with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3199,3200,3201,3202,3203,3204,3205,3206],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1414,"name":1415,"slug":1416,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-markdown-to-pdf-with-python\u002F","How to Convert Markdown to PDF with Python, Tutorial | pdfRest",{"id":3211,"uuid":3212,"title":3213,"slug":3214,"html":3215,"comment_id":3211,"feature_image":48,"featured":284,"visibility":1257,"created_at":3216,"updated_at":3217,"published_at":3216,"custom_excerpt":3218,"codeinjection_head":3219,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3220,"primary_tag":3228,"url":3229,"excerpt":3218,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3230,"meta_description":3218,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6870380d533c9f26b9439cb1","2e4ce75f-f263-4483-82ec-946c3fc13a9a","How to Convert PDF to Markdown in .NET with C#","how-to-convert-pdf-to-markdown-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> is an efficient solution for developers looking to convert PDF documents into Markdown format using C#. This tutorial will guide you through the process of sending an API call to the PDF to Markdown endpoint using C#. By following this guide, you will learn how to integrate this functionality into your applications, making it easier to manipulate and present PDF content in a more accessible and editable Markdown format.\u003C\u002Fp>\n\n\u003Cp>Converting PDFs to Markdown can be incredibly useful for content creators and developers who need to repurpose or edit documents. For instance, a technical writer might receive a PDF document containing a user manual that needs to be updated. By converting the PDF to Markdown, the writer can easily edit the content in a text editor, apply version control, and collaborate with others, streamlining the documentation process.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using System.Text;\n\nusing (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n{\n    using (var request = new HttpRequestMessage(HttpMethod.Post, \"markdown\"))\n    {\n        request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n        request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n        var multipartContent = new MultipartFormDataContent();\n\n        var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\n        var byteAryContent = new ByteArrayContent(byteArray);\n        multipartContent.Add(byteAryContent, \"file\", \"file_name\");\n        byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n        var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"on\"));\n        multipartContent.Add(byteArrayOption, \"page_break_comments\");\n\n        request.Content = multipartContent;\n        var response = await httpClient.SendAsync(request);\n\n        var apiResult = await response.Content.ReadAsStringAsync();\n\n        Console.WriteLine(\"Markdown API response received.\");\n        Console.WriteLine(apiResult);\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fmarkdown.cs\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by creating an instance of \u003Ccode>HttpClient\u003C\u002Fcode> with a base address set to the pdfRest API endpoint. This sets up the client to send requests to \u003Ccode>https:\u002F\u002Fapi.pdfrest.com\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>A new \u003Ccode>HttpRequestMessage\u003C\u002Fcode> is created for a POST request to the \"markdown\" endpoint. The API key is added to the request headers for authentication, and the request is set to accept JSON responses.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var request = new HttpRequestMessage(HttpMethod.Post, \"markdown\"))\n{\n    request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n    request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> is used to construct the request body. The PDF file is read as a byte array and added to the form data with the field name \"file\". The content type is specified as \"application\u002Fpdf\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var multipartContent = new MultipartFormDataContent();\n\nvar byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\nvar byteAryContent = new ByteArrayContent(byteArray);\nmultipartContent.Add(byteAryContent, \"file\", \"file_name\");\nbyteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\u003C\u002Fpre>\n\n\u003Cp>An additional option to include page break comments is added to the form data. This is done by adding a byte array containing the string \"on\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"on\"));\nmultipartContent.Add(byteArrayOption, \"page_break_comments\");\n\u003C\u002Fpre>\n\n\u003Cp>The request is sent asynchronously, and the response is read as a string. The output is printed to the console.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var response = await httpClient.SendAsync(request);\n\nvar apiResult = await response.Content.ReadAsStringAsync();\n\nConsole.WriteLine(\"Markdown API response received.\");\nConsole.WriteLine(apiResult);\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>By following this tutorial, you have learned how to make an API call to convert a PDF document to Markdown using C#. This process can be integrated into your applications to automate document conversion tasks. For further exploration, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa> for more detailed information.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fmarkdown.cs\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T22:00:45.000+00:00","2026-09-02T18:27:50.000+00:00","Learn how to convert PDF content to structured Markdown output with pdfRest API Toolkit in C#.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\",\n      \"datePublished\": \"2025-07-10T22:00:45.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert PDF content to structured Markdown output with pdfRest API Toolkit in C#.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \".NET, AI, Convert, Extract, PDF to Markdown\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3221,3222,3223,3224,3225,3226,3227],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F","How to Convert PDF to Markdown in .NET with C#, Tutorial | pdfRest",{"id":3232,"uuid":3233,"title":3234,"slug":3235,"html":3236,"comment_id":3232,"feature_image":48,"featured":284,"visibility":1257,"created_at":3237,"updated_at":3238,"published_at":3237,"custom_excerpt":3239,"codeinjection_head":3240,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3241,"primary_tag":3249,"url":3250,"excerpt":3239,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3251,"meta_description":3239,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6870385e533c9f26b9439cc5","31dd3919-32ca-4e74-b7eb-eb6b04d29e94","How to Convert PDF to Markdown with cURL","how-to-convert-pdf-to-markdown-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> is a powerful utility that allows users to convert PDF documents into Markdown format, a lightweight markup language that is easy to read and write. This tutorial will guide you through the process of sending an API call to the PDF to Markdown endpoint using cURL, a command-line tool used for transferring data with URLs. By using cURL, you can automate the conversion process and integrate it into your existing workflows.\u003C\u002Fp>\n\n\u003Cp>A user might want to convert a PDF document to Markdown for easier editing and collaboration. For instance, a technical writer may receive documentation in PDF format and need to convert it to Markdown to integrate it into a version-controlled repository, allowing for collaborative editing and version tracking. By using the PDF to Markdown API, this process can be streamlined and automated, saving time and reducing the potential for errors.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fmarkdown.sh\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided code is a shell script that uses cURL to send a POST request to the pdfRest API's PDF to Markdown endpoint. Let's break down each part of the code:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\"\u003C\u002Fpre>\n\n\u003Cp>This line specifies that we are making a POST request to the URL \u003Ccode>https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\u003C\u002Fcode>, which is the endpoint for converting PDFs to Markdown.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the client expects the server to respond with JSON formatted data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>Content-Type\u003C\u002Fcode> header is set to \u003Ccode>multipart\u002Fform-data\u003C\u002Fcode>, which is necessary for file uploads. This tells the server that the request body contains file data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\u003C\u002Fpre>\n\n\u003Cp>This header includes the API key, which is a unique identifier used to authenticate the request. Replace \u003Ccode>xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u003C\u002Fcode> with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>-F\u003C\u002Fcode> option is used to specify the file to be uploaded. The \u003Ccode>@\u003C\u002Fcode> symbol indicates that the following path is a file path. Replace \u003Ccode>\u002Fpath\u002Fto\u002Ffile\u003C\u002Fcode> with the actual path to the PDF file you want to convert.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use cURL to send a request to the pdfRest PDF to Markdown API, allowing you to convert PDF files into Markdown format. This process can be integrated into your workflows for automated document conversion.\u003C\u002Fp>\n\n\u003Cp>To explore more about pdfRest API tools, you can demo all available tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fmarkdown.sh\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T22:02:06.000+00:00","2026-09-02T18:27:51.000+00:00","Learn how to convert PDF content to structured Markdown output using pdfRest API Toolkit with cURL.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\",\n      \"datePublished\": \"2025-07-10T22:02:06.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert PDF content to structured Markdown output using pdfRest API Toolkit with cURL.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"AI, Convert, Extract, PDF to Markdown, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3242,3243,3244,3245,3246,3247,3248],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F","How to Convert PDF to Markdown with cURL, Tutorial | pdfRest",{"id":3253,"uuid":3254,"title":3255,"slug":3256,"html":3257,"comment_id":3253,"feature_image":48,"featured":284,"visibility":1257,"created_at":3258,"updated_at":3238,"published_at":3258,"custom_excerpt":3259,"codeinjection_head":3260,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3261,"primary_tag":3269,"url":3270,"excerpt":3259,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3271,"meta_description":3259,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"687038b5533c9f26b9439ccf","ee2bc45a-e30c-4237-8186-f84fe68ca370","How to Convert PDF to Markdown with Java","how-to-convert-pdf-to-markdown-with-java-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with Java?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> provides a seamless way to convert PDF documents into Markdown format, which is widely used for formatting text on the web. This tutorial will guide you on how to send an API call to the PDF to Markdown endpoint using Java, enabling you to automate the conversion process within your Java applications.\u003C\u002Fp>\n\n\u003Cp>You might have a repository of PDF documents that you want to convert into Markdown for easier web publishing or integration into a content management system. For example, a technical writer might use this tool to convert PDF manuals into Markdown to maintain a consistent format across a documentation website.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\n\npublic class Markdown {\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"page_break_comments\", \"on\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(\"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client = new OkHttpClient().newBuilder().build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FMarkdown.java\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary libraries such as OkHttp for HTTP requests and Dotenv for environment variable management. The \u003Ccode>DEFAULT_FILE_PATH\u003C\u002Fcode> and \u003Ccode>DEFAULT_API_KEY\u003C\u002Fcode> are placeholders for the file path and API key, respectively.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">File inputFile;\nif (args.length > 0) {\n  inputFile = new File(args[0]);\n} else {\n  inputFile = new File(DEFAULT_FILE_PATH);\n}\n\u003C\u002Fpre>\n\n\u003Cp>This snippet checks if a file path is provided as a command-line argument. If not, it defaults to the specified file path.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\u003C\u002Fpre>\n\n\u003Cp>The Dotenv library is used to load environment variables, allowing you to manage sensitive information like API keys securely.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n    RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\nRequestBody requestBody =\n    new MultipartBody.Builder()\n        .setType(MultipartBody.FORM)\n        .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n        .addFormDataPart(\"page_break_comments\", \"on\")\n        .build();\n\u003C\u002Fpre>\n\n\u003Cp>This segment constructs the request body for the API call. It specifies the file to be uploaded and includes a form data part named \"page_break_comments\" set to \"on\", which instructs the API to include comments for page breaks in the Markdown output.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">Request request =\n    new Request.Builder()\n        .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n        .url(\"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\")\n        .post(requestBody)\n        .build();\n\u003C\u002Fpre>\n\n\u003Cp>The request is built with the API key in the header, targeting the PDF to Markdown endpoint. It uses the POST method to send the multipart form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">try {\n  OkHttpClient client = new OkHttpClient().newBuilder().build();\n  Response response = client.newCall(request).execute();\n  System.out.println(\"Result code \" + response.code());\n  if (response.body() != null) {\n    System.out.println(prettyJson(response.body().string()));\n  }\n} catch (IOException e) {\n  throw new RuntimeException(e);\n}\n\u003C\u002Fpre>\n\n\u003Cp>Finally, the OkHttp client executes the request, and the response is printed in a formatted JSON string. If an IOException occurs, it is caught and thrown as a RuntimeException.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use Java to call the pdfRest PDF to Markdown API, converting PDF files into Markdown format. This process can be integrated into larger Java applications, enabling automated document conversion workflows.\u003C\u002Fp>\n\n\u003Cp>To explore more, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed documentation, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FMarkdown.java\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T22:03:33.000+00:00","Learn how to convert PDF content to structured Markdown output with Java using pdfRest API Toolkit.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\",\n      \"datePublished\": \"2025-07-10T22:03:33.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert PDF content to structured Markdown output with Java using pdfRest API Toolkit.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"AI, Convert, Extract, Java, PDF to Markdown\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3262,3263,3264,3265,3266,3267,3268],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-with-java-code\u002F","How to Convert PDF to Markdown with Java, Tutorial | pdfRest",{"id":3273,"uuid":3274,"title":3275,"slug":3276,"html":3277,"comment_id":3273,"feature_image":48,"featured":284,"visibility":1257,"created_at":3278,"updated_at":3238,"published_at":3278,"custom_excerpt":3279,"codeinjection_head":3280,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3281,"primary_tag":3289,"url":3290,"excerpt":3279,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3291,"meta_description":3279,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6870384d533c9f26b9439cbb","84b36f1a-6748-458e-9284-71c8639fe319","How to Convert PDF to Markdown with JavaScript in NodeJS","how-to-convert-pdf-to-markdown-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> provides a seamless way to convert PDF documents into Markdown format using JavaScript. This tutorial will guide you through sending an API call to the PDF to Markdown endpoint using JavaScript. By following the steps outlined, you'll be able to automate the conversion process, enabling easy integration into your applications or workflows.\u003C\u002Fp>\n\n\u003Cp>Imagine a scenario where you have a repository of PDF documents that need to be converted into a format suitable for web publishing or collaborative editing. Markdown is a lightweight markup language that is widely used for creating formatted text using a plain-text editor. By converting PDFs into Markdown, you can easily integrate these documents into web pages or collaborative platforms like GitHub, making them accessible and editable by a broader audience.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F This request demonstrates how to generate markdown from a PDF document.\nvar axios = require(\"axios\");\nvar FormData = require(\"form-data\");\nvar fs = require(\"fs\");\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile\"));\ndata.append(\"page_break_comments\", \"on\");\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: \"post\",\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\",\n  headers: {\n    \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \u002F\u002F Replace with your API key\n    ...data.getHeaders(), \u002F\u002F set headers for the request\n  },\n  data: data, \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n  .then(function (response) {\n    console.log(JSON.stringify(response.data));\n  })\n  .catch(function (error) {\n    console.log(error);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fmarkdown.js\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary modules: \u003Ccode>axios\u003C\u002Fcode> for making HTTP requests, \u003Ccode>form-data\u003C\u002Fcode> for handling form submissions, and \u003Ccode>fs\u003C\u002Fcode> for file system operations.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile\"));\ndata.append(\"page_break_comments\", \"on\");\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new \u003Ccode>FormData\u003C\u002Fcode> instance is created to manage the data being sent to the API. The PDF file is appended using \u003Ccode>fs.createReadStream()\u003C\u002Fcode>, which reads the file from the specified path. The \u003Ccode>page_break_comments\u003C\u002Fcode> parameter is set to \"on\", which means that comments indicating page breaks will be included in the Markdown output.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: \"post\",\n  maxBodyLength: Infinity,\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\",\n  headers: {\n    \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    ...data.getHeaders(),\n  },\n  data: data,\n};\n\u003C\u002Fpre>\n\n\u003Cp>The configuration for the \u003Ccode>axios\u003C\u002Fcode> request is defined here. The request method is set to \"post\", and the URL is the endpoint for the PDF to Markdown API. The \u003Ccode>maxBodyLength\u003C\u002Fcode> is set to \u003Ccode>Infinity\u003C\u002Fcode> to accommodate large files. The headers include the API key, which must be replaced with your actual key, and headers from the \u003Ccode>FormData\u003C\u002Fcode> instance.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(config)\n  .then(function (response) {\n    console.log(JSON.stringify(response.data));\n  })\n  .catch(function (error) {\n    console.log(error);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>axios\u003C\u002Fcode> request is executed, and the response is handled. If successful, the response data is logged to the console. If an error occurs, it is caught and logged.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to convert a PDF document to Markdown using JavaScript and the pdfRest API. This process allows you to automate and integrate document conversions into your applications. To explore more, try out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fmarkdown.js\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T22:01:49.000+00:00","Learn how to use pdfRest API Toolkit with JavaScript to convert PDF content to structured Markdown output.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2025-07-10T22:01:49.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest API Toolkit with JavaScript to convert PDF content to structured Markdown output.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"AI, Convert, Extract, JavaScript, PDF to Markdown\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3282,3283,3284,3285,3286,3287,3288],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F","How to Convert PDF to Markdown with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3293,"uuid":3294,"title":3295,"slug":3296,"html":3297,"comment_id":3293,"feature_image":48,"featured":284,"visibility":1257,"created_at":3298,"updated_at":3299,"published_at":3298,"custom_excerpt":3300,"codeinjection_head":3301,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3302,"primary_tag":3310,"url":3311,"excerpt":3300,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3312,"meta_description":3300,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"687037bc533c9f26b9439ca7","6f7eaa58-1435-481d-b08d-f263209013e5","How to Convert PDF to Markdown with PHP","how-to-convert-pdf-to-markdown-with-php-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> is a powerful service that allows developers to convert PDF documents into Markdown format. This tutorial will guide you through the process of sending an API call to the PDF to Markdown endpoint using PHP, leveraging the capabilities of the Guzzle HTTP client to handle the request and response.\u003C\u002Fp>\n\n\u003Cp>A user might need to convert PDF documents to Markdown to facilitate easier editing and integration into web content management systems. For instance, a content manager might receive reports in PDF format that need to be published on a website. By converting these PDFs to Markdown, the content can be easily edited and formatted within the website's CMS, streamlining the publishing process.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">\nrequire 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\nuse GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\n$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => 'application\u002Fpdf' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'page_break_comments', \u002F\u002F Specify the field name for the page_break_comments option.\n      'contents' => 'on' \u002F\u002F Set the value for the page_break_comments option (in this case, 'on').\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown', $headers); \u002F\u002F Create a new HTTP POST request with the updated \u002Fmarkdown endpoint and headers.\n\n$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\necho $res->getBody(); \u002F\u002F Output the response body, which contains the generated markdown from the document.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fmarkdown.php\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by requiring the Composer autoload file, which loads the necessary classes for the Guzzle HTTP client:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">require 'vendor\u002Fautoload.php';\n\u003C\u002Fpre>\n\n\u003Cp>Next, the Guzzle HTTP client, PSR-7 Request, and Utils classes are imported to handle the HTTP request and file operations:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">use GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\u003C\u002Fpre>\n\n\u003Cp>A new instance of the Guzzle HTTP client is created:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$client = new Client();\n\u003C\u002Fpre>\n\n\u003Cp>The headers array is defined to include the API key for authentication:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\u003C\u002Fpre>\n\n\u003Cp>The options array is set up with a multipart payload. The first part contains the file to be converted, specifying the file's name, contents, filename, and content type:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$options = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'),\n      'filename' => '\u002Fpath\u002Fto\u002Ffile',\n      'headers' => [\n        'Content-Type' => 'application\u002Fpdf'\n      ]\n    ],\n    [\n      'name' => 'page_break_comments',\n      'contents' => 'on'\n    ]\n  ]\n];\n\u003C\u002Fpre>\n\n\u003Cp>A new HTTP POST request is created with the endpoint URL and headers:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown', $headers);\n\u003C\u002Fpre>\n\n\u003Cp>The asynchronous request is sent, and the response is awaited:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$res = $client->sendAsync($request, $options)->wait();\n\u003C\u002Fpre>\n\n\u003Cp>Finally, the response body, which contains the converted Markdown, is output:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">echo $res->getBody();\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use PHP to send an API request to the pdfRest PDF to Markdown endpoint, converting a PDF document into Markdown format. This process can be particularly useful for integrating PDF content into web platforms.\u003C\u002Fp>\n\n\u003Cp>To explore more features and tools offered by pdfRest, you can try all the API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each API endpoint, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note that this example demonstrates a multipart API call. For examples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fmarkdown.php\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T21:59:24.000+00:00","2026-09-02T18:27:52.000+00:00","Learn how to use pdfRest API Toolkit to convert PDF content to structured Markdown output with PHP.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\",\n      \"datePublished\": \"2025-07-10T21:59:24.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:13.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest API Toolkit to convert PDF content to structured Markdown output with PHP.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"AI, Convert, Extract, PDF to Markdown, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3303,3304,3305,3306,3307,3308,3309],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-with-php-code\u002F","How to Convert PDF to Markdown with PHP, Tutorial | pdfRest",{"id":3314,"uuid":3315,"title":3316,"slug":3317,"html":3318,"comment_id":3314,"feature_image":48,"featured":284,"visibility":1257,"created_at":3319,"updated_at":3299,"published_at":3319,"custom_excerpt":3320,"codeinjection_head":3321,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3322,"primary_tag":3330,"url":3331,"excerpt":3320,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3332,"meta_description":3320,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6870370d533c9f26b9439c9d","fd075cf2-3c17-43de-88d2-8c62b54d6ec3","How to Convert PDF to Markdown with Python","how-to-convert-pdf-to-markdown-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Convert PDF to Markdown with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F'>PDF to Markdown API Tool\u003C\u002Fa> is a powerful resource for developers who need to convert PDF documents into Markdown format programmatically. This tutorial will guide you through the process of sending an API call to the PDF to Markdown endpoint using Python, allowing you to automate the conversion of PDF files into a more editable and web-friendly format.\u003C\u002Fp>\n\n\u003Cp>A user might need to convert a PDF document to Markdown for easier editing and integration into web content management systems. For instance, a technical writer could use this tool to convert PDF documentation into Markdown to be hosted on a website or a wiki, ensuring that the content remains accessible and easy to update.\u003C\u002Fp>\n\n\u003Ch2>PDF to Markdown with Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\nmarkdown_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown'\n\n# The \u002Fmarkdown endpoint can take a single PDF file or id as input.\n# This sample demonstrates converting the document to markdown and returning it as JSON.\nmp_encoder_markdown = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'page_break_comments': 'on',\n    }\n)\n\n# Let's set the headers that the markdown endpoint expects.\n# Since MultipartEncoder is used, the 'Content-Type' header gets set to 'multipart\u002Fform-data' via the content_type attribute below.\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_markdown.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to markdown endpoint...\")\nresponse = requests.post(markdown_endpoint_url, data=mp_encoder_markdown, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent=2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fmarkdown.py\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary libraries: \u003Ccode>requests_toolbelt\u003C\u002Fcode> for handling multipart form data, \u003Ccode>requests\u003C\u002Fcode> for making HTTP requests, and \u003Ccode>json\u003C\u002Fcode> for handling JSON data. The \u003Ccode>markdown_endpoint_url\u003C\u002Fcode> variable stores the API endpoint URL.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">mp_encoder_markdown = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'page_break_comments': 'on',\n    }\n)\n\u003C\u002Fpre>\n\n\u003Cp>This snippet creates a \u003Ccode>MultipartEncoder\u003C\u002Fcode> object to handle the multipart form data. The \u003Ccode>fields\u003C\u002Fcode> dictionary includes the PDF file to be converted and the \u003Ccode>page_break_comments\u003C\u002Fcode> parameter, which is set to 'on' to include comments at page breaks in the Markdown output.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_markdown.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>headers\u003C\u002Fcode> dictionary specifies the request headers. The \u003Ccode>'Accept'\u003C\u002Fcode> header indicates that the client expects a JSON response. The \u003Ccode>'Content-Type'\u003C\u002Fcode> is automatically set to \u003Ccode>'multipart\u002Fform-data'\u003C\u002Fcode> by the \u003Ccode>MultipartEncoder\u003C\u002Fcode>. The \u003Ccode>'Api-Key'\u003C\u002Fcode> is a placeholder for your actual API key, which is required for authentication.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(markdown_endpoint_url, data=mp_encoder_markdown, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This line sends a POST request to the markdown endpoint with the specified data and headers. If the request is successful, the response will contain the converted Markdown data in JSON format.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use Python to send an API call to the pdfRest PDF to Markdown endpoint, converting a PDF document into Markdown format. This example demonstrates a multipart API call, which is useful for handling file uploads.\u003C\u002Fp>\n\n\u003Cp>To explore more, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For further details, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fmarkdown.py\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-07-10T21:56:29.000+00:00","Learn how to convert PDF content to structured Markdown output using pdfRest API Toolkit with Python.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F#article\",\n      \"headline\": \"How to Convert PDF to Markdown with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\",\n      \"datePublished\": \"2025-07-10T21:56:29.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:14.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert PDF content to structured Markdown output using pdfRest API Toolkit with Python.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"AI, Convert, Extract, PDF to Markdown, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert PDF to Markdown with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3323,3324,3325,3326,3327,3328,3329],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1279,"name":1280,"slug":1281,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F","How to Convert PDF to Markdown with Python, Tutorial | pdfRest",{"id":3334,"uuid":3335,"title":3336,"slug":3337,"html":3338,"comment_id":3334,"feature_image":48,"featured":284,"visibility":1257,"created_at":3339,"updated_at":3340,"published_at":3339,"custom_excerpt":3341,"codeinjection_head":3342,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3343,"primary_tag":3352,"url":3353,"excerpt":3341,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3354,"meta_description":3341,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f0ce533c9f26b943ace0","b74449ee-00ce-454c-84b0-119635d2a2c6","How to Convert Plain Text to PDF in .NET with C#","how-to-convert-plain-text-to-pdf-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This .NET walkthrough shows how C# can convert a plain text file with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It sends the source with structured settings for preserved lines, tagged output, page geometry, and text appearance.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF in .NET with C#?\u003C\u002Fh2>\n\n\u003Cp>Many .NET environments integrate with manufacturing, financial, or mainframe systems that still emit fixed-format text. Those reports may contain valuable operational history, but distributing them as loose text files makes printing, review, and records retention inconsistent.\u003C\u002Fp>\n\n\u003Cp>A manufacturing application, for example, may receive a production-run summary listing machine identifiers, quantities, exceptions, and operator messages. Converting the export to PDF gives supervisors a stable report for the run record. Preserved line handling keeps each entry in order, and choosing a monospaced font can maintain fixed-width alignment when the source depends on columns.\u003C\u002Fp>\n\n\u003Cp>C# applications can switch to reflow mode for notes and narrative summaries that should wrap naturally across the page. The same endpoint then handles two distinct text layouts while applying repeatable margins, metadata, typography, and document structure.\u003C\u002Fp>\n\n\u003Ch2>C# Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Converts plain text input to PDF through the \u002Fpdf endpoint.\n *\n * Setup (environment):\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region.\n *\n * Usage:\n *   dotnet run -- pdf-from-text-multipart \u003CinputFile>\n *\u002F\nusing Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nnamespace Samples.EndpointExamples.MultipartPayload;\n\npublic static class PdfFromText\n{\n    public static async Task Execute(string[] args)\n    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.txt\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\n        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n        var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"plain_text\"\":{\"\"line_handling\"\":\"\"preserve\"\"}}\");\n        using var form = new MultipartFormDataContent();\n        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-text.cs\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The C# Plain Text sample uses the framework \u003Ccode>HttpClient\u003C\u002Fcode> APIs and Newtonsoft JSON types for \u003Ccode>structured_text_options\u003C\u002Fcode>. A project adopting this code must retain the Newtonsoft.Json package reference used by the samples repository.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        using var form = new MultipartFormDataContent();\u003C\u002Fpre>\n\n\u003Cp>The .NET endpoint block shows which regional service receives this Plain Text request:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\u003C\u002Fpre>\n\n\u003Cp>C# turns the .txt source into \u003Ccode>StreamContent\u003C\u002Fcode> and preserves its filename in the multipart part. That extension directs the shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint to the Plain Text converter.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.txt\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\u003C\u002Fpre>\n\n\u003Cp>The Newtonsoft \u003Ccode>JObject\u003C\u002Fcode> represents pdfRest’s structured conversion settings. It defines the output title and language, explicitly enables tags, configures Letter portrait pages and margins, and carries the typography and Plain Text-related style properties used by the renderer.\u003C\u002Fp>\n\n\u003Ccode>plain_text\u003C\u002Fcode>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>For Plain Text, \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> owns the source stream, serialized settings, and output field. \u003Ccode>HttpClient\u003C\u002Fcode> generates the matching multipart boundary and content type when it sends the container.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>The C# client authenticates and posts the Plain Text form, then reads the response as text. Reporting both status and payload lets an integration distinguish a generated PDF resource from validation or processing errors.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>.NET workflows can use the same conversion for operational logs, policy text, or fixed-layout records that need consistent PDF delivery. Enabling tags exposes logical structure to compatible consumers but does not by itself demonstrate accessibility conformance.\u003C\u002Fp>\n\n\u003Cp>A text-only integration may keep just the metadata, page, typography, and line-handling settings it requires. Experiment in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa> as the authoritative option guide.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:23:26.000+00:00","2026-09-02T18:28:10.000+00:00","Generate styled, tagged PDFs from plain text in .NET with C# and choose preserved-line or reflowed layout.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F\",\n      \"datePublished\": \"2026-08-31T21:23:26.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:07.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Generate styled, tagged PDFs from plain text in .NET with C# and choose preserved-line or reflowed layout.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Conversion, Convert to PDF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3344,3345,3346,3347,3348,3349,3350,3351],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-in-net-with-c\u002F","How to Convert Plain Text to PDF in .NET with C#, Tutorial | pdfRest",{"id":3356,"uuid":3357,"title":3358,"slug":3359,"html":3360,"comment_id":3356,"feature_image":48,"featured":284,"visibility":1257,"created_at":3361,"updated_at":3340,"published_at":3361,"custom_excerpt":3362,"codeinjection_head":3363,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3364,"primary_tag":3373,"url":3374,"excerpt":3362,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3375,"meta_description":3362,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f126533c9f26b943acfe","bc54ea7f-fe78-49f9-8762-cb8aa7d11e80","How to Convert Plain Text to PDF with cURL","how-to-convert-plain-text-to-pdf-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial uses cURL and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> to turn a plain text file into a styled, tagged PDF. The request preserves the source line breaks and applies page, margin, font, color, title, and language settings in one command.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>Plain text is the common output of command-line tools, monitoring jobs, and legacy systems, but it lacks page boundaries and a consistent presentation for sharing. PDF makes that content easier to review, attach to a record, and open without depending on a particular text editor.\u003C\u002Fp>\n\n\u003Cp>An operations script might collect the relevant portion of a service log after an outage and add it to an incident-management case. By calling pdfRest with \u003Ccode>line_handling: \"preserve\"\u003C\u002Fcode>, the script can retain timestamps, line breaks, and intentional spacing in a paginated PDF. The response becomes a portable diagnostic artifact that support and engineering can reference together.\u003C\u002Fp>\n\n\u003Cp>For narrative notes rather than logs, the same workflow can use \u003Ccode>reflow\u003C\u002Fcode> so source lines combine into readable paragraphs. This choice allows a small cURL integration to serve both format-sensitive technical output and ordinary prose while applying consistent metadata and optional tagging.\u003C\u002Fp>\n\n\u003Ch2>cURL Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.txt\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_text\"\n\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-text.sh\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Plain Text shell example calls cURL directly, so no language package is required. \u003Ccode>API_URL\u003C\u002Fcode> keeps regional routing visible: the active value uses the US service, and the commented alternative selects the EU service.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.txt\"\u003C\u002Fpre>\n\n\u003Cp>For this Plain Text request, the endpoint excerpt makes the regional service choice explicit:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>INPUT_PATH\u003C\u002Fcode> identifies the local .txt source. The \u003Ccode>@\u003C\u002Fcode> prefix in the later \u003Ccode>--form\u003C\u002Fcode> argument instructs cURL to upload that file’s contents instead of sending its path as text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.txt\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}'\u003C\u002Fpre>\n\n\u003Cp>The JSON assigned to \u003Ccode>OPTIONS\u003C\u002Fcode> is pdfRest-specific rather than shell syntax. \u003Ccode>title\u003C\u002Fcode> becomes document metadata, \u003Ccode>language\u003C\u002Fcode> identifies the document language, and \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical structure. \u003Ccode>page_setup\u003C\u002Fcode> selects Letter portrait pages with 36-point margins, while \u003Ccode>style\u003C\u002Fcode> supplies fonts, text size, color, and format-specific presentation.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>For Plain Text conversion, the \u003Ccode>--form\u003C\u002Fcode> arguments create the multipart fields: \u003Ccode>file\u003C\u002Fcode> carries the structured source, \u003Ccode>structured_text_options\u003C\u002Fcode> carries serialized settings, and \u003Ccode>output\u003C\u002Fcode> names the requested PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_text\"\u003C\u002Fpre>\n\n\u003Cp>The Plain Text request asks for JSON with \u003Ccode>Accept\u003C\u002Fcode>, declares multipart form data with \u003Ccode>Content-Type\u003C\u002Fcode>, and authenticates through \u003Ccode>Api-Key\u003C\u002Fcode>. Success returns the generated PDF resource and download URL; failure returns API error information.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.txt\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_text\"\u003C\u002Fpre>\n\n\u003Ch2 id=\"beyond-the-tutorial\">Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This example shows how to create a tagged PDF from plain text while retaining intentional line breaks and spacing from the source file. Tagged output adds logical document structure that can support accessibility and downstream processing, but it does not by itself guarantee conformance with a specific accessibility standard.\u003C\u002Fp>\n\n\u003Cp>For simpler workflows, you can submit a plain text file without every styling option. Explore the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> to test requests in your browser, and see the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for the complete parameter reference.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:24:54.000+00:00","Use cURL to convert plain text into a styled, tagged PDF while preserving source lines or reflowing paragraphs.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F\",\n      \"datePublished\": \"2026-08-31T21:24:54.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:05.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use cURL to convert plain text into a styled, tagged PDF while preserving source lines or reflowing paragraphs.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3365,3366,3367,3368,3369,3370,3371,3372],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-with-curl\u002F","How to Convert Plain Text to PDF with cURL, Tutorial | pdfRest",{"id":3377,"uuid":3378,"title":3379,"slug":3380,"html":3381,"comment_id":3377,"feature_image":48,"featured":284,"visibility":1257,"created_at":3382,"updated_at":3340,"published_at":3382,"custom_excerpt":3383,"codeinjection_head":3384,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3385,"primary_tag":3394,"url":3395,"excerpt":3383,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3396,"meta_description":3383,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f109533c9f26b943acf4","ce305ff7-0ae7-41fa-87ca-b13ba0f35073","How to Convert Plain Text to PDF with Java","how-to-convert-plain-text-to-pdf-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Java tutorial submits a plain text file to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> and creates a tagged PDF with controlled page setup and typography. The sample selects preserved line handling so the source layout remains visible.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF with Java?\u003C\u002Fh2>\n\n\u003Cp>Java batch applications and transaction systems still produce text summaries, spool-style reports, and reconciliation output. These files are efficient for systems to create, yet they can be awkward to distribute to reviewers who expect a paginated document with reliable rendering.\u003C\u002Fp>\n\n\u003Cp>A settlement service provides a useful example: after processing a nightly batch, it may write account totals, warnings, and control values to a text report. The Java application can convert that report to PDF and place it alongside the batch record for finance review. Preserved lines maintain the report’s sequence, and a monospaced body font can be selected when aligned text columns are significant.\u003C\u002Fp>\n\n\u003Cp>When the source contains prose instead of layout-sensitive rows, reflow mode produces more natural paragraphs. The conversion API lets the same Java service choose that behavior per request while setting document language, title, margins, fonts, and tags centrally.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PdfFromText {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.txt\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n    JSONObject options =\n        new JSONObject(\n            \"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\",\\\"enable_tagging\\\":true,\\\"page_setup\\\":{\\\"size\\\":\\\"Letter\\\",\\\"orientation\\\":\\\"portrait\\\",\\\"margin\\\":{\\\"top\\\":36,\\\"right\\\":42,\\\"bottom\\\":36,\\\"left\\\":42}},\\\"style\\\":{\\\"font\\\":\\\"Arial\\\",\\\"heading_font\\\":\\\"Arial\\\",\\\"code_font\\\":\\\"Courier\\\",\\\"text_size\\\":11,\\\"text_color_rgb\\\":[34,34,34],\\\"heading_scale\\\":1.35,\\\"table\\\":{\\\"column_width_weights\\\":[2,3,2],\\\"keep_header_with_first_row\\\":true,\\\"repeat_headers_on_overflow\\\":true,\\\"show_borders\\\":true,\\\"border_width\\\":0.75,\\\"border_color_rgb\\\":[180,188,200],\\\"header_fill_color_rgb\\\":[33,64,98],\\\"header_text_color_rgb\\\":[255,255,255],\\\"row_fill_color_rgb\\\":[250,250,252],\\\"alternate_row_fill_color_rgb\\\":[235,240,246],\\\"cell_padding\\\":{\\\"top\\\":6,\\\"right\\\":8,\\\"bottom\\\":6,\\\"left\\\":8}}},\\\"plain_text\\\":{\\\"line_handling\\\":\\\"preserve\\\"}}\");\n    MultipartBody.Builder form =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\n                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\n  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPdfFromText.java\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This Java Plain Text example combines OkHttp for transport, \u003Ccode>org.json\u003C\u002Fcode> for conversion settings, and dotenv support for repository configuration. Those project dependencies must remain available when the class is moved into another application.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The Java endpoint excerpt exposes the regional service selection used for this Plain Text conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">public class PdfFromText {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.txt\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\u003C\u002Fpre>\n\n\u003Cp>Java wraps the .txt path in an OkHttp request body and retains the filename in the multipart upload. The shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint uses that extension to select Plain Text conversion.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.txt\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>JSONObject\u003C\u002Fcode> is the pdfRest conversion profile. Its title and language describe the PDF, \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical tags, and \u003Ccode>page_setup\u003C\u002Fcode> establishes Letter portrait pages with 36-point margins. The \u003Ccode>style\u003C\u002Fcode> member controls the fonts, text size, color, and any Plain Text-specific rendering choices.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>For the Plain Text upload, \u003Ccode>MultipartBody.Builder\u003C\u002Fcode> combines the source file, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and ordinary \u003Ccode>output\u003C\u002Fcode> text field in one request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\u003C\u002Fpre>\n\n\u003Cp>OkHttp submits the Plain Text conversion with the API key and checks the HTTP result. The printed body contains generated-resource JSON after success or API error details when processing fails.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Java services can apply this approach to audit logs, generated notices, and text-based batch reports while choosing whether source line breaks remain fixed or reflow into paragraphs. The requested tags contribute document structure without certifying accessibility compliance.\u003C\u002Fp>\n\n\u003Cp>Production profiles only need the settings relevant to their text workflow. Use \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> to compare line-handling modes, then review the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> before finalizing request validation.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:24:25.000+00:00","Convert plain text reports into styled, tagged PDFs with Java and control whether lines are preserved or reflowed.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F\",\n      \"datePublished\": \"2026-08-31T21:24:25.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:06.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert plain text reports into styled, tagged PDFs with Java and control whether lines are preserved or reflowed.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3386,3387,3388,3389,3390,3391,3392,3393],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-with-java\u002F","How to Convert Plain Text to PDF with Java, Tutorial | pdfRest",{"id":3398,"uuid":3399,"title":3400,"slug":3401,"html":3402,"comment_id":3398,"feature_image":48,"featured":284,"visibility":1257,"created_at":3403,"updated_at":3404,"published_at":3405,"custom_excerpt":3406,"codeinjection_head":3407,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3408,"primary_tag":3417,"url":3418,"excerpt":3406,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3419,"meta_description":3406,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f0eb533c9f26b943acea","b389ea6e-be9d-4c11-8b0c-008d0fcb268d","How to Convert Plain Text to PDF with JavaScript in NodeJS","how-to-convert-plain-text-to-pdf-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This NodeJS example uses JavaScript to upload plain text to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. Structured options preserve existing lines, establish the PDF’s page design, and request tagged output as part of the multipart call.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF with JavaScript in NodeJS?\u003C\u002Fh2>\n\n\u003Cp>Web services often assemble transcripts, notifications, and generated summaries as plain text because it is simple and interoperable. Once that information needs to leave the application, a raw \u003Ccode>.txt\u003C\u002Fcode> download may feel unfinished and can be difficult to include in a broader document workflow.\u003C\u002Fp>\n\n\u003Cp>Consider a customer-support platform that exports a conversation transcript containing timestamps, agent names, and message boundaries. Its NodeJS backend can preserve those lines while converting the transcript into a PDF for escalation or customer delivery. The result opens consistently and can be retained with screenshots, forms, and other PDF case materials.\u003C\u002Fp>\n\n\u003Cp>For automatically generated status narratives, the application can select reflow mode and allow the text to wrap as paragraphs instead. JavaScript code can therefore support both transcript fidelity and reader-friendly prose without implementing pagination or font layout itself.\u003C\u002Fp>\n\n\u003Ch2>JavaScript Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.txt\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}));\nform.append(\"output\", \"pdf_from_text\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-text.js\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The NodeJS Plain Text walkthrough uses \u003Ccode>axios\u003C\u002Fcode>, \u003Ccode>form-data\u003C\u002Fcode>, and Node’s file-system module. Outside the samples project, install its HTTP and multipart dependencies with \u003Ccode>npm install axios form-data\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\u003C\u002Fpre>\n\n\u003Cp>This NodeJS excerpt keeps the regional endpoint visible for the Plain Text workflow:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>JavaScript streams the .txt source into the form while preserving its filename. pdfRest infers Plain Text conversion from that extension, so \u003Ccode>structured_text_options\u003C\u002Fcode> does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.txt\";\nvar form = new FormData();\u003C\u002Fpre>\n\n\u003Cp>The object passed through \u003Ccode>JSON.stringify\u003C\u002Fcode> is interpreted by pdfRest as \u003Ccode>structured_text_options\u003C\u002Fcode>. It sets PDF metadata, explicitly enables tagging, defines Letter portrait geometry and margins, and supplies the font and color choices used when laying out the Plain Text content.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>NodeJS uses \u003Ccode>FormData\u003C\u002Fcode> to append the Plain Text file, stringified \u003Ccode>structured_text_options\u003C\u002Fcode>, and output name. The generated form headers provide the multipart boundary for those fields.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var inputPath = \"\u002Fpath\u002Fto\u002Fsample.txt\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}));\nform.append(\"output\", \"pdf_from_text\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Axios sends the Plain Text request to \u003Ccode>\u002Fpdf\u003C\u002Fcode> with the form headers and \u003Ccode>Api-Key\u003C\u002Fcode>. Its success path prints resource JSON, while the rejection path exposes either the API response or the client-side error.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}));\nform.append(\"output\", \"pdf_from_text\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>NodeJS applications can turn support transcripts, application output, or dynamically assembled text into PDFs without introducing a separate document renderer. Logical tags can assist navigation and later processing, although they are not a PDF\u002FUA or WCAG guarantee.\u003C\u002Fp>\n\n\u003Cp>Remove optional style controls when the service only needs a simple text conversion. \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> provides an interactive place to try the request, and the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> lists every accepted field.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:23:55.000+00:00","2026-09-02T18:28:11.000+00:00","2026-08-31T21:23:56.000+00:00","Create styled and tagged PDFs from plain text in NodeJS with configurable line preservation and paragraph reflow.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2026-08-31T21:23:56.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:06.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Create styled and tagged PDFs from plain text in NodeJS with configurable line preservation and paragraph reflow.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, JavaScript\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3409,3410,3411,3412,3413,3414,3415,3416],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-with-javascript-in-nodejs\u002F","How to Convert Plain Text to PDF with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3421,"uuid":3422,"title":3423,"slug":3424,"html":3425,"comment_id":3421,"feature_image":48,"featured":284,"visibility":1257,"created_at":3426,"updated_at":3404,"published_at":3426,"custom_excerpt":3427,"codeinjection_head":3428,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3429,"primary_tag":3438,"url":3439,"excerpt":3427,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3440,"meta_description":3427,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f0a3533c9f26b943acd6","1e9f4e58-3b91-4ac9-9267-f3a4c6ee6031","How to Convert Plain Text to PDF with PHP","how-to-convert-plain-text-to-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This PHP tutorial converts a plain text upload through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The sample retains source line breaks and supplies the page, font, language, and tagging options needed for consistent PDF output.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>PHP applications frequently build case notes, order summaries, and form-derived records as simple text. Plain text is easy to generate, but users may need a formal download that can be emailed, annotated, printed, or stored with other customer documents.\u003C\u002Fp>\n\n\u003Cp>A case-management portal illustrates the need: after an agent completes an intake workflow, PHP can assemble the submitted answers and system notes into a text summary. Converting that file to PDF creates a durable case artifact with a title, controlled margins, and predictable pagination, avoiding a manually assembled document for every submission.\u003C\u002Fp>\n\n\u003Cp>Preserve mode is appropriate when each answer or label must remain on its own line. Reflow mode is available when the generated content should read as continuous prose, giving the portal control over readability without changing the underlying source format.\u003C\u002Fp>\n\n\u003Ch2>PHP Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$inputPath = '\u002Fpath\u002Fto\u002Fsample.txt';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}', true);\n\n\u002F\u002F This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_text'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-text.php\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This PHP Plain Text example relies on Guzzle for HTTP and PSR-7 stream utilities for the upload. When using the code outside this repository, add the client with \u003Ccode>composer require guzzlehttp\u002Fguzzle\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\u003C\u002Fpre>\n\n\u003Cp>The PHP endpoint excerpt keeps regional routing explicit for this Plain Text operation:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>PHP opens the .txt source as a PSR-7 stream and includes its filename in the multipart part. The extension selects Plain Text processing without duplicating the format in the options JSON.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$inputPath = '\u002Fpath\u002Fto\u002Fsample.txt';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"plain_text\":{\"line_handling\":\"preserve\"}}', true);\u003C\u002Fpre>\n\n\u003Cp>The array decoded into \u003Ccode>$options\u003C\u002Fcode> is serialized as pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode>. It describes the PDF title and language, explicitly turns on tagging, chooses Letter portrait pages with 36-point margins, and provides typography plus Plain Text-specific styling.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>The PHP multipart array assigns \u003Ccode>name\u003C\u002Fcode> and \u003Ccode>contents\u003C\u002Fcode> values to the Plain Text stream, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and requested output name.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_text'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Guzzle prepares and submits the Plain Text multipart body with the API key. The response body contains generated-resource information on success and service error details when the conversion cannot be completed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_text'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>PHP systems can generate PDFs from exported notes, server reports, and plain-text correspondence while preserving deliberate spacing where it matters. Tagged output supports structural interpretation, but further evaluation is required before making an accessibility claim.\u003C\u002Fp>\n\n\u003Cp>The conversion profile can be shortened for applications that do not need the full sample styling. Try a representative source in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and verify available controls in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API documentation\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:22:43.000+00:00","Use PHP to transform plain text into a styled, tagged PDF with preserved lines or reflowed paragraphs.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F\",\n      \"datePublished\": \"2026-08-31T21:22:43.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:07.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use PHP to transform plain text into a styled, tagged PDF with preserved lines or reflowed paragraphs.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3430,3431,3432,3433,3434,3435,3436,3437],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-with-php\u002F","How to Convert Plain Text to PDF with PHP, Tutorial | pdfRest",{"id":3442,"uuid":3443,"title":3444,"slug":3445,"html":3446,"comment_id":3442,"feature_image":48,"featured":284,"visibility":1257,"created_at":3447,"updated_at":3448,"published_at":3447,"custom_excerpt":3449,"codeinjection_head":3450,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3451,"primary_tag":3460,"url":3461,"excerpt":3449,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3462,"meta_description":3449,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a95f093533c9f26b943accc","157418bb-6185-42f1-86a0-17075ed6b112","How to Convert Plain Text to PDF with Python","how-to-convert-plain-text-to-pdf-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Python tutorial sends a plain text file and structured conversion settings to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It creates tagged output, preserves intentional source lines, and controls document metadata and visual presentation.\u003C\u002Fp>\n\n\u003Ch2>Why Convert Plain Text to PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>Data pipelines and automation scripts often record validation findings, processing manifests, and experiment summaries in plain text. That output is convenient for machines and developers, but a PDF is easier to deliver as evidence, circulate for approval, or combine with other project documentation.\u003C\u002Fp>\n\n\u003Cp>Suppose a Python data-quality job checks thousands of incoming records and writes a summary containing rule names, counts, and representative failures. After the run, the same workflow can convert the summary into a PDF for the data steward’s review packet. Preserved line handling keeps each finding distinct, while consistent page settings make recurring reports easier to compare.\u003C\u002Fp>\n\n\u003Cp>A script producing longer narrative observations can request reflow instead and let the service form readable paragraphs. This gives Python automation an intentional text-layout choice while retaining centralized control over fonts, margins, language metadata, and tagging.\u003C\u002Fp>\n\n\u003Ch2>Python Code Example for Converting Plain Text to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts plain text input to a tagged PDF through multipart \u002Fpdf.\n# It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.txt\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  \"enable_tagging\": true,\n  \"page_setup\": {\n    \"size\": \"Letter\",\n    \"orientation\": \"portrait\",\n    \"margin\": {\n      \"top\": 36,\n      \"right\": 42,\n      \"bottom\": 36,\n      \"left\": 42\n    }\n  },\n  \"style\": {\n    \"font\": \"Arial\",\n    \"heading_font\": \"Arial\",\n    \"code_font\": \"Courier\",\n    \"text_size\": 11,\n    \"text_color_rgb\": [\n      34,\n      34,\n      34\n    ],\n    \"heading_scale\": 1.35,\n    \"table\": {\n      \"column_width_weights\": [\n        2,\n        3,\n        2\n      ],\n      \"keep_header_with_first_row\": true,\n      \"repeat_headers_on_overflow\": true,\n      \"show_borders\": true,\n      \"border_width\": 0.75,\n      \"border_color_rgb\": [\n        180,\n        188,\n        200\n      ],\n      \"header_fill_color_rgb\": [\n        33,\n        64,\n        98\n      ],\n      \"header_text_color_rgb\": [\n        255,\n        255,\n        255\n      ],\n      \"row_fill_color_rgb\": [\n        250,\n        250,\n        252\n      ],\n      \"alternate_row_fill_color_rgb\": [\n        235,\n        240,\n        246\n      ],\n      \"cell_padding\": {\n        \"top\": 6,\n        \"right\": 8,\n        \"bottom\": 6,\n        \"left\": 8\n      }\n    }\n  },\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}''')\n\nfrom requests_toolbelt import MultipartEncoder\nwith open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-text.py\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Python Plain Text sample uses \u003Ccode>requests\u003C\u002Fcode> and \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. Install both with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode> when they are not already present.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\u003C\u002Fpre>\n\n\u003Cp>This Python endpoint excerpt identifies the regional service used for Plain Text conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>Python opens the .txt input in binary mode and sends its base filename with the stream. \u003Ccode>\u002Fpdf\u003C\u002Fcode> uses that filename extension to infer the Plain Text input type.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.txt\"\noptions = json.loads(r'''{\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> dictionary becomes pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode> field. It supplies document metadata, explicitly requests tags, establishes Letter portrait pages and 36-point margins, and selects the fonts, text size, color, and Plain Text-specific presentation values.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"plain_text\": {\n    \"line_handling\": \"preserve\"\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>preserve\u003C\u002Fcode> keeps every normalized source line and its spacing in a preformatted block. Windows and legacy carriage-return line endings are normalized consistently. The alternative \u003Ccode>reflow\u003C\u002Fcode> joins consecutive nonblank lines into paragraphs, using blank lines as paragraph boundaries; \u003Ccode>reflow\u003C\u002Fcode> is the default when the field is omitted. Only those two values are accepted. When horizontal alignment matters, select a monospaced body font because preserve mode retains characters and spacing but does not force a particular font.\u003C\u002Fp>\n\n\u003Cp>The sample also carries \u003Ccode>style.table\u003C\u002Fcode> because the repository uses one broad structured-text profile. Plain Text does not create a table, so those table colors, borders, widths, and padding have no effect and may be omitted from a text-only integration.\u003C\u002Fp>\n\n\u003Cp>For the Plain Text call, \u003Ccode>MultipartEncoder\u003C\u002Fcode> combines the file tuple with serialized \u003Ccode>structured_text_options\u003C\u002Fcode>. Its \u003Ccode>content_type\u003C\u002Fcode>, including the boundary, becomes the request’s \u003Ccode>Content-Type\u003C\u002Fcode> header.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">with open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>requests.post\u003C\u002Fcode> sends the encoded Plain Text form with the API key. The script pretty-prints resource JSON after success and otherwise displays the API message before exiting with a nonzero status.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Python automation can convert test output, research notes, and scheduled text exports into consistently paginated PDFs while selecting preserve or reflow behavior for each source. Document tags help expose structure but are not an accessibility certification.\u003C\u002Fp>\n\n\u003Cp>Keep only the structured options that serve the workflow’s layout requirements. Compare results through \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, then consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for defaults, accepted values, and constraints.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-08-31T21:22:27.000+00:00","2026-09-02T18:28:12.000+00:00","Turn plain text output into styled, tagged PDF documents with Python using preserved-line or reflowed layout.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F#article\",\n      \"headline\": \"How to Convert Plain Text to PDF with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F\",\n      \"datePublished\": \"2026-08-31T21:22:27.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:08.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Turn plain text output into styled, tagged PDF documents with Python using preserved-line or reflowed layout.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert Plain Text to PDF with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3452,3453,3454,3455,3456,3457,3458,3459],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1430,"name":1431,"slug":1432,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-plain-text-to-pdf-with-python\u002F","How to Convert Plain Text to PDF with Python, Tutorial | pdfRest",{"id":3464,"uuid":3465,"title":3466,"slug":3467,"html":3468,"comment_id":3464,"feature_image":48,"featured":284,"visibility":1257,"created_at":3469,"updated_at":3470,"published_at":3471,"custom_excerpt":3472,"codeinjection_head":3473,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3474,"primary_tag":3483,"url":3484,"excerpt":3472,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3485,"meta_description":3472,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be6533c9f26b943ad4e","89323169-6632-4b3a-9f8e-f8047390c947","How to Convert XML to PDF in .NET with C#","how-to-convert-xml-to-pdf-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This .NET tutorial shows how a C# application can convert XML into a tagged PDF through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The sample combines the XML upload with layout and style options, then returns a PDF resource suitable for the rest of a document workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF in .NET with C#?\u003C\u002Fh2>\n\n\u003Cp>.NET applications frequently exchange XML with ERP systems, government services, and long-established line-of-business platforms. Although the data is structured, a raw XML file is inconvenient for people who need to approve, compare, or retain the information as part of a business record.\u003C\u002Fp>\n\n\u003Cp>A financial operations system, for instance, might receive an XML acknowledgement after submitting a batch to an external processor. Converting that acknowledgement into a hierarchy-formatted PDF gives reviewers a clear view of batch identifiers, status fields, warnings, and nested transaction results. The PDF can then be placed in the same audit packet as the related approvals and reports.\u003C\u002Fp>\n\n\u003Cp>C# developers do not have to translate every element into drawing coordinates or create a separate HTML template. Hierarchy mode emphasizes relationships for business review, while source mode keeps literal XML syntax visible when technical fidelity is more important. Both can include tags, metadata, and consistent page formatting.\u003C\u002Fp>\n\n\u003Ch2>C# Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Converts structured XML input to PDF through the \u002Fpdf endpoint.\n *\n * Setup (environment):\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region.\n *\n * Usage:\n *   dotnet run -- pdf-from-xml-multipart \u003CinputFile>\n *\u002F\nusing Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nnamespace Samples.EndpointExamples.MultipartPayload;\n\npublic static class PdfFromXml\n{\n    public static async Task Execute(string[] args)\n    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.xml\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\n        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n        var options = JObject.Parse(@\"{\"\"title\"\":\"\"Structured Content Sample\"\",\"\"language\"\":\"\"en-US\"\",\"\"enable_tagging\"\":true,\"\"page_setup\"\":{\"\"size\"\":\"\"Letter\"\",\"\"orientation\"\":\"\"portrait\"\",\"\"margin\"\":{\"\"top\"\":36,\"\"right\"\":42,\"\"bottom\"\":36,\"\"left\"\":42}},\"\"style\"\":{\"\"font\"\":\"\"Arial\"\",\"\"heading_font\"\":\"\"Arial\"\",\"\"code_font\"\":\"\"Courier\"\",\"\"text_size\"\":11,\"\"text_color_rgb\"\":[34,34,34],\"\"heading_scale\"\":1.35,\"\"table\"\":{\"\"column_width_weights\"\":[2,3,2],\"\"keep_header_with_first_row\"\":true,\"\"repeat_headers_on_overflow\"\":true,\"\"show_borders\"\":true,\"\"border_width\"\":0.75,\"\"border_color_rgb\"\":[180,188,200],\"\"header_fill_color_rgb\"\":[33,64,98],\"\"header_text_color_rgb\"\":[255,255,255],\"\"row_fill_color_rgb\"\":[250,250,252],\"\"alternate_row_fill_color_rgb\"\":[235,240,246],\"\"cell_padding\"\":{\"\"top\"\":6,\"\"right\"\":8,\"\"bottom\"\":6,\"\"left\"\":8}}},\"\"data_presentation\"\":\"\"hierarchy\"\"}\");\n        using var form = new MultipartFormDataContent();\n        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-xml.cs\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The C# XML sample uses the framework \u003Ccode>HttpClient\u003C\u002Fcode> APIs and Newtonsoft JSON types for \u003Ccode>structured_text_options\u003C\u002Fcode>. A project adopting this code must retain the Newtonsoft.Json package reference used by the samples repository.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using Newtonsoft.Json.Linq;\nusing System.Net.Http.Headers;\nusing System.Text;\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        using var form = new MultipartFormDataContent();\u003C\u002Fpre>\n\n\u003Cp>The .NET endpoint block shows which regional service receives this XML request:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException(\"Missing PDFREST_API_KEY\");\n        var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n        using var client = new HttpClient { BaseAddress = new Uri(baseUrl) };\n        client.DefaultRequestHeaders.TryAddWithoutValidation(\"Api-Key\", apiKey);\u003C\u002Fpre>\n\n\u003Cp>C# turns the .xml source into \u003Ccode>StreamContent\u003C\u002Fcode> and preserves its filename in the multipart part. That extension directs the shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint to the XML converter.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">    {\n        var inputPath = args.Length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.xml\";\n        var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\u003C\u002Fpre>\n\n\u003Cp>The Newtonsoft \u003Ccode>JObject\u003C\u002Fcode> represents pdfRest’s structured conversion settings. It defines the output title and language, explicitly enables tags, configures Letter portrait pages and margins, and carries the typography and XML-related style properties used by the renderer.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>For XML, \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> owns the source stream, serialized settings, and output field. \u003Ccode>HttpClient\u003C\u002Fcode> generates the matching multipart boundary and content type when it sends the container.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Cp>The C# client authenticates and posts the XML form, then reads the response as text. Reporting both status and payload lets an integration distinguish a generated PDF resource from validation or processing errors.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">        var inputContent = new ByteArrayContent(await File.ReadAllBytesAsync(inputPath));\n        inputContent.Headers.ContentType = new MediaTypeHeaderValue(\"application\u002Foctet-stream\");\n        form.Add(inputContent, \"file\", Path.GetFileName(inputPath));\n        form.Add(new StringContent(options.ToString()), \"structured_text_options\");\n        var response = await client.PostAsync(\"pdf\", form);\n        var result = await response.Content.ReadAsStringAsync();\n        Console.WriteLine(result);\n        if (!response.IsSuccessStatusCode) Environment.ExitCode = 1;\n    }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Possible uses include documenting serialized application state, distributing configuration baselines, and creating human-readable copies of machine-to-machine messages. Teams can choose hierarchy or source presentation according to whether readability or syntax fidelity is more important.\u003C\u002Fp>\n\n\u003Cp>Enabling tags contributes document structure for assistive technology and automated workflows without certifying the result against a named standard. Developers can prototype the same request in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and find the authoritative field definitions in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF reference\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T03:52:06.000+00:00","2026-09-02T18:28:17.000+00:00","2026-09-01T04:11:25.000+00:00","Generate a structured, tagged PDF from XML in .NET with C# using configurable hierarchy and source presentation modes.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:25.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:10.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Generate a structured, tagged PDF from XML in .NET with C# using configurable hierarchy and source presentation modes.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Conversion, Convert to PDF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3475,3476,3477,3478,3479,3480,3481,3482],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-in-net-with-c\u002F","Convert XML to PDF in .NET with C# | pdfRest",{"id":3487,"uuid":3488,"title":3489,"slug":3490,"html":3491,"comment_id":3487,"feature_image":48,"featured":284,"visibility":1257,"created_at":3492,"updated_at":3493,"published_at":3494,"custom_excerpt":3495,"codeinjection_head":3496,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3497,"primary_tag":3506,"url":3507,"excerpt":3495,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3508,"meta_description":3495,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be5533c9f26b943ad30","ba693bb2-d563-4914-b671-c9098f264b42","How to Convert XML to PDF with cURL","how-to-convert-xml-to-pdf-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows how to convert an XML file to PDF with cURL and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. The request produces tagged output, presents nested XML as a readable hierarchy, and applies page and typography settings without requiring an XML stylesheet or local PDF software.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>XML is excellent for exchanging structured data between systems, but it is rarely the format a support specialist, project manager, or customer wants to review. Converting XML to PDF creates a portable representation that can be opened consistently, attached to a case, and shared without asking the recipient to use an XML editor.\u003C\u002Fp>\n\n\u003Cp>Consider a scheduled integration that saves a partner’s XML response whenever an order fails. A shell script can send that response to pdfRest, generate a hierarchy-formatted PDF, and attach the document to the incident record. The support team sees parent-child relationships and values without the visual noise of opening and closing tags, while the original XML remains available as the system record.\u003C\u002Fp>\n\n\u003Cp>The same endpoint can use \u003Ccode>data_presentation: \"source\"\u003C\u002Fcode> when exact markup is the point of the document. This makes the cURL workflow useful for both reader-friendly diagnostics and syntax-preserving technical evidence, with optional tags and controlled page styling applied during conversion.\u003C\u002Fp>\n\n\u003Ch2>cURL Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.xml\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_xml\"\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-xml.sh\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The XML shell example calls cURL directly, so no language package is required. \u003Ccode>API_URL\u003C\u002Fcode> keeps regional routing visible: the active value uses the US service, and the commented alternative selects the EU service.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.xml\"\u003C\u002Fpre>\n\n\u003Cp>For this XML request, the endpoint excerpt makes the regional service choice explicit:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>INPUT_PATH\u003C\u002Fcode> identifies the local .xml source. The \u003Ccode>@\u003C\u002Fcode> prefix in the later \u003Ccode>--form\u003C\u002Fcode> argument instructs cURL to upload that file’s contents instead of sending its path as text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.xml\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\u003C\u002Fpre>\n\n\u003Cp>The JSON assigned to \u003Ccode>OPTIONS\u003C\u002Fcode> is pdfRest-specific rather than shell syntax. \u003Ccode>title\u003C\u002Fcode> becomes document metadata, \u003Ccode>language\u003C\u002Fcode> identifies the document language, and \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical structure. \u003Ccode>page_setup\u003C\u002Fcode> selects Letter portrait pages with 36-point margins, while \u003Ccode>style\u003C\u002Fcode> supplies fonts, text size, color, and format-specific presentation.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>For XML conversion, the \u003Ccode>--form\u003C\u002Fcode> arguments create the multipart fields: \u003Ccode>file\u003C\u002Fcode> carries the structured source, \u003Ccode>structured_text_options\u003C\u002Fcode> carries serialized settings, and \u003Ccode>output\u003C\u002Fcode> names the requested PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_xml\"\u003C\u002Fpre>\n\n\u003Cp>The XML request asks for JSON with \u003Ccode>Accept\u003C\u002Fcode>, declares multipart form data with \u003Ccode>Content-Type\u003C\u002Fcode>, and authenticates through \u003Ccode>Api-Key\u003C\u002Fcode>. Success returns the generated PDF resource and download URL; failure returns API error information.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\"># This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\nINPUT_PATH=\"\u002Fpath\u002Fto\u002Fsample.xml\"\nOPTIONS='{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}'\n\ncurl --location \"$API_URL\u002Fpdf\" \\\n  --header \"Accept: application\u002Fjson\" \\\n  --header \"Content-Type: multipart\u002Fform-data\" \\\n  --header \"Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  --form \"file=@$INPUT_PATH\" \\\n  --form \"structured_text_options=$OPTIONS\" \\\n  --form \"output=pdf_from_xml\"\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>Command-line conversion makes it practical to add XML reporting to scheduled jobs, build scripts, and operational diagnostics without first transforming the source into HTML. The hierarchy view favors human review, while source view is better suited to technical records where preserving markup matters.\u003C\u002Fp>\n\n\u003Cp>Tagged output supplies logical structure for accessibility and downstream processing, although enabling tags alone does not establish compliance with a particular accessibility standard. Experiment with the request in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, or consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for every supported option.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T03:52:05.000+00:00","2026-09-02T18:28:18.000+00:00","2026-09-01T04:11:24.000+00:00","Learn how to convert XML to a tagged, readable PDF with cURL using hierarchy or source presentation options from pdfRest.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:24.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:08.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert XML to a tagged, readable PDF with cURL using hierarchy or source presentation options from pdfRest.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3498,3499,3500,3501,3502,3503,3504,3505],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-with-curl\u002F","Convert XML to PDF with cURL | pdfRest",{"id":3510,"uuid":3511,"title":3512,"slug":3513,"html":3514,"comment_id":3510,"feature_image":48,"featured":284,"visibility":1257,"created_at":3469,"updated_at":3493,"published_at":3494,"custom_excerpt":3515,"codeinjection_head":3516,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3517,"primary_tag":3526,"url":3527,"excerpt":3515,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3528,"meta_description":3515,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be6533c9f26b943ad3a","a30291b0-1b5c-4811-9101-bb4606067333","How to Convert XML to PDF with Java","how-to-convert-xml-to-pdf-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Java tutorial demonstrates how to upload XML to the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> and receive a styled, tagged PDF. The example uses hierarchy presentation for readability and includes the page, language, and font controls needed for predictable document output.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF with Java?\u003C\u002Fh2>\n\n\u003Cp>Java applications often sit at the center of enterprise systems where XML represents transactions, policy data, service messages, or archival metadata. Those payloads are useful to software, but business reviewers usually need a stable document that communicates the same information without exposing them to raw markup.\u003C\u002Fp>\n\n\u003Cp>For example, an insurance platform may receive a nested XML response from an underwriting service and need to preserve the decision details with a case file. The application can convert that response into a PDF whose hierarchy keeps sections, fields, and values visually related. Claims staff can review the result in ordinary document software, and the generated resource can continue through the organization’s existing PDF workflow.\u003C\u002Fp>\n\n\u003Cp>Centralizing this work in an API also keeps the Java service from maintaining its own XML-to-layout engine. Teams can select hierarchy mode for operational review or source mode for developers and auditors who need to see the original element syntax, while using the same conversion path for both audiences.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PdfFromXml {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.xml\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\n    JSONObject options =\n        new JSONObject(\n            \"{\\\"title\\\":\\\"Structured Content Sample\\\",\\\"language\\\":\\\"en-US\\\",\\\"enable_tagging\\\":true,\\\"page_setup\\\":{\\\"size\\\":\\\"Letter\\\",\\\"orientation\\\":\\\"portrait\\\",\\\"margin\\\":{\\\"top\\\":36,\\\"right\\\":42,\\\"bottom\\\":36,\\\"left\\\":42}},\\\"style\\\":{\\\"font\\\":\\\"Arial\\\",\\\"heading_font\\\":\\\"Arial\\\",\\\"code_font\\\":\\\"Courier\\\",\\\"text_size\\\":11,\\\"text_color_rgb\\\":[34,34,34],\\\"heading_scale\\\":1.35,\\\"table\\\":{\\\"column_width_weights\\\":[2,3,2],\\\"keep_header_with_first_row\\\":true,\\\"repeat_headers_on_overflow\\\":true,\\\"show_borders\\\":true,\\\"border_width\\\":0.75,\\\"border_color_rgb\\\":[180,188,200],\\\"header_fill_color_rgb\\\":[33,64,98],\\\"header_text_color_rgb\\\":[255,255,255],\\\"row_fill_color_rgb\\\":[250,250,252],\\\"alternate_row_fill_color_rgb\\\":[235,240,246],\\\"cell_padding\\\":{\\\"top\\\":6,\\\"right\\\":8,\\\"bottom\\\":6,\\\"left\\\":8}}},\\\"data_presentation\\\":\\\"hierarchy\\\"}\");\n    MultipartBody.Builder form =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\n                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\n  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPdfFromXml.java\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This Java XML example combines OkHttp for transport, \u003Ccode>org.json\u003C\u002Fcode> for conversion settings, and dotenv support for repository configuration. Those project dependencies must remain available when the class is moved into another application.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The Java endpoint excerpt exposes the regional service selection used for this XML conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">public class PdfFromXml {\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.xml\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n    String apiKey = dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY);\u003C\u002Fpre>\n\n\u003Cp>Java wraps the .xml path in an OkHttp request body and retains the filename in the multipart upload. The shared \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint uses that extension to select XML conversion.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  public static void main(String[] args) throws IOException {\n    File inputFile = new File(args.length > 0 ? args[0] : \"\u002Fpath\u002Fto\u002Fsample.xml\");\n    Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>JSONObject\u003C\u002Fcode> is the pdfRest conversion profile. Its title and language describe the PDF, \u003Ccode>enable_tagging\u003C\u002Fcode> explicitly requests logical tags, and \u003Ccode>page_setup\u003C\u002Fcode> establishes Letter portrait pages with 36-point margins. The \u003Ccode>style\u003C\u002Fcode> member controls the fonts, text size, color, and any XML-specific rendering choices.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>For the XML upload, \u003Ccode>MultipartBody.Builder\u003C\u002Fcode> combines the source file, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and ordinary \u003Ccode>output\u003C\u002Fcode> text field in one request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">                \"file\",\n                inputFile.getName(),\n                RequestBody.create(inputFile, MediaType.parse(\"application\u002Foctet-stream\")))\n            .addFormDataPart(\"structured_text_options\", options.toString());\n    Request request =\n        new Request.Builder()\n            .url(API_URL + \"\u002Fpdf\")\n            .header(\"Api-Key\", apiKey)\n            .post(form.build())\n            .build();\n    send(request);\u003C\u002Fpre>\n\n\u003Cp>OkHttp submits the XML conversion with the API key and checks the HTTP result. The printed body contains generated-resource JSON after success or API error details when processing fails.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">  }\n\n  private static void send(Request request) throws IOException {\n    OkHttpClient client = new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build();\n    try (Response response = client.newCall(request).execute()) {\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) System.out.println(response.body().string());\n      if (!response.isSuccessful()) System.exit(1);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>A hierarchy-based PDF can make deeply nested service responses, product catalogs, and interchange documents approachable to reviewers outside the development team. Source presentation remains available when engineers need the exact markup visible in the document.\u003C\u002Fp>\n\n\u003Cp>The requested tags describe the document’s logical organization but are not a declaration of PDF\u002FUA or WCAG conformance. Try variations interactively in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API reference\u003C\u002Fa> when selecting additional conversion controls.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","Convert XML data into a styled and tagged PDF with Java while choosing a readable hierarchy or source-code presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:24.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:09.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Convert XML data into a styled and tagged PDF with Java while choosing a readable hierarchy or source-code presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3518,3519,3520,3521,3522,3523,3524,3525],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-with-java\u002F","Convert XML to PDF with Java | pdfRest",{"id":3530,"uuid":3531,"title":3532,"slug":3533,"html":3534,"comment_id":3530,"feature_image":48,"featured":284,"visibility":1257,"created_at":3469,"updated_at":3535,"published_at":3471,"custom_excerpt":3536,"codeinjection_head":3537,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3538,"primary_tag":3547,"url":3548,"excerpt":3536,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3549,"meta_description":3536,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be6533c9f26b943ad44","55730214-7551-4eaa-900c-91cbc472d301","How to Convert XML to PDF with JavaScript in NodeJS","how-to-convert-xml-to-pdf-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This walkthrough uses JavaScript in NodeJS to convert an XML file with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It sends the source and structured-text settings in one multipart request, producing a tagged PDF with a readable nested layout.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF with JavaScript in NodeJS?\u003C\u002Fh2>\n\n\u003Cp>Modern NodeJS services still encounter XML through payment gateways, legacy APIs, syndication feeds, and business-to-business integrations. Returning that raw payload to a user or account team creates unnecessary friction because the structure is difficult to scan and the file may open differently across tools.\u003C\u002Fp>\n\n\u003Cp>Imagine a SaaS support portal that retrieves an XML status response from an older provisioning system. When an escalation is opened, the backend can create a PDF snapshot and add it to the case. Hierarchy presentation makes nested account, service, and error values understandable to the support engineer, while PDF provides a familiar artifact that can be downloaded or forwarded.\u003C\u002Fp>\n\n\u003Cp>NodeJS applications can also request source presentation when troubleshooting requires the exact tags and nesting to remain visible. Because both views use the same \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint, the application can choose the presentation that matches the audience instead of maintaining separate rendering pipelines.\u003C\u002Fp>\n\n\u003Ch2>JavaScript Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.xml\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_xml\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-xml.js\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The NodeJS XML walkthrough uses \u003Ccode>axios\u003C\u002Fcode>, \u003Ccode>form-data\u003C\u002Fcode>, and Node’s file-system module. Outside the samples project, install its HTTP and multipart dependencies with \u003Ccode>npm install axios form-data\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar fs = require(\"fs\");\nvar FormData = require(\"form-data\");\u003C\u002Fpre>\n\n\u003Cp>This NodeJS excerpt keeps the regional endpoint visible for the XML workflow:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>JavaScript streams the .xml source into the form while preserving its filename. pdfRest infers XML conversion from that extension, so \u003Ccode>structured_text_options\u003C\u002Fcode> does not need an \u003Ccode>input_format\u003C\u002Fcode> property.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\nvar inputPath = \"\u002Fpath\u002Fto\u002Fsample.xml\";\nvar form = new FormData();\u003C\u002Fpre>\n\n\u003Cp>The object passed through \u003Ccode>JSON.stringify\u003C\u002Fcode> is interpreted by pdfRest as \u003Ccode>structured_text_options\u003C\u002Fcode>. It sets PDF metadata, explicitly enables tagging, defines Letter portrait geometry and margins, and supplies the font and color choices used when laying out the XML content.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>NodeJS uses \u003Ccode>FormData\u003C\u002Fcode> to append the XML file, stringified \u003Ccode>structured_text_options\u003C\u002Fcode>, and output name. The generated form headers provide the multipart boundary for those fields.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var inputPath = \"\u002Fpath\u002Fto\u002Fsample.xml\";\nvar form = new FormData();\nform.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_xml\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Cp>Axios sends the XML request to \u003Ccode>\u002Fpdf\u003C\u002Fcode> with the form headers and \u003Ccode>Api-Key\u003C\u002Fcode>. Its success path prints resource JSON, while the rejection path exposes either the API response or the client-side error.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">form.append(\"file\", fs.createReadStream(inputPath));\nform.append(\"structured_text_options\", JSON.stringify({\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}));\nform.append(\"output\", \"pdf_from_xml\");\n\naxios.post(apiUrl + \"\u002Fpdf\", form, { headers: { \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", ...form.getHeaders() }, maxBodyLength: Infinity })\n.then((response) => { console.log(JSON.stringify(response.data, null, 2)); })\n.catch((error) => { console.error(error.response ? error.response.data : error.message); process.exitCode = 1; });\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This approach can turn XML-based monitoring output, inventory feeds, or integration test results into documents that product and operations teams can inspect comfortably. Developers still retain source mode for cases where exact syntax is central to the review.\u003C\u002Fp>\n\n\u003Cp>Logical tagging can improve navigation and machine interpretation, but the sample makes no claim of complete accessibility conformance. Use \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> to explore the profile and review all accepted fields in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:28:19.000+00:00","Use JavaScript in NodeJS to turn XML files into styled, tagged PDFs with configurable hierarchy and source views.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:25.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:09.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Use JavaScript in NodeJS to turn XML files into styled, tagged PDFs with configurable hierarchy and source views.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, JavaScript\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3539,3540,3541,3542,3543,3544,3545,3546],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-with-javascript-in-nodejs\u002F","Convert XML to PDF with NodeJS | pdfRest",{"id":3551,"uuid":3552,"title":3553,"slug":3554,"html":3555,"comment_id":3551,"feature_image":48,"featured":284,"visibility":1257,"created_at":3556,"updated_at":3535,"published_at":3471,"custom_excerpt":3557,"codeinjection_head":3558,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3559,"primary_tag":3568,"url":3569,"excerpt":3557,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3570,"meta_description":3557,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be7533c9f26b943ad58","6f778138-2aa4-4b53-84cc-e5680b3b4b04","How to Convert XML to PDF with PHP","how-to-convert-xml-to-pdf-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This PHP example converts an XML file with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa> and applies structured document settings in the same request. The resulting PDF displays XML data as a tagged hierarchy that is easier to read than raw markup.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>PHP applications often import XML product catalogs, order acknowledgements, publishing feeds, and records from older web services. Developers can process those files directly, but merchandising, customer service, and operations teams usually need a document they can review without interpreting XML syntax.\u003C\u002Fp>\n\n\u003Cp>Suppose an online marketplace receives a supplier feed containing products, variants, availability, and pricing in nested XML. A PHP job can convert a rejected feed into a hierarchy-formatted PDF and send it with the validation report. The supplier and marketplace team can discuss the same readable snapshot, reducing the chance that an important nested value is overlooked.\u003C\u002Fp>\n\n\u003Cp>When the markup itself must be inspected, changing \u003Ccode>data_presentation\u003C\u002Fcode> to \u003Ccode>source\u003C\u002Fcode> produces a formatted code view instead. That choice lets one PHP integration support both business-facing summaries and developer-facing evidence while retaining common PDF styling and tagging controls.\u003C\u002Fp>\n\n\u003Ch2>PHP Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$inputPath = '\u002Fpath\u002Fto\u002Fsample.xml';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}', true);\n\n\u002F\u002F This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\n\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_xml'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-xml.php\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This PHP XML example relies on Guzzle for HTTP and PSR-7 stream utilities for the upload. When using the code outside this repository, add the client with \u003Ccode>composer require guzzlehttp\u002Fguzzle\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\u003C\u002Fpre>\n\n\u003Cp>The PHP endpoint excerpt keeps regional routing explicit for this XML operation:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\u003C\u002Fpre>\n\n\u003Cp>PHP opens the .xml source as a PSR-7 stream and includes its filename in the multipart part. The extension selects XML processing without duplicating the format in the options JSON.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$inputPath = '\u002Fpath\u002Fto\u002Fsample.xml';\n$options = json_decode('{\"title\":\"Structured Content Sample\",\"language\":\"en-US\",\"enable_tagging\":true,\"page_setup\":{\"size\":\"Letter\",\"orientation\":\"portrait\",\"margin\":{\"top\":36,\"right\":42,\"bottom\":36,\"left\":42}},\"style\":{\"font\":\"Arial\",\"heading_font\":\"Arial\",\"code_font\":\"Courier\",\"text_size\":11,\"text_color_rgb\":[34,34,34],\"heading_scale\":1.35,\"table\":{\"column_width_weights\":[2,3,2],\"keep_header_with_first_row\":true,\"repeat_headers_on_overflow\":true,\"show_borders\":true,\"border_width\":0.75,\"border_color_rgb\":[180,188,200],\"header_fill_color_rgb\":[33,64,98],\"header_text_color_rgb\":[255,255,255],\"row_fill_color_rgb\":[250,250,252],\"alternate_row_fill_color_rgb\":[235,240,246],\"cell_padding\":{\"top\":6,\"right\":8,\"bottom\":6,\"left\":8}}},\"data_presentation\":\"hierarchy\"}', true);\u003C\u002Fpre>\n\n\u003Cp>The array decoded into \u003Ccode>$options\u003C\u002Fcode> is serialized as pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode>. It describes the PDF title and language, explicitly turns on tagging, chooses Letter portrait pages with 36-point margins, and provides typography plus XML-specific styling.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>The PHP multipart array assigns \u003Ccode>name\u003C\u002Fcode> and \u003Ccode>contents\u003C\u002Fcode> values to the XML stream, serialized \u003Ccode>structured_text_options\u003C\u002Fcode>, and requested output name.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">\u002F\u002F It demonstrates structured_text_options and the format-specific conversion options.\n$multipart = [\n  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_xml'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Guzzle prepares and submits the XML multipart body with the API key. The response body contains generated-resource information on success and service error details when the conversion cannot be completed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">  ['name' => 'file', 'contents' => Utils::tryFopen($inputPath, 'r'), 'filename' => basename($inputPath)],\n  ['name' => 'structured_text_options', 'contents' => json_encode($options)],\n  ['name' => 'output', 'contents' => 'pdf_from_xml'],\n];\n$response = (new Client())->post($apiUrl . '\u002Fpdf', ['headers' => ['Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', 'Accept' => 'application\u002Fjson'], 'multipart' => $multipart]);\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>XML-to-PDF conversion can support invoice-message review, feed diagnostics, and readable exports from content platforms. Hierarchy mode serves mixed technical and business audiences, whereas source mode is useful when reviewers need to see exact element names.\u003C\u002Fp>\n\n\u003Cp>Document tags provide a structural foundation, not an automatic guarantee of conformance with accessibility specifications. Build and inspect request variations in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, then consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF API documentation\u003C\u002Fa> for limits and optional settings.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T03:52:07.000+00:00","Create readable, tagged PDF documents from XML with PHP and select either hierarchy or source presentation.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:25.000Z\",\n      \"dateModified\": \"2026-09-01T05:07:10.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Create readable, tagged PDF documents from XML with PHP and select either hierarchy or source presentation.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, PHP\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3560,3561,3562,3563,3564,3565,3566,3567],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-with-php\u002F","Convert XML to PDF with PHP | pdfRest",{"id":3572,"uuid":3573,"title":3574,"slug":3575,"html":3576,"comment_id":3572,"feature_image":48,"featured":284,"visibility":1257,"created_at":3556,"updated_at":3577,"published_at":3578,"custom_excerpt":3579,"codeinjection_head":3580,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3581,"primary_tag":3590,"url":3591,"excerpt":3579,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3592,"meta_description":3579,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a964be7533c9f26b943ad62","191e6c91-d381-4850-8a0a-e8f522a689b0","How to Convert XML to PDF with Python","how-to-convert-xml-to-pdf-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This Python tutorial converts XML into a styled, tagged PDF using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">pdfRest Convert to PDF API Tool\u003C\u002Fa>. It demonstrates a multipart upload, structured conversion options, and hierarchy presentation for nested XML content.\u003C\u002Fp>\n\n\u003Ch2>Why Convert XML to PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>Python automation produces and consumes XML in testing, scientific processing, data exchange, and infrastructure tooling. The file may contain exactly the information a team needs, yet raw XML is a poor deliverable for release managers, researchers, or clients who expect a document they can open and annotate.\u003C\u002Fp>\n\n\u003Cp>A continuous-integration pipeline provides a practical example: test tools may emit XML containing suites, cases, durations, and failure details. A Python step can convert that artifact into a hierarchy-formatted PDF for a release evidence package. Reviewers can follow the nested results in a familiar document, while engineers still retain the XML source for machine analysis.\u003C\u002Fp>\n\n\u003Cp>For workflows centered on code review, Python can request source presentation and show the markup directly. For broader audiences, hierarchy mode suppresses syntax and emphasizes names, values, and nesting. The API handles both outcomes while also applying page setup, typography, language metadata, and optional tagging.\u003C\u002Fp>\n\n\u003Ch2>Python Code Example for Converting XML to PDF\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\n# This sample converts XML input to a tagged PDF through multipart \u002Fpdf.\n# It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.xml\"\noptions = json.loads(r'''{\n  \"title\": \"Structured Content Sample\",\n  \"language\": \"en-US\",\n  \"enable_tagging\": true,\n  \"page_setup\": {\n    \"size\": \"Letter\",\n    \"orientation\": \"portrait\",\n    \"margin\": {\n      \"top\": 36,\n      \"right\": 42,\n      \"bottom\": 36,\n      \"left\": 42\n    }\n  },\n  \"style\": {\n    \"font\": \"Arial\",\n    \"heading_font\": \"Arial\",\n    \"code_font\": \"Courier\",\n    \"text_size\": 11,\n    \"text_color_rgb\": [\n      34,\n      34,\n      34\n    ],\n    \"heading_scale\": 1.35,\n    \"table\": {\n      \"column_width_weights\": [\n        2,\n        3,\n        2\n      ],\n      \"keep_header_with_first_row\": true,\n      \"repeat_headers_on_overflow\": true,\n      \"show_borders\": true,\n      \"border_width\": 0.75,\n      \"border_color_rgb\": [\n        180,\n        188,\n        200\n      ],\n      \"header_fill_color_rgb\": [\n        33,\n        64,\n        98\n      ],\n      \"header_text_color_rgb\": [\n        255,\n        255,\n        255\n      ],\n      \"row_fill_color_rgb\": [\n        250,\n        250,\n        252\n      ],\n      \"alternate_row_fill_color_rgb\": [\n        235,\n        240,\n        246\n      ],\n      \"cell_padding\": {\n        \"top\": 6,\n        \"right\": 8,\n        \"bottom\": 6,\n        \"left\": 8\n      }\n    }\n  },\n  \"data_presentation\": \"hierarchy\"\n}''')\n\nfrom requests_toolbelt import MultipartEncoder\nwith open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\nelse:\n    print(response.text)\n    raise SystemExit(1)\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-from-xml.py\">View the sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The Python XML sample uses \u003Ccode>requests\u003C\u002Fcode> and \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. Install both with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode> when they are not already present. The caller does not need a separate XML parsing package.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">import json\nimport os\nimport requests\u003C\u002Fpre>\n\n\u003Cp>This Python endpoint excerpt identifies the regional service used for XML conversion:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\u003C\u002Fpre>\n\n\u003Cp>Python opens the .xml input in binary mode and sends its base filename with the stream. \u003Ccode>\u002Fpdf\u003C\u002Fcode> uses that filename extension to infer the XML input type.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\"># It demonstrates structured_text_options and the format-specific conversion options.\ninput_path = \"\u002Fpath\u002Fto\u002Fsample.xml\"\noptions = json.loads(r'''{\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>options\u003C\u002Fcode> dictionary becomes pdfRest’s \u003Ccode>structured_text_options\u003C\u002Fcode> field. It supplies document metadata, explicitly requests tags, establishes Letter portrait pages and 36-point margins, and selects the fonts, text size, color, and XML-specific presentation values.\u003C\u002Fp>\n\n\u003Cpre class=\"language-json\">{\n  \"data_presentation\": \"hierarchy\"\n}\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>source\u003C\u002Fcode> is the default. It first validates the XML and then displays the user’s original source text, including its markup, whitespace, and declared encoding text. \u003Ccode>hierarchy\u003C\u002Fcode> instead creates a nested list: local element names become bold labels, attributes appear with an \u003Ccode>@\u003C\u002Fcode> prefix, and leaf values follow their element names. Namespace prefixes are not displayed in hierarchy labels. Invalid XML and documents without a root element are rejected in either mode.\u003C\u002Fp>\n\n\u003Cp>The shared \u003Ccode>style.table\u003C\u002Fcode> member does not affect XML hierarchy or source output. It can be removed from an XML-only profile without changing the resulting document.\u003C\u002Fp>\n\n\u003Cp>For the XML call, \u003Ccode>MultipartEncoder\u003C\u002Fcode> combines the file tuple with serialized \u003Ccode>structured_text_options\u003C\u002Fcode>. Its \u003Ccode>content_type\u003C\u002Fcode>, including the boundary, becomes the request’s \u003Ccode>Content-Type\u003C\u002Fcode> header.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">with open(input_path, \"rb\") as input_file:\n    fields = {\n        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>requests.post\u003C\u002Fcode> sends the encoded XML form with the API key. The script pretty-prints resource JSON after success and otherwise displays the API message before exiting with a nonzero status.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">        \"file\": (os.path.basename(input_path), input_file, \"text\u002Fplain\"),\n        \"structured_text_options\": json.dumps(options),\n    }\n    form = MultipartEncoder(fields=fields)\n    response = requests.post(api_url + \"\u002Fpdf\", data=form, headers={\n        \"Accept\": \"application\u002Fjson\",\n        \"Content-Type\": form.content_type,\n        \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    })\n\nprint(\"Response status code: \" + str(response.status_code))\nif response.ok:\n    print(json.dumps(response.json(), indent=2))\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>This pattern can automate readable reports from test fixtures, metadata repositories, or batch integration output. The choice between hierarchy and source views lets the workflow serve either general reviewers or developers investigating the raw structure.\u003C\u002Fp>\n\n\u003Cp>Tags can make the PDF’s logical organization available to assistive and downstream software, but they do not independently prove accessibility conformance. Explore different profiles in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and reference the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\u002F\">Convert to PDF documentation\u003C\u002Fa> for the complete contract.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:28:20.000+00:00","2026-09-01T04:11:26.000+00:00","Learn how to convert XML into a tagged PDF with Python and present the data as a hierarchy or formatted source.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F#article\",\n      \"headline\": \"How to Convert XML to PDF with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F\",\n      \"datePublished\": \"2026-09-01T04:11:26.000Z\",\n      \"dateModified\": \"2026-09-01T05:09:04.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to convert XML into a tagged PDF with Python and present the data as a hierarchy or formatted source.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert to PDF, Python\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Convert XML to PDF with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-xml-to-pdf-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3582,3583,3584,3585,3586,3587,3588,3589],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1426,"name":1427,"slug":1428,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1850,"name":1851,"slug":1852,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-convert-xml-to-pdf-with-python\u002F","Convert XML to PDF with Python | pdfRest",{"id":3594,"uuid":3595,"title":3596,"slug":3597,"html":3598,"comment_id":3594,"feature_image":48,"featured":284,"visibility":1257,"created_at":3599,"updated_at":3600,"published_at":3599,"custom_excerpt":3601,"codeinjection_head":3602,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3603,"primary_tag":3611,"url":3612,"excerpt":3601,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3613,"meta_description":3601,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672bcba7533c9f26b9438c1e","c2615ada-222f-4419-990e-5a110acf9708","How to Export PDF Form Data with cURL","how-to-export-pdf-form-data-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Export Form Data with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F'>Export Form Data API Tool\u003C\u002Fa> is a powerful utility that allows users to extract form data from PDF documents. By using cURL, a command-line tool for transferring data with URLs, you can automate and streamline the process of sending requests to this API endpoint. This tutorial will guide you through the process of making an API call to export form data using cURL, demonstrating how to set up and execute the request effectively.\u003C\u002Fp>\n\n\u003Cp>You might have a large number of PDF forms that need to be processed to extract data for analysis or record-keeping. For example, a company might collect customer feedback through PDF forms and need to export this data into a structured format like XML for further processing. Using the Export Form Data API with cURL simplifies this task by allowing you to automate data extraction, saving time and reducing the potential for human error.\u003C\u002Fp>\n\n\u003Ch2>Export Form Data with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fexported-form-data\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"data_format=xml\" \\\n  -F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fexported-form-data.sh\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided cURL command sends a POST request to the \u003Ccode>https:\u002F\u002Fapi.pdfrest.com\u002Fexported-form-data\u003C\u002Fcode> endpoint. Let's break down each part of the command:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fexported-form-data\"\u003C\u002Fpre>\n\n\u003Cp>This specifies that we are making a POST request to the Export Form Data endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\u003C\u002Fpre>\n\n\u003Cp>This header tells the server that the client expects the response to be in JSON format.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the request body will contain multiple parts, such as files and form fields. This is necessary for uploading files.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\u003C\u002Fpre>\n\n\u003Cp>The API key is a unique identifier used to authenticate the request. Replace the placeholder with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\u003C\u002Fpre>\n\n\u003Cp>This option uploads the file specified by the path. The '@' symbol is used to denote that the content of the file should be uploaded.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"data_format=xml\"\u003C\u002Fpre>\n\n\u003Cp>This form field specifies the format of the exported data. In this case, it is set to 'xml'.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"output=example_out\"\u003C\u002Fpre>\n\n\u003Cp>This specifies the name of the output file where the exported data will be saved.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we successfully demonstrated how to use cURL to make an API call to pdfRest's Export Form Data endpoint. This allows you to automate the extraction of form data from PDF files, which can be particularly useful for processing large volumes of documents efficiently.\u003C\u002Fp>\n\n\u003Cp>To further explore the capabilities of the pdfRest API, you can try out all of the available tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example showcases a multipart API call. For code samples using JSON payloads, visit the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fexported-form-data.sh\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-06T20:03:51.000+00:00","2026-09-02T18:28:36.000+00:00","Learn how to extract PDF form field values with pdfRest Export Form Data using cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F#article\",\n      \"headline\": \"How to Export PDF Form Data with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\",\n      \"datePublished\": \"2024-11-06T20:03:51.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:22.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract PDF form field values with pdfRest Export Form Data using cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Export Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fexported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-form-data\"\n        }\n      ],\n      \"keywords\": \"Data, Export Form Data, Extract, Forms, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Export PDF Form Data with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3604,3605,3606,3607,3608,3609,3610],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1802,"name":1803,"slug":1804,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-export-pdf-form-data-with-curl\u002F","How to Export PDF Form Data with cURL, Tutorial | pdfRest",{"id":3615,"uuid":3616,"title":3617,"slug":3618,"html":3619,"comment_id":3615,"feature_image":48,"featured":284,"visibility":1257,"created_at":3620,"updated_at":3621,"published_at":3622,"custom_excerpt":3623,"codeinjection_head":3624,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3625,"primary_tag":3633,"url":3634,"excerpt":3623,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3635,"meta_description":3623,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c5d533c9f26b943b548","ecb3c7d9-0bdd-4a03-b13e-ba3e67c16076","How to Export PDF Form Data with Java","how-to-export-pdf-form-data-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>By the end of this tutorial, you'll know how to export PDF form data with Java and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\">Export Form Data API Tool\u003C\u002Fa>. The example sends a completed form to \u003Ccode>\u002Fexported-form-data\u003C\u002Fcode> and receives its field values as a separate structured resource for downstream processing. We'll explain the important request pieces so you can use the sample as the foundation for an integration that can export PDF form data.\u003C\u002Fp>\n\n\u003Ch2>Why Export PDF Form Data with Java?\u003C\u002Fh2>\n\n\u003Cp>A permit portal may receive filled forms that humans can read but backend systems still need as structured field data. Exporting the form values avoids manually transcribing submissions.\u003C\u002Fp>\n\n\u003Cp>The Java request sends the PDF to \u003Ccode>\u002Fexported-form-data\u003C\u002Fcode> and selects an export format. The output resource contains the form data rather than a modified PDF.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class ExportedFormData {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"data_format\", \"xml\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fexported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FExportedFormData.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The supporting code relies on OkHttp to send the call, dotenv to resolve credentials, and \u003Ccode>org.json\u003C\u002Fcode> to inspect or format JSON.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\u003C\u002Fpre>\n\n\u003Cp>This setup shows where the input comes from and keeps the credential outside the request-building logic.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"data_format\", \"xml\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fexported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The Java request sends the PDF to \u003Ccode>\u002Fexported-form-data\u003C\u002Fcode> and selects an export format. The output resource contains the form data rather than a modified PDF. The body construction sets \u003Ccode>MultipartBody.FORM\u003C\u002Fcode>, allowing OkHttp to generate the matching boundary automatically.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fexported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>This builder chain joins authentication, routing, and payload in one place while leaving regional service selection in the API URL constant.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>This completion path makes success and failure information available to the caller, including any temporary resources that must be saved or reused before expiration.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>By working through this example, you now have a Java pattern you can use to export PDF form data. With that foundation, exported data can feed databases, validation services, workflow routing, and audit records.\u003C\u002Fp>\n\n\u003Cp>When this becomes part of an application, keep in mind that field names are the durable link between the PDF and downstream systems, so preserve them when forms are revised. Confirm the form technology and chosen export representation with real submissions before using exported values for validation, routing, or database updates.\u003C\u002Fp>\n\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> lets you try the Export PDF Form Data operation without first building an application. When you are ready to implement it, see the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-form-data\u002F\">Export Form Data API Tool documentation\u003C\u002Fa> for the complete API contract.\u003C\u002Fp>\n\n\u003Cp>Note: The Export PDF Form Data example above uses multipart form data; for callers that have already uploaded the source, see the request shape in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FExportedFormData.java\">JSON payload example\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:17.000+00:00","2026-09-02T18:28:37.000+00:00","2026-09-01T21:57:38.000+00:00","Export completed PDF form values with Java for downstream data processing.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F#article\",\n      \"headline\": \"How to Export PDF Form Data with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:38.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:38.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Export completed PDF form values with Java for downstream data processing.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Export Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fexported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-form-data\"\n        }\n      ],\n      \"keywords\": \"Data, Export Form Data, Extract, Forms, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Export PDF Form Data with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-export-pdf-form-data-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3626,3627,3628,3629,3630,3631,3632],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1802,"name":1803,"slug":1804,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-export-pdf-form-data-with-java\u002F","Export PDF Form Data with Java | pdfRest",{"id":3637,"uuid":3638,"title":3639,"slug":3640,"html":3641,"comment_id":3637,"feature_image":48,"featured":284,"visibility":1257,"created_at":3642,"updated_at":3643,"published_at":3642,"custom_excerpt":3644,"codeinjection_head":3645,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3646,"primary_tag":3654,"url":3655,"excerpt":3644,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3656,"meta_description":3644,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec949533c9f26b9438fdd","6bb9e3dc-4064-4e4c-bf0a-3158e85e4f7f","How to Extract Images from PDF Files in .NET with C#","how-to-extract-images-from-pdf-files-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Images with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F'>Extract Images API Tool\u003C\u002Fa> is a powerful resource that allows developers to extract images from PDF files programmatically. This tutorial will guide you through the process of sending an API call to extract images using C#. By integrating this API into your C# application, you can automate the extraction of images from PDFs, making it easier to handle large volumes of documents or integrate this functionality into a larger document processing workflow.\u003C\u002Fp>\n\n\u003Cp>Extracting images from PDFs can be incredibly useful. For example, a company might receive numerous PDF reports containing graphs and charts that need to be analyzed separately. By using the Extract Images API, they can automate the extraction of these visual elements, allowing for more efficient data processing and analysis. This can save time and reduce the potential for errors compared to manual extraction.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Images with C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using System.Text;\n\nusing (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n{\n    using (var request = new HttpRequestMessage(HttpMethod.Post, \"extracted-images\"))\n    {\n        request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n        request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n        var multipartContent = new MultipartFormDataContent();\n\n        var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\n        var byteAryContent = new ByteArrayContent(byteArray);\n        multipartContent.Add(byteAryContent, \"file\", \"file_name\");\n        byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n        var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"1-last\"));\n        multipartContent.Add(byteArrayOption, \"pages\");\n\n        request.Content = multipartContent;\n        var response = await httpClient.SendAsync(request);\n\n        var apiResult = await response.Content.ReadAsStringAsync();\n\n        Console.WriteLine(\"API response received.\");\n        Console.WriteLine(apiResult);\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-images.cs\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by setting up an \u003Ccode>HttpClient\u003C\u002Fcode> with the base address of the pdfRest API:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>Next, an \u003Ccode>HttpRequestMessage\u003C\u002Fcode> is created to send a POST request to the \"extracted-images\" endpoint:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var request = new HttpRequestMessage(HttpMethod.Post, \"extracted-images\"))\n\u003C\u002Fpre>\n\n\u003Cp>The API key is added to the request headers for authentication:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n\u003C\u002Fpre>\n\n\u003Cp>The request is set to accept JSON responses:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n\u003C\u002Fpre>\n\n\u003Cp>A \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> is prepared to hold the PDF file and additional options. The file is read into a byte array and added to the content:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\nvar byteAryContent = new ByteArrayContent(byteArray);\nmultipartContent.Add(byteAryContent, \"file\", \"file_name\");\nbyteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\u003C\u002Fpre>\n\n\u003Cp>The \"pages\" parameter specifies which pages to extract images from, in this case, all pages from 1 to the last:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"1-last\"));\nmultipartContent.Add(byteArrayOption, \"pages\");\n\u003C\u002Fpre>\n\n\u003Cp>The request content is set, and the request is sent asynchronously. The response is read and printed to the console:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var response = await httpClient.SendAsync(request);\nvar apiResult = await response.Content.ReadAsStringAsync();\nConsole.WriteLine(\"API response received.\");\nConsole.WriteLine(apiResult);\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use C# to send a request to the pdfRest Extract Images API and handle the response. This allows you to automate the process of extracting images from PDF documents efficiently. To explore more functionalities, try out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-images.cs\">this GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:46:49.000+00:00","2026-09-02T18:28:38.000+00:00","Learn how to extract all images from PDFs with C# using pdfRest Extract Images API tool","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\",\n      \"datePublished\": \"2024-11-21T05:46:49.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:21.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract all images from PDFs with C# using pdfRest Extract Images API tool\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \".NET, Extract Images, JPG, PNG, TIFF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3647,3648,3649,3650,3651,3652,3653],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-in-net-with-c\u002F","How to Extract Images from PDF Files in .NET with C#, Tutorial | pdfRest",{"id":3658,"uuid":3659,"title":3660,"slug":3661,"html":3662,"comment_id":3658,"feature_image":48,"featured":284,"visibility":1257,"created_at":3663,"updated_at":3664,"published_at":3663,"custom_excerpt":3665,"codeinjection_head":3666,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3667,"primary_tag":3675,"url":3676,"excerpt":3665,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3677,"meta_description":3665,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec9b1533c9f26b9438ff1","d538bb87-4d80-472c-8cfe-aa0cd4c890d6","How to Extract Images from PDF Files with cURL","how-to-extract-images-from-pdf-files-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Images with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F'>Extract Images API Tool\u003C\u002Fa> is a powerful resource for developers and users who need to extract images from PDF documents efficiently. By leveraging this tool, you can automate the process of pulling images from PDFs, which can be particularly useful for batch processing or integrating into larger workflows. This tutorial will demonstrate how to send an API call using cURL to extract images from a PDF document.\u003C\u002Fp>\n\n\u003Cp>Imagine you are working for a company that receives numerous PDF reports daily, each containing valuable images that need to be archived separately. Instead of manually extracting each image, you can use the Extract Images API Tool to automate this task, saving time and reducing the potential for human error. This automation can streamline workflows and ensure that image assets are efficiently managed and stored.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Images with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-images\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"output=example_out\" \\\n  -F \"pages=1-last\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-images.sh\">GitHub - pdf-rest-api-samples\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the provided cURL command to understand each component:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-images\"\u003C\u002Fpre>\n\n\u003Cp>This line initiates a POST request to the Extract Images endpoint of the pdfRest API. The POST method is used here because we are sending data to the server to process.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the client expects the server to respond with JSON-formatted data. JSON is a lightweight data interchange format that is easy for humans to read and write.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fpre>\n\n\u003Cp>This header specifies that the request body will be sent as multipart\u002Fform-data. This is necessary when uploading files because it allows the file to be sent as binary data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\u003C\u002Fpre>\n\n\u003Cp>The API key is a unique identifier used to authenticate the request. You must replace the placeholder with your actual API key to authorize your request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\u003C\u002Fpre>\n\n\u003Cp>This form field specifies the file to be uploaded. The '@' symbol tells cURL to read the file from the specified path. Replace '\u002Fpath\u002Fto\u002Ffile' with the actual path to your PDF document.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"output=example_out\"\u003C\u002Fpre>\n\n\u003Cp>This form field sets the name of the output file. In this example, the extracted images will be saved with a prefix 'example_out'.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"pages=1-last\"\u003C\u002Fpre>\n\n\u003Cp>This field defines the range of pages from which images will be extracted. '1-last' means that images will be extracted from the first page to the last page of the PDF.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use cURL to make an API call to the pdfRest Extract Images endpoint. This process allows you to extract images from PDF files efficiently. To explore more functionalities, consider experimenting with all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For further details, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-images.sh\">GitHub - JSON Payload Examples\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:48:33.000+00:00","2026-09-02T18:28:39.000+00:00","Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\",\n      \"datePublished\": \"2024-11-21T05:48:33.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:21.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \"Extract Images, JPG, PNG, TIFF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3668,3669,3670,3671,3672,3673,3674],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-with-curl\u002F","How to Extract Images from PDF Files with cURL, Tutorial | pdfRest",{"id":3679,"uuid":3680,"title":3681,"slug":3682,"html":3683,"comment_id":3679,"feature_image":48,"featured":284,"visibility":1257,"created_at":3684,"updated_at":3685,"published_at":3684,"custom_excerpt":3686,"codeinjection_head":3687,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3688,"primary_tag":3696,"url":3697,"excerpt":3686,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3698,"meta_description":3686,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec9e3533c9f26b9438ffb","97e4c812-9856-4bee-a352-70e10cb2466a","How to Extract Images from PDF Files with Java","how-to-extract-images-from-pdf-files-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Extract Embedded Images from a PDF in Java\u003C\u002Fh2>\n\n\u003Cp>When an application needs the photographs, diagrams, logos, or other assets inside a PDF, rendering whole pages adds surrounding text and layout that the asset workflow does not need. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\">Extract Images API Tool\u003C\u002Fa> retrieves the embedded image objects themselves, preserving their native formats and properties whenever possible.\u003C\u002Fp>\n\n\u003Cp>That makes the output useful for digital asset management, publishing, content reuse, and visual-analysis pipelines without forcing every asset through an additional rendering or conversion process. Targeted page ranges and resource-ID input support both one-off uploads and multi-step document workflows.\u003C\u002Fp>\n\n\u003Cp>For example, a Java-based publishing system can extract figures from submitted technical papers and route them to an editorial review queue. Page-aware filenames help editors trace each figure back to the document location where it first appeared, while native-format extraction preserves the image for later print or digital use.\u003C\u002Fp>\n\n\u003Cp>This example uses OkHttp to upload a local PDF as multipart form data and \u003Ccode>org.json\u003C\u002Fcode> to format the response.\u003C\u002Fp>\n\u003Ch2>Java Extract Images Code Example\u003C\u002Fh2>\n\n\u003Cp>Add OkHttp, java-dotenv, and JSON-java to the project, then set \u003Ccode>PDFREST_API_KEY\u003C\u002Fcode> in the environment or a local \u003Ccode>.env\u003C\u002Fcode> file. Pass the PDF path as the first command-line argument or replace \u003Ccode>DEFAULT_FILE_PATH\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\n\npublic class ExtractedImages {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  private static final String PAGES = \"1-last\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"pages\", PAGES)\n            .addFormDataPart(\"output\", \"pdfrest_extracted_images\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fextracted-images\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FExtractedImages.java\">pdfRest Extract Images multipart Java sample\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp>If the source PDF already has a pdfRest resource ID, send a JSON payload instead of uploading it again as multipart data. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FExtractedImages.java\">Extract Images JSON-payload sample for Java\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Build the OkHttp Multipart Request\u003C\u002Fh2>\n\n\u003Cp>The sample creates a file request body with the \u003Ccode>application\u002Fpdf\u003C\u002Fcode> media type, then adds it to a \u003Ccode>MultipartBody\u003C\u002Fcode> under the \u003Ccode>file\u003C\u002Fcode> field. The \u003Ccode>pages\u003C\u002Fcode> value of \u003Ccode>1-last\u003C\u002Fcode> tells pdfRest to inspect the complete document. To limit processing, use individual pages and ranges such as \u003Ccode>1,2,5-10,12-last\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>output\u003C\u002Fcode> value establishes a base name for every extracted asset. pdfRest adds an image sequence and the source page number to each name, producing results such as \u003Ccode>pdfrest_extracted_images-img001-page002\u003C\u002Fcode>. Predictable naming helps downstream code associate an asset with its location in the document even when one request returns several files.\u003C\u002Fp>\n\n\u003Cp>The request reads the API key through \u003Ccode>Dotenv\u003C\u002Fcode> and posts to \u003Ccode>API_URL + \"\u002Fextracted-images\"\u003C\u002Fcode>. The default base URL uses the US Cloud API; the alternate constant shown in the code selects EU-based processing when required.\u003C\u002Fp>\n\n\u003Ch2>Process Results and Empty Responses\u003C\u002Fh2>\n\n\u003Cp>A successful extraction can return multiple output URLs and resource IDs. Parse these collections and handle each image rather than assuming a single output. Download URLs support retrieving the files, while resource IDs let another pdfRest operation use an image without an intermediate download and re-upload.\u003C\u002Fp>\n\n\u003Cp>Not every PDF contains extractable image objects. When none are found, pdfRest can return \u003Ccode>200 OK\u003C\u002Fcode> with a warning and empty \u003Ccode>outputUrl\u003C\u002Fcode> and \u003Ccode>outputId\u003C\u002Fcode> arrays. The application should distinguish this valid outcome from an error and decide whether no images is expected, reportable, or a reason to use a different operation such as rendering complete pages.\u003C\u002Fp>\n\n\u003Ch2>Strengthen Response Handling for Production\u003C\u002Fh2>\n\n\u003Cp>The example sets a 60-second read timeout and prints the status code and formatted response body. Production Java code should also verify \u003Ccode>response.isSuccessful()\u003C\u002Fcode>, parse the expected fields only after a successful status, and handle network failures separately from API validation errors. Use try-with-resources around the OkHttp \u003Ccode>Response\u003C\u002Fcode> so its body is always closed, especially in a service that processes many requests.\u003C\u002Fp>\n\n\u003Cp>Keep the API key out of source control and prevent sensitive document data from entering application logs. Apply the application's input-path and file policies before constructing the request, then use the returned collections to handle varied image formats and output counts consistently.\u003C\u002Fp>\n\n\u003Cp>You can generate requests in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and review the current request and response schema in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\">Extract Images API reference\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:49:23.000+00:00","2026-09-22T19:02:57.000+00:00","Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with Java","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\",\n      \"datePublished\": \"2024-11-21T05:49:23.000Z\",\n      \"dateModified\": \"2026-09-22T00:00:00.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with Java\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \"Extract Images, JPG, Java, PNG, TIFF\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3689,3690,3691,3692,3693,3694,3695],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-with-java\u002F","How to Extract Images from PDF Files with Java, Tutorial | pdfRest",{"id":3700,"uuid":3701,"title":3702,"slug":3703,"html":3704,"comment_id":3700,"feature_image":48,"featured":284,"visibility":1257,"created_at":3705,"updated_at":3706,"published_at":3705,"custom_excerpt":3707,"codeinjection_head":3708,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3709,"primary_tag":3717,"url":3718,"excerpt":3707,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3719,"meta_description":3707,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec98e533c9f26b9438fe7","92cde534-b851-431a-9bab-6ace0e326b57","How to Extract Images from PDF Files with JavaScript in NodeJS","how-to-extract-images-from-pdf-files-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Extract Embedded PDF Images with Node.js\u003C\u002Fh2>\n\n\u003Cp>A PDF can contain photographs, logos, diagrams, screenshots, and other image assets that need to be reused or analyzed separately from the document. Rendering each PDF page as a new image is not the same operation: page rendering creates a picture of the entire page, while the pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\">Extract Images API Tool\u003C\u002Fa> retrieves the images embedded inside the PDF.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>\u002Fextracted-images\u003C\u002Fcode> endpoint preserves the native image format and original image properties whenever possible, including common JPEG, PNG, and TIFF assets. This avoids an unnecessary conversion step and helps retain resolution, color accuracy, and compression properties for digital asset management, content repurposing, publishing, or image-analysis workflows.\u003C\u002Fp>\n\n\u003Cp>For example, a Node.js product-ingestion service can receive a supplier's PDF catalog, extract the embedded product photographs, and associate the returned files with catalog records. The service can associate each returned native image with its catalog record without manually opening the PDF or rendering every page into a new bitmap.\u003C\u002Fp>\n\n\u003Cp>This Node.js example streams a local PDF into a multipart request with Axios and FormData, processes all pages, and prints the JSON response.\u003C\u002Fp>\n\u003Ch2>JavaScript Extract Images Code Example\u003C\u002Fh2>\n\n\u003Cp>Install \u003Ccode>axios\u003C\u002Fcode> and \u003Ccode>form-data\u003C\u002Fcode>, then replace the PDF path and API-key placeholders. The built-in \u003Ccode>fs\u003C\u002Fcode> module supplies a readable stream, so the application does not have to load the complete PDF into memory before sending it.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F This request demonstrates how to extract embedded images from a PDF.\nvar axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\nvar apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002Fvar apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\ndata.append('pages', '1-last');\ndata.append('output', 'pdfrest_extracted_images');\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: 'post',\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: apiUrl + '\u002Fextracted-images',\n  headers: {\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', \u002F\u002F Replace with your API key\n    ...data.getHeaders() \u002F\u002F set headers for the request\n  },\n  data : data \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error);\n});\n\n\u002F\u002F If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.js' sample.\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-images.js\">pdfRest Extract Images multipart JavaScript sample\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp>If the source PDF already has a pdfRest resource ID, send a JSON payload instead of uploading it again as multipart data. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-images.js\">Extract Images JSON-payload sample for JavaScript\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Select the PDF Pages to Process\u003C\u002Fh2>\n\n\u003Cp>The \u003Ccode>pages\u003C\u002Fcode> field determines where pdfRest looks for embedded images. The sample uses \u003Ccode>1-last\u003C\u002Fcode> to process the entire PDF. Applications can target only the relevant pages with individual numbers, ranges, or a combination such as \u003Ccode>1,2,5-10,12-last\u003C\u002Fcode>. Limiting the request is useful when a long document contains appendices or other sections that do not need image extraction.\u003C\u002Fp>\n\n\u003Cp>The optional \u003Ccode>output\u003C\u002Fcode> field supplies the base name for the extracted files. pdfRest appends image and page numbers so each result remains distinct. For example, an output value of \u003Ccode>test\u003C\u002Fcode> produces names such as \u003Ccode>test-img001-page002\u003C\u002Fcode>. Including both values makes it easier to connect each extracted asset with the page where it first appeared.\u003C\u002Fp>\n\n\u003Ch2>Work with Multiple Output Files\u003C\u002Fh2>\n\n\u003Cp>One PDF can produce many extracted images, so the success response uses output collections rather than a single file value. Iterate over the available output URLs or resource IDs, then route each asset to the next application step. Resource IDs can continue through compatible pdfRest operations without intermediate transfers, while output URLs support storage in the application's own asset repository.\u003C\u002Fp>\n\n\u003Cp>A PDF may also contain no embedded images. In that case, the endpoint can return \u003Ccode>200 OK\u003C\u002Fcode> with a warning and empty \u003Ccode>outputUrl\u003C\u002Fcode> and \u003Ccode>outputId\u003C\u002Fcode> arrays. Treat that as a valid no-results outcome rather than assuming every successful HTTP response contains at least one file.\u003C\u002Fp>\n\u003Ch2>Make the Axios Request Production-Ready\u003C\u002Fh2>\n\n\u003Cp>\u003Ccode>data.getHeaders()\u003C\u002Fcode> supplies the correct multipart \u003Ccode>Content-Type\u003C\u002Fcode> value and boundary. The sample adds the API key and sets \u003Ccode>maxBodyLength\u003C\u002Fcode> to \u003Ccode>Infinity\u003C\u002Fcode> so Axios does not reject the upload based on its client-side body limit. Keep the API key in an environment variable or secret manager rather than source code.\u003C\u002Fp>\n\n\u003Cp>The example logs either the response or the error. In an application, set an appropriate timeout, distinguish HTTP errors from connection failures, and avoid logging document content or credentials. Apply the application's file-type and size policies before submission, then use the returned collection to route every extracted asset into the next workflow step.\u003C\u002Fp>\n\n\u003Cp>Use the configurable base URL to select the US or EU Cloud API. You can try different page ranges in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and review the current parameters and response schema in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\">Extract Images API reference\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:47:58.000+00:00","2026-09-22T19:02:56.000+00:00","Learn how to extract all images from PDFs with pdfRest Extract Images API tool using JavaScript","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2024-11-21T05:47:58.000Z\",\n      \"dateModified\": \"2026-09-22T00:00:00.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract all images from PDFs with pdfRest Extract Images API tool using JavaScript\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \"Extract Images, JPG, JavaScript, PNG, TIFF\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3710,3711,3712,3713,3714,3715,3716],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-with-javascript-in-nodejs\u002F","How to Extract Images from PDF Files with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3721,"uuid":3722,"title":3723,"slug":3724,"html":3725,"comment_id":3721,"feature_image":48,"featured":284,"visibility":1257,"created_at":3726,"updated_at":3727,"published_at":3726,"custom_excerpt":3728,"codeinjection_head":3729,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3730,"primary_tag":3738,"url":3739,"excerpt":3728,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3740,"meta_description":3728,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec913533c9f26b9438fd3","bd357f09-625e-43df-a67d-6725f3c6d4c8","How to Extract Images from PDF Files with PHP","how-to-extract-images-from-pdf-files-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Extract PDF Images with PHP and Guzzle\u003C\u002Fh2>\n\n\u003Cp>PDFs often package photographs, illustrations, charts, logos, and scanned content inside a larger document. When an application needs those assets independently, rendering each complete page creates extra content and can change the asset's characteristics. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\">Extract Images API Tool\u003C\u002Fa> retrieves the embedded image objects directly from the PDF.\u003C\u002Fp>\n\n\u003Cp>Extracted assets retain native formats and properties whenever possible, including common JPEG, PNG, and TIFF images. PHP applications can use that output to populate a digital asset system, repurpose publication graphics, or pass visual data to another workflow without building and maintaining a local PDF image parser.\u003C\u002Fp>\n\n\u003Cp>For example, a PHP content-management portal can accept a press kit as a PDF, extract its embedded logos and photographs, and make those assets available to an editor for selection. Automating that step reduces repetitive file handling and keeps the PDF and its extracted assets connected within the same intake workflow.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>\u002Fextracted-images\u003C\u002Fcode> example uses Guzzle to send a PDF and parameters as multipart form data. The response identifies every extracted output so the application can retrieve or reuse the files.\u003C\u002Fp>\n\u003Ch2>PHP Extract Images Code Example\u003C\u002Fh2>\n\n\u003Cp>Install Guzzle with Composer, load Composer's autoloader, and replace the file path and API-key placeholders. The corrected example identifies the uploaded file as \u003Ccode>application\u002Fpdf\u003C\u002Fcode> and uses valid PHP array syntax.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n$apiUrl = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n\u002F* For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n * For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\u002F\n\u002F\u002F$apiUrl = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n$client = new Client();\n$filePath = '\u002Fpath\u002Fto\u002Ffile.pdf';\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen($filePath, 'r'),\n      'filename' => basename($filePath),\n      'headers' => [\n        'Content-Type' => 'application\u002Fpdf'\n      ]\n    ],\n    [\n      'name' => 'pages',\n      'contents' => '1-last'\n    ],\n    [\n      'name' => 'output',\n      'contents' => 'pdfrest_extracted_images'\n    ]\n  ]\n];\n\n$request = new Request('POST', $apiUrl . '\u002Fextracted-images', $headers);\n$response = $client->sendAsync($request, $options)->wait();\n\necho $response->getBody();\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-images.php\">pdfRest Extract Images multipart PHP sample\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp>If the source PDF already has a pdfRest resource ID, send a JSON payload instead of uploading it again as multipart data. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-images.php\">Extract Images JSON-payload sample for PHP\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Configure the Multipart Fields\u003C\u002Fh2>\n\n\u003Cp>Guzzle's \u003Ccode>multipart\u003C\u002Fcode> option accepts an array of form parts. The \u003Ccode>file\u003C\u002Fcode> part opens the local PDF as a stream, supplies a filename, and declares its media type. Streaming is more suitable than reading the complete file into a PHP string when input sizes vary.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>pages\u003C\u002Fcode> part controls which pages pdfRest examines. The sample uses \u003Ccode>1-last\u003C\u002Fcode> for the entire document, but applications can combine individual pages and ranges, such as \u003Ccode>1,2,5-10,12-last\u003C\u002Fcode>. The \u003Ccode>output\u003C\u002Fcode> part supplies a base name. pdfRest appends an image sequence and the page where the asset first appeared, producing names such as \u003Ccode>pdfrest_extracted_images-img001-page002\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cp>The request posts to \u003Ccode>$apiUrl . '\u002Fextracted-images'\u003C\u002Fcode>. The sample defaults to the US Cloud API and includes the EU base URL as a configuration option. Keep both the base URL and API key in environment-specific configuration so credentials and data-residency choices do not have to be edited in application code.\u003C\u002Fp>\n\n\u003Ch2>Handle Every Extracted Image\u003C\u002Fh2>\n\n\u003Cp>An extraction request can return more than one image, so parse the output URL and resource ID collections rather than reading only the first value. Download URLs can be used to store the files in your own system. Resource IDs can be passed directly to another pdfRest API Tool, eliminating unnecessary transfer of intermediate files within a multi-step workflow.\u003C\u002Fp>\n\n\u003Cp>If the PDF contains no embedded images, the endpoint can still return \u003Ccode>200 OK\u003C\u002Fcode> with a warning and empty \u003Ccode>outputUrl\u003C\u002Fcode> and \u003Ccode>outputId\u003C\u002Fcode> arrays. Handle this as a no-results condition. If the requirement is to create an image of every complete page rather than retrieve embedded assets, use the PDF to Images tool instead.\u003C\u002Fp>\n\n\u003Ch2>Add Production Error Handling\u003C\u002Fh2>\n\n\u003Cp>The sample uses \u003Ccode>sendAsync(...)->wait()\u003C\u002Fcode> and prints the response body. In a production application, catch Guzzle request and connection exceptions, inspect the HTTP status, and validate the JSON structure before using the output fields. Set timeouts appropriate to the application's file sizes and processing expectations. Avoid echoing sensitive response content into public pages or shared logs.\u003C\u002Fp>\n\n\u003Cp>Store the API key in an environment variable or secret manager, validate the source path before calling \u003Ccode>Utils::tryFopen\u003C\u002Fcode>, and close or release resources according to the surrounding application framework. The response collections support varied image formats, page ranges, and valid no-image outcomes, giving large batch workflows one consistent handling pattern.\u003C\u002Fp>\n\n\u003Cp>Use \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> to try the endpoint without writing code, and consult the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\">Extract Images API reference\u003C\u002Fa> for the current parameters and response fields.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:45:55.000+00:00","2026-09-22T19:02:58.000+00:00","Learn how to extract all images from PDFs with pdfRest Extract Images API tool using PHP","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\",\n      \"datePublished\": \"2024-11-21T05:45:55.000Z\",\n      \"dateModified\": \"2026-09-22T00:00:00.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract all images from PDFs with pdfRest Extract Images API tool using PHP\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \"Extract Images, JPG, PHP, PNG, TIFF\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3731,3732,3733,3734,3735,3736,3737],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-with-php\u002F","How to Extract Images from PDF Files with PHP, Tutorial | pdfRest",{"id":3742,"uuid":3743,"title":3744,"slug":3745,"html":3746,"comment_id":3742,"feature_image":48,"featured":284,"visibility":1257,"created_at":3747,"updated_at":3748,"published_at":3747,"custom_excerpt":3749,"codeinjection_head":3750,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3751,"primary_tag":3759,"url":3760,"excerpt":3749,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3761,"meta_description":3749,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"673ec8f1533c9f26b9438fc9","78e1cb2f-7518-42d5-bc43-e8a3ad816a75","How to Extract Images from PDF Files with Python","how-to-extract-images-from-pdf-files-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Images with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F'>Extract Images API Tool\u003C\u002Fa> is a powerful resource for developers who need to extract images from PDF documents programmatically. By leveraging this tool, users can automate the process of extracting images from PDFs, which can be particularly useful in scenarios where manual extraction would be too time-consuming or cumbersome. This tutorial will guide you through the process of making an API call to extract images using Python.\u003C\u002Fp>\n\n\u003Cp>Imagine you are working for a digital marketing agency that frequently receives PDF reports from clients. These reports often contain valuable images that need to be used in presentations or social media posts. Instead of manually extracting each image, you can use the pdfRest Extract Images API to automate this process, saving time and reducing the risk of errors.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Images with Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\nextracted_images_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-images'\n\n# The \u002Fextracted-images endpoint can take a single PDF file or id as input.\n# This sample demonstrates image extraction from all pages of a document.\nmp_encoder_extractedImages = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'output' : 'example_extractedImages_out',\n        'pages': '1-last',\n    }\n)\n\n# Let's set the headers that the extracted-images endpoint expects.\n# Since MultipartEncoder is used, the 'Content-Type' header gets set to 'multipart\u002Fform-data' via the content_type attribute below.\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_extractedImages.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to extracted-images endpoint...\")\nresponse = requests.post(extracted_images_endpoint_url, data=mp_encoder_extractedImages, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\n# If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.py' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-images.py\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided code begins by importing necessary libraries: \u003Ccode>requests_toolbelt\u003C\u002Fcode> for handling multipart form data, \u003Ccode>requests\u003C\u002Fcode> for making HTTP requests, and \u003Ccode>json\u003C\u002Fcode> for handling JSON data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">extracted_images_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-images'\n\u003C\u002Fpre>\n\n\u003Cp>This line sets the endpoint URL for the Extract Images API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">mp_encoder_extractedImages = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'output' : 'example_extractedImages_out',\n        'pages': '1-last',\n    }\n)\n\u003C\u002Fpre>\n\n\u003Cp>This snippet creates a \u003Ccode>MultipartEncoder\u003C\u002Fcode> object, which is used to encode the fields for the multipart form data. The fields include:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>file\u003C\u002Fcode>: The PDF file to be processed. It is opened in binary read mode.\u003C\u002Fli>\n\u003Cli>\u003Ccode>output\u003C\u002Fcode>: The desired name for the output file.\u003C\u002Fli>\n\u003Cli>\u003Ccode>pages\u003C\u002Fcode>: Specifies the range of pages to extract images from, here set to '1-last' to extract from all pages.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_extractedImages.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>headers\u003C\u002Fcode> dictionary includes:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>Accept\u003C\u002Fcode>: Specifies that the client expects a JSON response.\u003C\u002Fli>\n\u003Cli>\u003Ccode>Content-Type\u003C\u002Fcode>: Set automatically by \u003Ccode>MultipartEncoder\u003C\u002Fcode> to 'multipart\u002Fform-data'.\u003C\u002Fli>\n\u003Cli>\u003Ccode>Api-Key\u003C\u002Fcode>: A placeholder for your API key, which authenticates your request.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cpre class=\"language-python\">response = requests.post(extracted_images_endpoint_url, data=mp_encoder_extractedImages, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This line sends a POST request to the API endpoint with the encoded data and headers. The response is stored in the \u003Ccode>response\u003C\u002Fcode> variable.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">if response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>If the response is successful, the JSON response is printed in a formatted manner. Otherwise, the error message is printed.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to extract images from a PDF document using the pdfRest Extract Images API with Python. This process can be a great time-saver when dealing with multiple PDFs or large documents. To explore more functionalities, consider trying out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each API endpoint, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-images.py\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-21T05:45:21.000+00:00","2026-09-02T18:28:41.000+00:00","Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with Python","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F#article\",\n      \"headline\": \"How to Extract Images from PDF Files with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\",\n      \"datePublished\": \"2024-11-21T05:45:21.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:21.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Extract Images API tool to extract all images from PDFs with Python\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Images API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-images\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-images API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-images\"\n        }\n      ],\n      \"keywords\": \"Extract Images, JPG, PNG, Python, TIFF\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Images from PDF Files with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3752,3753,3754,3755,3756,3757,3758],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1496,"name":1497,"slug":1498,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1546,"name":1547,"slug":1548,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1542,"name":1543,"slug":1544,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1554,"name":1555,"slug":1556,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-images-from-pdf-files-with-python\u002F","How to Extract Images from PDF Files with Python, Tutorial | pdfRest",{"id":3763,"uuid":3764,"title":3765,"slug":3766,"html":3767,"comment_id":3763,"feature_image":48,"featured":284,"visibility":1257,"created_at":3768,"updated_at":3748,"published_at":3768,"custom_excerpt":3769,"codeinjection_head":3770,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3771,"primary_tag":3778,"url":3779,"excerpt":3769,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3780,"meta_description":3769,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65cce86a533c9f26b943637a","1478b362-7285-452b-811f-ffe252091c4c","How to Extract Pages from PDF Files in .NET with C#","how-to-extract-pages-from-pdf-files-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Pages with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF API Tool\u003C\u002Fa> is a powerful resource for developers who need to programmatically extract pages from PDF documents. This API provides a simple way to extract specific pages from a PDF and create new documents from those pages.\u003C\u002Fp>\n\u003Cp>Imagine a lengthy legal contract where different departments need specific clauses.  Extracting pages to new documents lets you create separate PDFs containing only the relevant sections for each team, streamlining internal communication and reducing unnecessary document sharing.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Pages with C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using System.Text;\n\nusing (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n{\n    using (var request = new HttpRequestMessage(HttpMethod.Post, \"split-pdf\"))\n    {\n        request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n        request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n        var multipartContent = new MultipartFormDataContent();\n\n        var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile_name.pdf\");\n        var byteAryContent = new ByteArrayContent(byteArray);\n        multipartContent.Add(byteAryContent, \"file\", \"file_name.pdf\");\n        byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n        var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"1\"));\n        multipartContent.Add(byteArrayOption, \"pages[]\");\n\n        var byteArrayOption2 = new ByteArrayContent(Encoding.UTF8.GetBytes(\"2-last\"));\n        multipartContent.Add(byteArrayOption2, \"pages[]\");\n\n        var byteArrayOption3 = new ByteArrayContent(Encoding.UTF8.GetBytes(\"split\"));\n        multipartContent.Add(byteArrayOption3, \"output\");\n\n        request.Content = multipartContent;\n        var response = await httpClient.SendAsync(request);\n\n        var apiResult = await response.Content.ReadAsStringAsync();\n\n        Console.WriteLine(\"API response received.\");\n        Console.WriteLine(apiResult);\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fsplit-pdf.cs\">pdf-rest-api-samples on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided code demonstrates how to make an API call to the pdfRest Split PDF endpoint using C#. Let's break down each part of the code:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>This creates an instance of \u003Ccode>HttpClient\u003C\u002Fcode> with the base address set to the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var request = new HttpRequestMessage(HttpMethod.Post, \"split-pdf\"))\n\u003C\u002Fpre>\n\n\u003Cp>A new \u003Ccode>HttpRequestMessage\u003C\u002Fcode> is created for making a POST request to the \"split-pdf\" endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n\u003C\u002Fpre>\n\n\u003Cp>The API key is added to the request headers. You must replace the placeholder with your actual pdfRest API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var multipartContent = new MultipartFormDataContent();\n\u003C\u002Fpre>\n\n\u003Cp>This initializes a new multipart\u002Fform-data content to send files and data in the request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile_name.pdf\");\n\u003C\u002Fpre>\n\n\u003Cp>Reads the PDF file from the specified path and converts it into a byte array.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">multipartContent.Add(byteAryContent, \"file\", \"file_name.pdf\");\n\u003C\u002Fpre>\n\n\u003Cp>Adds the PDF content to the multipart form data with the key \"file\". The \"file_name.pdf\" should be the name of the PDF file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"1\"));\nmultipartContent.Add(byteArrayOption, \"pages[]\");\n\u003C\u002Fpre>\n\n\u003Cp>Adds the page range \"1\" to the request, indicating that the first page should be split into a separate PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption2 = new ByteArrayContent(Encoding.UTF8.GetBytes(\"2-last\"));\nmultipartContent.Add(byteArrayOption2, \"pages[]\");\n\u003C\u002Fpre>\n\n\u003Cp>Adds the page range \"2-last\" to the request, indicating that all pages from the second to the last should be split into another separate PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption3 = new ByteArrayContent(Encoding.UTF8.GetBytes(\"split\"));\nmultipartContent.Add(byteArrayOption3, \"output\");\n\u003C\u002Fpre>\n\n\u003Cp>Specifies the output format, in this case, \"split\" which indicates that the output should be separate PDF files.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var response = await httpClient.SendAsync(request);\n\u003C\u002Fpre>\n\n\u003Cp>Sends the request to the pdfRest API and awaits the response.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var apiResult = await response.Content.ReadAsStringAsync();\n\u003C\u002Fpre>\n\n\u003Cp>Reads the response content as a string, which contains the result of the split operation.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>By following the steps above, you have learned how to extract pages from a PDF using the pdfRest Split PDF API with C#. You can now apply this knowledge to automate document processing tasks within your applications. To explore more capabilities and demo all of the pdfRest API Tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For further details on the API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fsplit-pdf.cs\">GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-02-14T16:20:58.000+00:00","Learn how to extract certain pages from a PDF when calling the Split PDF API Tool in .NET, part of the pdfRest Cloud API Toolkit.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\",\n      \"datePublished\": \"2024-02-14T16:20:58.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:47.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract certain pages from a PDF when calling the Split PDF API Tool in .NET, part of the pdfRest Cloud API Toolkit.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Extract, Pages, Split PDF\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3772,3773,3774,3775,3776,3777],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-in-net-with-c\u002F","How to Extract Pages from PDF Files in .NET with C#, Tutorial | pdfRest",{"id":3782,"uuid":3783,"title":3784,"slug":3785,"html":3786,"comment_id":3782,"feature_image":48,"featured":284,"visibility":1257,"created_at":3787,"updated_at":3748,"published_at":3787,"custom_excerpt":3788,"codeinjection_head":3789,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3790,"primary_tag":3797,"url":3798,"excerpt":3788,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3799,"meta_description":3788,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66184359533c9f26b94370d6","a4739196-be67-4d98-9260-eacfe382cde4","How to Extract Pages from PDF Files with cURL","how-to-extract-pages-from-pdf-files-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Pages with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF API Tool\u003C\u002Fa> is a powerful resource for developers who need to programmatically extract PDF pages into separate documents. This tool can be accessed via an API, allowing for automation and integration into various workflows. This tutorial will show how to send an API call to Split PDF with cURL, a command-line tool used for transferring data with URLs. cURL is a popular choice for interacting with APIs due to its flexibility and wide support across different platforms.\u003C\u002Fp>\n\n\u003Cp>A user might need to extract PDF pages when dealing with large documents that need to be distributed in smaller sections. For instance, a user might have a PDF containing multiple invoices or reports that they want to separate into individual files for each client or department. Using the Split PDF API, this can be done programmatically, saving time and reducing the potential for human error that comes with manual page extraction\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Pages with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>Source of the provided code: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fsplit-pdf.sh\">pdf-rest-api-samples on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The above cURL command is used to split a PDF document by making a POST request to the pdfRest API. Let's break down each part of the command:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-X POST\n\u003C\u002Fpre>\n\n\u003Cp>This specifies the request method, which in this case is POST, indicating that you are creating or updating resources on the server.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">\"https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf\"\n\u003C\u002Fpre>\n\n\u003Cp>This is the endpoint URL to which the request is sent. It is specific to the Split PDF functionality of the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\n\u003C\u002Fpre>\n\n\u003Cp>This header tells the server that the client expects a response in JSON format.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\n\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the request body contains form data, allowing you to send files as part of the request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n\u003C\u002Fpre>\n\n\u003Cp>This header includes your API key, which is required for authentication with the pdfRest API. Replace the placeholder with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\n\u003C\u002Fpre>\n\n\u003Cp>The '-F' flag is used to specify each field to be sent as part of the multipart\u002Fform-data. In this case, it specifies the file to be uploaded. The '@' symbol is followed by the file path of the PDF you want to split.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>This is another field in the form data. It specifies the prefix for the output files that will be generated after the split operation.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>By following the steps outlined in this tutorial, you have learned how to make a multipart API call to split a PDF document using cURL. This is just one of the many features offered by the pdfRest API. To explore and demo all of the pdfRest API Tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For a comprehensive guide on how to use the API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads for the Split PDF API can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fsplit-pdf.sh\">pdf-rest-api-samples on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-04-11T20:08:57.000+00:00","Learn how to use pdfRest Split PDF API Tool to extract pages from PDF files with cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\",\n      \"datePublished\": \"2024-04-11T20:08:57.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:33.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Split PDF API Tool to extract pages from PDF files with cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \"Extract, Pages, Split PDF, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3791,3792,3793,3794,3795,3796],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-with-curl\u002F","How to Extract Pages from PDF Files with cURL, Tutorial | pdfRest",{"id":3801,"uuid":3802,"title":3803,"slug":3804,"html":3805,"comment_id":3801,"feature_image":48,"featured":284,"visibility":1257,"created_at":3620,"updated_at":3806,"published_at":3622,"custom_excerpt":3807,"codeinjection_head":3808,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3809,"primary_tag":3816,"url":3817,"excerpt":3807,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3818,"meta_description":3807,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c5d533c9f26b943b554","09ff09eb-6788-4c96-a6bb-851864d3c118","How to Extract Pages from PDF Files with Java","how-to-extract-pages-from-pdf-files-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>In this tutorial, we'll walk through how to extract pages from PDF files with Java using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\">Split PDF API Tool\u003C\u002Fa>. The request expresses the desired pages as a Split PDF range and produces a new PDF containing only that selection. You'll see how the request is assembled and how to work with the response returned when you extract pages from PDF files.\u003C\u002Fp>\n\n\u003Ch2>Why Extract Pages from PDF Files with Java?\u003C\u002Fh2>\n\n\u003Cp>A case packet may contain many sections while a reviewer needs only the signed agreement and supporting schedule. Page-range extraction produces a smaller PDF without exposing unrelated pages.\u003C\u002Fp>\n\n\u003Cp>The tutorial adapts Split PDF by sending the desired range in \u003Ccode>pages[]\u003C\u002Fcode>. Each range defines an output document, so multiple values can create several extracts in one request.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class ExtractPagesFromPDF {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"pages[]\", \"2-4\")\n            .addFormDataPart(\"output\", \"pdfrest_extracted_pages\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fsplit-pdf\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FSplitPDF.java\">Java sample on GitHub\u003C\u002Fa>. For this tutorial, the general Java source has been tailored to the Extract Pages from PDF input or task.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The import block assigns a clear role to each library: HTTP communication, credential lookup, or JSON handling.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\u003C\u002Fpre>\n\n\u003Cp>The constants section keeps a visible default path, accepts an override from the command line, and reads the API key through dotenv.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"pages[]\", \"2-4\")\n            .addFormDataPart(\"output\", \"pdfrest_extracted_pages\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fsplit-pdf\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\u003C\u002Fpre>\n\n\u003Cp>The tutorial adapts Split PDF by sending the desired range in \u003Ccode>pages[]\u003C\u002Fcode>. Each range defines an output document, so multiple values can create several extracts in one request. This payload builder packages fields and files together without hard-coding a \u003Ccode>Content-Type\u003C\u002Fcode> boundary.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fsplit-pdf\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\u003C\u002Fpre>\n\n\u003Cp>The outbound call reads the credential through dotenv and targets the endpoint shown in the source, with the EU hostname documented beside the default US value.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>The returned-data block checks the server result before treating the body as output and exposes diagnostic JSON when the operation cannot be completed.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we walked through how to extract pages from PDF files with Java. With that foundation, you can use page extraction for document packets, evidence subsets, chapter exports, and customer-specific deliverables.\u003C\u002Fp>\n\n\u003Cp>As you adapt this example for production, keep in mind that multiple range values can produce several output documents, which is useful when one packet must be separated by recipient or section. Validate ranges against the current page count and retain the source until every expected extract has been created successfully.\u003C\u002Fp>\n\n\u003Cp>To continue exploring the Extract Pages from PDF operation, visit \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For complete request fields, defaults, and limitations, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\u002F\">Split PDF API Tool documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: The Extract Pages from PDF example above uses multipart form data; when a prior API call returned the input ID, follow the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FSplitPDF.java\">JSON payload example\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-02T18:28:42.000+00:00","Extract selected page ranges from a PDF with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:38.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:38.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Extract selected page ranges from a PDF with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \"Extract, Java, Pages, Split PDF\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3810,3811,3812,3813,3814,3815],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-with-java\u002F","Extract Pages from PDF Files with Java | pdfRest",{"id":3820,"uuid":3821,"title":3822,"slug":3823,"html":3824,"comment_id":3820,"feature_image":48,"featured":284,"visibility":1257,"created_at":3825,"updated_at":3806,"published_at":3825,"custom_excerpt":3826,"codeinjection_head":3827,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3828,"primary_tag":3835,"url":3836,"excerpt":3826,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3837,"meta_description":3826,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65cb9385533c9f26b94362ea","dad80efb-129e-49fe-aa61-19552471d9ba","How to Extract Pages from PDF Files with JavaScript in NodeJS","how-to-extract-pages-from-pdf-files-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Pages with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF API Tool\u003C\u002Fa> is a powerful utility for developers who need to programmatically extract PDF pages into separate files. This tutorial will guide you through the process of extracting pages by sending an API call to the Split PDF endpoint using JavaScript. \u003C\u002Fp>\u003Cp>For instance, a user might want to split a PDF report into individual chapters, or extract only certain pages from a large document for targeted distribution.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Pages with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F**\n * This request demonstrates how to extract pages from a PDF document into three files by specifying the pages that will be included in each.\n * pages[] is an optional parameter that accepts page numbers and\u002For ranges separated by commas. In addition, pages[] supports several keywords: even, odd, and last.\n *\u002F\nvar axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile.pdf'));\ndata.append('pages[]', 'even');\ndata.append('pages[]', 'odd');\ndata.append('pages[]', '1,3,4-6');\ndata.append('output', 'pdfrest_split_pdf');\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: 'post',\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', \u002F\u002F Replace with your API key\n    ...data.getHeaders() \u002F\u002F set headers for the request\n  },\n  data : data \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\n\u002F\u002F If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.js' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fsplit-pdf.js\">pdf-rest-api-samples on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>This JavaScript code snippet uses the Axios library for HTTP requests and the FormData library to create multipart\u002Fform-data payloads. Here's how each part of the code works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\u003C\u002Fpre>\n\n\u003Cp>This section imports the required modules for making HTTP requests, handling form data, and interacting with the file system.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile.pdf'));\ndata.append('pages[]', 'even');\ndata.append('pages[]', 'odd');\ndata.append('pages[]', '1,3,4-6');\ndata.append('output', 'pdfrest_split_pdf');\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new FormData instance is created, and the PDF file along with the split parameters are appended to it. The 'pages[]' parameter specifies the pages to include in each split file, and 'output' names the resulting files.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: 'post',\n  maxBodyLength: Infinity,\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',\n    ...data.getHeaders()\n  },\n  data : data\n};\n\u003C\u002Fpre>\n\n\u003Cp>The Axios request configuration is set up, including the HTTP method, endpoint URL, headers (including the API key), and the data payload.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\u003C\u002Fpre>\n\n\u003Cp>The Axios library sends the HTTP request with the provided configuration. The response is logged to the console on success, and any errors are caught and logged.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we've learned how to use JavaScript to call the pdfRest Split PDF API to extract pages from a PDF into separate files. You can now apply this knowledge to split PDFs in your own applications. To experiment with all of the pdfRest API Tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa> for more information.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fsplit-pdf.js\">pdf-rest-api-samples with JSON Payload\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-02-13T16:06:29.000+00:00","Learn how to Extract Pages from PDF Files with JavaScript in NodeJS by calling Split PDF API Tool by pdfRest.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2024-02-13T16:06:29.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:49.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to Extract Pages from PDF Files with JavaScript in NodeJS by calling Split PDF API Tool by pdfRest.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \"Extract, JavaScript, Pages, Split PDF\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3829,3830,3831,3832,3833,3834],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-with-javascript-in-nodejs\u002F","How to Extract Pages from PDF Files with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3839,"uuid":3840,"title":3841,"slug":3842,"html":3843,"comment_id":3839,"feature_image":48,"featured":284,"visibility":1257,"created_at":3844,"updated_at":3845,"published_at":3844,"custom_excerpt":3846,"codeinjection_head":3847,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3848,"primary_tag":3855,"url":3856,"excerpt":3846,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3857,"meta_description":3846,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65cbf657533c9f26b9436350","617186bb-0535-4076-ba57-b18f14db2319","How to Extract Pages from PDF Files with PHP","how-to-extract-pages-from-pdf-files-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Pages with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF API Tool\u003C\u002Fa> is a powerful resource for developers looking to programmatically extract PDF pages into separate documents. Whether you need to extract specific pages for reporting, distribute parts of a document to different team members, or simply organize large PDFs into manageable sections, the Split PDF API provides a straightforward solution.\u003C\u002Fp> \u003Cp>This tutorial will guide you through making an API call to the Split PDF tool using PHP, a popular server-side scripting language.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Pages with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">\nrequire 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\nuse GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\n$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\n$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'pages[]', \u002F\u002F Specify the field name for the pages option as an array.\n      'contents' => 'even' \u002F\u002F Set the value for the pages option to 'even'.\n    ],\n    [\n      'name' => 'pages[]', \u002F\u002F Specify the field name for the pages option as an array.\n      'contents' => 'odd' \u002F\u002F Set the value for the pages option to 'odd'.\n    ],\n    [\n      'name' => 'pages[]', \u002F\u002F Specify the field name for the pages option as an array.\n      'contents' => '1,3,4-6' \u002F\u002F Set the value for the pages option to '1,3,4-6' (a combination of specific pages and page ranges).\n    ],\n    [\n      'name' => 'output', \u002F\u002F Specify the field name for the output option.\n      'contents' => 'pdfrest_split_pdf' \u002F\u002F Set the value for the output option to generate split PDFs.\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf', $headers); \u002F\u002F Create a new HTTP POST request with the API endpoint and headers.\n\n$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\necho $res->getBody(); \u002F\u002F Output the response body, which contains the split PDFs.\n\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>Source code reference: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fsplit-pdf.php\">pdf-rest-api-samples\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The above code is a PHP script that uses the Guzzle HTTP client to send a multipart POST request to the pdfRest Split PDF API endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>$headers\u003C\u002Fcode> array includes the 'Api-Key' required for authentication with the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$options = [\n  'multipart' => [\n    \u002F\u002F ...multipart form data...\n  ]\n];\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>$options\u003C\u002Fcode> array contains the multipart form data, which includes the file to split and the split options such as 'pages[]' and 'output'. Each element within the 'multipart' array represents a different part of the form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf', $headers);\n\u003C\u002Fpre>\n\n\u003Cp>A new Request object is created with the POST method, the API endpoint URL, and the headers array.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$res = $client->sendAsync($request, $options)->wait();\n\u003C\u002Fpre>\n\n\u003Cp>The client sends the request asynchronously and waits for the response, which is stored in \u003Ccode>$res\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">echo $res->getBody();\n\u003C\u002Fpre>\n\n\u003Cp>Finally, the response body is echoed out, which contains the resulting split PDF files.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we have learned how to use PHP to call the pdfRest Split PDF API to extract PDF pages into separate documents based on page selections. To explore all the capabilities of the pdfRest API Tools, you can demo them in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>, and refer to the  \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fsplit-pdf.php\">pdf-rest-api-samples\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-02-13T23:08:07.000+00:00","2026-09-02T18:28:43.000+00:00","Learn how to Extract Pages from PDF Files with PHP by calling Split PDF API Tool by pdfRest.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\",\n      \"datePublished\": \"2024-02-13T23:08:07.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:48.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to Extract Pages from PDF Files with PHP by calling Split PDF API Tool by pdfRest.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \"Extract, PHP, Pages, Split PDF\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3849,3850,3851,3852,3853,3854],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-with-php\u002F","How to Extract Pages from PDF Files with PHP , Tutorial | pdfRest",{"id":3859,"uuid":3860,"title":3861,"slug":3862,"html":3863,"comment_id":3859,"feature_image":48,"featured":284,"visibility":1257,"created_at":3864,"updated_at":3845,"published_at":3864,"custom_excerpt":3865,"codeinjection_head":3866,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3867,"primary_tag":3874,"url":3875,"excerpt":3865,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3876,"meta_description":3865,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65cbf670533c9f26b943635a","76fb4a7c-2891-4152-8e43-dd33eca83f3a","How to Extract Pages from PDF Files with Python","how-to-extract-pages-from-pdf-files-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Pages with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F'>Split PDF API Tool\u003C\u002Fa> allows users to programmatically extract pages from PDF documents to separate files. This can be particularly useful in scenarios where you have a large document that needs to be divided into smaller sections, such as when distributing individual chapters of a book to different reviewers, or when extracting specific pages from a report to share with a team.\u003C\u002Fp>\n\u003Cp>By using Python, you can automate this process and integrate it into your workflow or application.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Pages with Python Code Example\u003C\u002Fh2>\n\n\u003Cp>The following code is a complete example of how to call the Split PDF API using Python. It was sourced from the pdfRest API samples available on GitHub:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\nsplit_pdf_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf'\n\n# The \u002Fsplit-pdf endpoint can take one PDF file or id as input.\n# This sample takes one PDF file that has at least 5 pages and splits it into two documents when given two page ranges.\n\n# Create a list of tuples for data that will be sent to the request\nsplit_request_data = []\nsplit_request_data.append(('file',('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf')))\nsplit_request_data.append(('pages', '1,2,5'))\nsplit_request_data.append(('pages', '3,4'))\nsplit_request_data.append(('output', 'example_splitPdf_out'))\n\nmp_encoder_splitPdf = MultipartEncoder(\n    fields=split_request_data\n)\n\n# Let's set the headers that the split-pdf endpoint expects.\n# Since MultipartEncoder is used, the 'Content-Type' header gets set to 'multipart\u002Fform-data' via the content_type attribute below.\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_splitPdf.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to split-pdf endpoint...\")\nresponse = requests.post(split_pdf_endpoint_url, data=mp_encoder_splitPdf, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\n# If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.py' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Reference: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fsplit-pdf.py\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code snippet above demonstrates how to split a PDF document using the pdfRest API in Python. Let's break it down:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\u003C\u002Fpre>\n\n\u003Cp>This imports the necessary modules. \u003Ccode>MultipartEncoder\u003C\u002Fcode> is used for creating a multipart\u002Fform-data payload, which is required for file uploads.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">split_pdf_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fsplit-pdf'\n\u003C\u002Fpre>\n\n\u003Cp>This sets the API endpoint URL for splitting PDFs.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">split_request_data = []\nsplit_request_data.append(('file',('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf')))\nsplit_request_data.append(('pages', '1,2,5'))\nsplit_request_data.append(('pages', '3,4'))\nsplit_request_data.append(('output', 'example_splitPdf_out'))\n\u003C\u002Fpre>\n\n\u003Cp>Here, we're creating the data to be sent with the request. We specify the PDF file, the page ranges for splitting, and the output name.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_splitPdf.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n}\n\u003C\u002Fpre>\n\n\u003Cp>The headers include the API key, which you need to replace with your own. The \u003Ccode>Content-Type\u003C\u002Fcode> is set automatically by the \u003Ccode>MultipartEncoder\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(split_pdf_endpoint_url, data=mp_encoder_splitPdf, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This sends the POST request to the API endpoint with the data and headers.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we've learned how to split a PDF into separate documents using the pdfRest API and Python. You can now use this code as a starting point to integrate PDF splitting functionality into your applications.\u003C\u002Fp>\n\n\u003Cp>I encourage you to demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa> for further exploration.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fsplit-pdf.py\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-02-13T23:08:32.000+00:00","Learn how to Extract Pages from PDF Files with Python by calling Split PDF API Tool by pdfRest.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F#article\",\n      \"headline\": \"How to Extract Pages from PDF Files with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\",\n      \"datePublished\": \"2024-02-13T23:08:32.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:48.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to Extract Pages from PDF Files with Python by calling Split PDF API Tool by pdfRest.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Split PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fsplit-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fsplit-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fsplit-pdf\"\n        }\n      ],\n      \"keywords\": \"Extract, Pages, Python, Split PDF\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract Pages from PDF Files with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3868,3869,3870,3871,3872,3873],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1603,"name":1604,"slug":1605,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1607,"name":1608,"slug":1609,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pages-from-pdf-files-with-python\u002F","How to Extract Pages from PDF Files with Python, Tutorial | pdfRest",{"id":3878,"uuid":3879,"title":3880,"slug":3881,"html":3882,"comment_id":3883,"feature_image":48,"featured":284,"visibility":1257,"created_at":3884,"updated_at":3845,"published_at":3884,"custom_excerpt":3885,"codeinjection_head":3886,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3887,"primary_tag":3894,"url":3895,"excerpt":3885,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3896,"meta_description":3897,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b1340","790881f2-dd7d-4f88-ba6a-97f7e4f3d033","How to Extract PDF Text in .NET with C#","how-to-extract-pdf-text-with-dot-net-c-sharp","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Text with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F'>Extract Text API Tool\u003C\u002Fa> is a powerful service that allows users to extract text from PDF documents programmatically. This tutorial will guide you through the process of making an API call to the Extract Text endpoint using C# to retrieve text content from a PDF file.\u003C\u002Fp>\n\u003Cp>For instance, a user might use the Extract Text API to automate the process of converting PDF reports into editable text for further data analysis or integration into other applications.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Text C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using System.Text;\n\nusing (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n{\n    using (var request = new HttpRequestMessage(HttpMethod.Post, \"extracted-text\"))\n    {\n        request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n        request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n        var multipartContent = new MultipartFormDataContent();\n\n        var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\n        var byteAryContent = new ByteArrayContent(byteArray);\n        multipartContent.Add(byteAryContent, \"file\", \"file_name\");\n        byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n        var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"on\"));\n        multipartContent.Add(byteArrayOption, \"word_style\");\n\n        request.Content = multipartContent;\n        var response = await httpClient.SendAsync(request);\n\n        var apiResult = await response.Content.ReadAsStringAsync();\n\n        Console.WriteLine(\"API response received.\");\n        Console.WriteLine(apiResult);\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source code reference: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-text.cs\">pdfRest API Samples on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code block above demonstrates how to make a multipart\u002Fform-data POST request to the pdfRest Extract Text API endpoint. Let's break down the key parts of the code:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>This initializes a new instance of the HttpClient class and sets the base address to the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n\u003C\u002Fpre>\n\n\u003Cp>The API key is added to the request headers. Replace the placeholder with your actual API key to authenticate your request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var multipartContent = new MultipartFormDataContent();\n\u003C\u002Fpre>\n\n\u003Cp>A new instance of MultipartFormDataContent is created to hold the parts of the multipart request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\nvar byteAryContent = new ByteArrayContent(byteArray);\nmultipartContent.Add(byteAryContent, \"file\", \"file_name\");\nbyteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\u003C\u002Fpre>\n\n\u003Cp>The PDF file is read into a byte array, wrapped in a ByteArrayContent object, and added to the multipart content with the name \"file\". The content type is set to \"application\u002Fpdf\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"on\"));\nmultipartContent.Add(byteArrayOption, \"word_style\");\n\u003C\u002Fpre>\n\n\u003Cp>An additional option is added to the request. The \"word_style\" parameter is set to \"on\", which can be used to preserve the styling of words when extracting text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var response = await httpClient.SendAsync(request);\n\u003C\u002Fpre>\n\n\u003Cp>The request is sent asynchronously, and the response is awaited.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var apiResult = await response.Content.ReadAsStringAsync();\n\u003C\u002Fpre>\n\n\u003Cp>The response content is read as a string, which contains the extracted text from the PDF.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to construct and send a multipart\u002Fform-data POST request to the pdfRest Extract Text API using C#. By executing the code, you can extract text from a PDF file and use it for various purposes in your applications.\u003C\u002Fp>\n\n\u003Cp>I encourage you to demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa> for more details on how to use the various endpoints provided by pdfRest.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.cs\">pdfRest API Samples on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","657bb6ac2d4014c9499b3818","2023-12-15T02:15:08.000+00:00","Learn how to extract text from a PDF via C# and export into JSON for data processing. Available with the pdfRest Extract Text API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F#article\",\n      \"headline\": \"How to Extract PDF Text in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\",\n      \"datePublished\": \"2023-12-15T02:15:08.000Z\",\n      \"dateModified\": \"2026-09-01T14:24:02.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract text from a PDF via C# and export into JSON for data processing. Available with the pdfRest Extract Text API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \".NET, Extract, Extract Text, Text\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3888,3889,3890,3891,3892,3893],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F","How to Extract PDF Text in .NET with C#, Tutorial | pdfRest","Learn how to extract text from a PDF via .NET and export into JSON for data processing. Available with the pdfRest Extract Text API tool.",{"id":3899,"uuid":3900,"title":3901,"slug":3902,"html":3903,"comment_id":3899,"feature_image":48,"featured":284,"visibility":1257,"created_at":3904,"updated_at":3905,"published_at":3904,"custom_excerpt":3906,"codeinjection_head":3907,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3908,"primary_tag":3915,"url":3916,"excerpt":3906,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3917,"meta_description":3906,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6618473f533c9f26b9437109","24777808-1c53-4150-9fc2-81daac135045","How to Extract PDF Text with cURL","how-to-extract-pdf-text-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Text with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F'>Extract Text API Tool\u003C\u002Fa> is a powerful feature that allows users to programmatically extract text from PDF documents. This tutorial will guide you through the process of sending an API call to the Extract Text endpoint using cURL, which is a versatile command-line tool used for transferring data with URLs. Utilizing cURL for API interactions is common among developers because of its simplicity and wide support across various platforms.\u003C\u002Fp>\n\n\u003Cp>You might need to extract text from a batch of PDF files to analyze the content, automate data entry tasks, or migrate information to a different format. For instance, a legal firm could use the Extract Text API to extract text from a large number of legal documents for case analysis or to search for specific terms within those documents. This can save hours of manual work and increase productivity.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Text with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\"\n\u003C\u002Fpre>\n\n\u003Cp>This code is sourced from the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-text.sh\">pdf-rest-api-samples repository on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The cURL command provided is used to interact with the pdfRest Extract Text API. Let's break down each part of the command:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-X POST\u003C\u002Fpre>\n\n\u003Cp>This specifies the HTTP method for the request, which is POST in this case, indicating that data will be sent to the server.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">\"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\"\u003C\u002Fpre>\n\n\u003Cp>This is the URL of the API endpoint that triggers the Extract Text function.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\u003C\u002Fpre>\n\n\u003Cp>This header tells the server that the client expects a response in JSON format.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fpre>\n\n\u003Cp>This header indicates that the data being sent in the request is multipart form data, which is typically used for file uploads.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\u003C\u002Fpre>\n\n\u003Cp>Here you need to replace the placeholder with your actual API key. This key is used to authenticate the client making the request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\u003C\u002Fpre>\n\n\u003Cp>This is the form field that contains the file data. The '@' symbol indicates that the following string is a file path, and you should replace \"\u002Fpath\u002Fto\u002Ffile\" with the actual file path of the PDF you want to extract text from.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>By following the steps above, you have learned how to make a multipart API call to the pdfRest Extract Text endpoint using cURL. This allows you to programmatically extract text from PDF documents, which can be a stepping stone to further automation and integration within your projects or workflows.\u003C\u002Fp>\n\n\u003Cp>To explore more capabilities and demo all of the pdfRest API Tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For a comprehensive understanding of the pdfRest API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note that this is an example of a multipart API call. For code samples using JSON payloads, you can find them at the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.sh\">pdf-rest-api-samples repository on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-04-11T20:25:35.000+00:00","2026-09-02T18:28:44.000+00:00","Learn how to use pdfRest Extract Text API Tool with cURL to extract all text from a PDF","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F#article\",\n      \"headline\": \"How to Extract PDF Text with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\",\n      \"datePublished\": \"2024-04-11T20:25:35.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:32.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Extract Text API Tool with cURL to extract all text from a PDF\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, Text, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3909,3910,3911,3912,3913,3914],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-curl\u002F","How to Extract PDF Text with cURL, Tutorial | pdfRest",{"id":3919,"uuid":3920,"title":3921,"slug":3922,"html":3923,"comment_id":3919,"feature_image":48,"featured":284,"visibility":1257,"created_at":3924,"updated_at":3905,"published_at":3622,"custom_excerpt":3925,"codeinjection_head":3926,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3927,"primary_tag":3934,"url":3935,"excerpt":3925,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3936,"meta_description":3925,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c5e533c9f26b943b55f","e5d79beb-974d-41eb-b4f7-4a5ef3be8048","How to Extract PDF Text with Java","how-to-extract-pdf-text-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This tutorial shows you how to extract PDF text from a Java application with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text API Tool\u003C\u002Fa>. The sample posts a PDF to \u003Ccode>\u002Fextracted-text\u003C\u002Fcode> and shows how the textual result, status, and response details are returned for downstream application use. The walkthrough gives you a practical starting point that you can adapt when you need to extract PDF text in your own document workflow.\u003C\u002Fp>\n\n\u003Ch2>Why Extract PDF Text with Java?\u003C\u002Fh2>\n\n\u003Cp>Search and analytics systems often need the textual content of a PDF rather than its visual representation. Extraction provides text that can be indexed, classified, compared, or passed to another service.\u003C\u002Fp>\n\n\u003Cp>The Java sample posts the PDF to \u003Ccode>\u002Fextracted-text\u003C\u002Fcode>. Page and output controls determine the scope and representation of the returned text resource.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\n\npublic class ExtractedText {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fextracted-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client = new OkHttpClient().newBuilder().build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FExtractedText.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>This dependency set uses OkHttp for transport, dotenv for loading \u003Ccode>PDFREST_API_KEY\u003C\u002Fcode>, and \u003Ccode>org.json\u003C\u002Fcode> for structured request or response data.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\u003C\u002Fpre>\n\n\u003Cp>The startup code uses runtime arguments when supplied and otherwise falls back to the documented input path and environment-based credential.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fextracted-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client = new OkHttpClient().newBuilder().build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\u003C\u002Fpre>\n\n\u003Cp>The Java sample posts the PDF to \u003Ccode>\u002Fextracted-text\u003C\u002Fcode>. Page and output controls determine the scope and representation of the returned text resource. The multipart section leaves boundary construction to OkHttp so the header remains synchronized with the serialized content.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fextracted-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client = new OkHttpClient().newBuilder().build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\u003C\u002Fpre>\n\n\u003Cp>The request builder ties the body to its endpoint and applies the required \u003Ccode>Api-Key\u003C\u002Fcode> header before OkHttp sends it.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    try {\n      OkHttpClient client = new OkHttpClient().newBuilder().build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>The response block uses both status and body to distinguish a successful resource from validation or processing failures.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>You have now seen how to extract PDF text from a Java application. With that foundation, you can use extracted text for search indexing, document classification, review assistance, and data pipelines.\u003C\u002Fp>\n\n\u003Cp>When you move beyond the sample, keep in mind that image-only scans require OCR before ordinary text extraction can return useful content. For born-digital PDFs, decide whether plain reading order or additional layout information better serves search, analytics, or reconstruction, and test multi-column documents explicitly.\u003C\u002Fp>\n\n\u003Cp>You can experiment with the Extract PDF Text operation in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. The \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\u002F\">Extract Text API Tool documentation\u003C\u002Fa> describes the full parameter and response contract.\u003C\u002Fp>\n\n\u003Cp>Note: The Extract PDF Text example above uses multipart form data; to avoid transferring the same input again, use the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FExtractedText.java\">JSON payload example\u003C\u002Fa> as a guide.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:18.000+00:00","Extract machine-readable text from PDF pages with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F#article\",\n      \"headline\": \"How to Extract PDF Text with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:38.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:38.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Extract machine-readable text from PDF pages with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, Java, Text\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3928,3929,3930,3931,3932,3933],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-java\u002F","Extract PDF Text with Java | pdfRest",{"id":3938,"uuid":3939,"title":3940,"slug":3941,"html":3942,"comment_id":3943,"feature_image":48,"featured":284,"visibility":1257,"created_at":3944,"updated_at":3945,"published_at":3944,"custom_excerpt":3946,"codeinjection_head":3947,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3948,"primary_tag":3955,"url":3956,"excerpt":3946,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3957,"meta_description":3946,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b1341","61609770-cd81-4da5-847f-de491c499bc6","How to Extract PDF Text with JavaScript in NodeJS","how-to-extract-pdf-text-with-javascript","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Text with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F'>Extract Text API Tool\u003C\u002Fa> is a powerful resource for developers who need to extract text from PDF documents programmatically. This tool can be particularly useful in scenarios such as content analysis, data migration, or when you need to repurpose text content from PDF files into other formats or applications.\u003C\u002Fp>\n\u003Cp>In this tutorial, we will demonstrate how to make an API call to the Extract Text endpoint using JavaScript to retrieve text from a PDF document.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Text JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F This request demonstrates how to extract text from a PDF document.\nvar axios = require(\"axios\");\nvar FormData = require(\"form-data\");\nvar fs = require(\"fs\");\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile\"));\ndata.append(\"word_style\", \"on\");\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: \"post\",\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\",\n  headers: {\n    \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \u002F\u002F Replace with your API key\n    ...data.getHeaders(), \u002F\u002F set headers for the request\n  },\n  data: data, \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n  .then(function (response) {\n    console.log(JSON.stringify(response.data));\n  })\n  .catch(function (error) {\n    console.log(error);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>Source of the provided code: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-text.js\">pdf-rest-api-samples on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code uses the Axios library to make HTTP requests and the Form-Data library to handle multipart\u002Fform-data, which is necessary for file uploads.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar FormData = require(\"form-data\");\nvar fs = require(\"fs\");\n\u003C\u002Fpre>\n\n\u003Cp>These lines import the required modules. Axios is used for making the HTTP request, FormData for constructing the multipart request body, and fs (file system) for accessing the file system to read the PDF file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile\"));\ndata.append(\"word_style\", \"on\");\n\u003C\u002Fpre>\n\n\u003Cp>A new FormData instance is created, and the PDF file is appended along with the 'word_style' parameter. The 'word_style' parameter, when set to 'on', includes style information for each word in the output.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: \"post\",\n  maxBodyLength: Infinity,\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\",\n  headers: {\n    \"Api-Key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    ...data.getHeaders(),\n  },\n  data: data,\n};\n\u003C\u002Fpre>\n\n\u003Cp>This is the configuration for the Axios request. It specifies the HTTP method, the endpoint URL, headers (including the API key and the headers from FormData), and the request body.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(config)\n  .then(function (response) {\n    console.log(JSON.stringify(response.data));\n  })\n  .catch(function (error) {\n    console.log(error);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>The Axios library sends the request with the given configuration. The response is then logged to the console. If an error occurs, it is caught and logged.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we have learned how to use JavaScript to make an API call to pdfRest's Extract Text endpoint. This allows for the extraction of text from a PDF document, which can be used in various applications and services. The provided code demonstrates the process of setting up a multipart request, including a file and parameters, and handling the response from the API.\u003C\u002Fp>\n\n\u003Cp>For further exploration, you are encouraged to demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.js\">pdf-rest-api-samples on GitHub\u003C\u002Fa>.\u003C\u002Fp> \n\u003C!--kg-card-end: html-->\n","657bb6df2d4014c9499b3822","2023-12-15T02:15:59.000+00:00","2026-09-02T18:28:45.000+00:00","Learn how to extract text from a PDF via JavaScript and export into JSON for data processing. Available with the pdfRest Extract Text API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F#article\",\n      \"headline\": \"How to Extract PDF Text with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\",\n      \"datePublished\": \"2023-12-15T02:15:59.000Z\",\n      \"dateModified\": \"2026-09-01T14:24:02.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract text from a PDF via JavaScript and export into JSON for data processing. Available with the pdfRest Extract Text API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, JavaScript, Text\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3949,3950,3951,3952,3953,3954],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-javascript\u002F","How to Extract PDF Text with JavaScript in NodeJS, Tutorial | pdfRest",{"id":3959,"uuid":3960,"title":3961,"slug":3962,"html":3963,"comment_id":3964,"feature_image":48,"featured":284,"visibility":1257,"created_at":3965,"updated_at":3966,"published_at":3965,"custom_excerpt":3967,"codeinjection_head":3968,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3969,"primary_tag":3976,"url":3977,"excerpt":3967,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3978,"meta_description":3967,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b133f","5beb4924-9432-49c5-8681-fb0bf508299a","How to Extract PDF Text with PHP","how-to-extract-pdf-text-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Text with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text API Tool\u003C\u002Fa> is a powerful resource that allows users to extract text from PDF documents programmatically. This tutorial will guide you through the process of sending an API call to the Extract Text endpoint using PHP.\u003C\u002Fp>\n\n\u003Cp>This functionality can be particularly useful in scenarios where you need to obtain text data from a large number of PDFs quickly, like indexing documents for search, data mining, or automating content extraction for further processing.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Text PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n$client = new Client();\n\n$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'),\n      'filename' => '\u002Fpath\u002Fto\u002Ffile',\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">'\n      ]\n    ],\n    [\n      'name' => 'word_style',\n      'contents' => 'on'\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text', $headers);\n\n$res = $client->sendAsync($request, $options)->wait();\n\necho $res->getBody();\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>Source code reference: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-text.php\">GitHub - datalogics\u002Fpdf-rest-api-samples\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by loading the necessary classes using the Composer autoload feature:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">require 'vendor\u002Fautoload.php';\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\u003C\u002Fpre>\n\n\u003Cp>Next, an instance of the Guzzle HTTP client is created, and the API key is set in the headers for authentication:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$client = new Client();\n$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\u003C\u002Fpre>\n\n\u003Cp>The options array is prepared with multipart form data. This includes the file to be processed, the content type of the file, and the 'word_style' parameter, which specifies how the text should be extracted:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$options = [\n  'multipart' => [\n    \u002F\u002F File details\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'),\n      'filename' => '\u002Fpath\u002Fto\u002Ffile',\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">'\n      ]\n    ],\n    \u002F\u002F Word style option\n    [\n      'name' => 'word_style',\n      'contents' => 'on'\n    ]\n  ]\n];\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>A new POST request is created with the API endpoint and headers, and the request is sent asynchronously. The response is then waited for and the body of the response, which contains the extracted text, is output:\u003C\u002Fp>\n\n\u003Cpre class=\"language-php\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text', $headers);\n$res = $client->sendAsync($request, $options)->wait();\necho $res->getBody();\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we have successfully walked through the process of calling the pdfRest Extract Text API using PHP. By sending a multipart POST request, we can extract text from a PDF document and use it for various applications.\u003C\u002Fp>\n\n\u003Cp>To explore and demo all of the pdfRest API Tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information on the API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.php\">GitHub - datalogics\u002Fpdf-rest-api-samples\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","657bb6792d4014c9499b380e","2023-12-15T02:14:17.000+00:00","2026-09-10T20:19:18.000+00:00","Learn how to extract text from a PDF with PHP and export into JSON for data processing. Available via the pdfRest Extract Text API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F#article\",\n      \"headline\": \"How to Extract PDF Text with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\",\n      \"datePublished\": \"2023-12-15T02:14:17.000Z\",\n      \"dateModified\": \"2026-09-01T14:24:03.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract text from a PDF with PHP and export into JSON for data processing. Available via the pdfRest Extract Text API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, PHP, Text\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3970,3971,3972,3973,3974,3975],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-php\u002F","How to Extract PDF Text with PHP, Tutorial | pdfRest",{"id":3980,"uuid":3981,"title":3982,"slug":3983,"html":3984,"comment_id":3985,"feature_image":48,"featured":284,"visibility":1257,"created_at":3986,"updated_at":3987,"published_at":3986,"custom_excerpt":3988,"codeinjection_head":3989,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":3990,"primary_tag":3997,"url":3998,"excerpt":3988,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":3999,"meta_description":3988,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"65ae9a86656af204db4b133e","35cdb598-b1e8-4500-8ef4-0e68b629c718","How to Extract PDF Text with Python","how-to-extract-pdf-text-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Extract PDF Text with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text API Tool\u003C\u002Fa> is designed to help users extract text from PDF documents programmatically. This tutorial will demonstrate how to use Python to send an API call to the Extract Text endpoint.\u003C\u002Fp>\n\n\u003Cp>This functionality can be particularly useful in scenarios where text needs to be extracted for data analysis, content repurposing, or for feeding into other software systems for further processing.\u003C\u002Fp>\n\n\u003Ch2>Extract PDF Text Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\nextract_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text'\n\n# The \u002Fextracted-text endpoint can take a single PDF file or id as input.\n#This sample demonstrates extracting the text from a document to return as JSON\nmp_encoder_extractText = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'word_style': 'on',\n    }\n)\n\n# Let's set the headers that the extracted-text endpoint expects.\n# Since MultipartEncoder is used, the 'Content-Type' header gets set to 'multipart\u002Fform-data' via the content_type attribute below.\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_extractText.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to extracted-text endpoint...\")\nresponse = requests.post(extract_text_endpoint_url, data=mp_encoder_extractText, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fextracted-text.py\">GitHub - datalogics\u002Fpdf-rest-api-samples\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Python Code\u003C\u002Fh2>\n\n\u003Cp>The script combines \u003Ccode>requests\u003C\u002Fcode> with \u003Ccode>MultipartEncoder\u003C\u002Fcode> from \u003Ccode>requests-toolbelt\u003C\u002Fcode>. Install both external packages with \u003Ccode>python -m pip install requests requests-toolbelt\u003C\u002Fcode> when they are not already available.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">extract_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text'\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>\u002Fextracted-text\u003C\u002Fcode> endpoint accepts an uploaded PDF or an existing resource ID. This example uses a multipart upload and returns extraction results directly as JSON.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">mp_encoder_extractText = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'word_style': 'on',\n    }\n)\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>file\u003C\u002Fcode> tuple supplies the multipart filename, binary stream, and media type. Setting \u003Ccode>word_style\u003C\u002Fcode> to \u003Ccode>on\u003C\u002Fcode> adds a word list containing font, size, color, and color-space information. It does not perform OCR; image-only PDFs should first be processed with the OCR PDF tool when their visible text must be extracted.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_extractText.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n}\u003C\u002Fpre>\n\n\u003Cp>The encoder’s content type includes the required multipart boundary. The API key authenticates the request, and \u003Ccode>Accept: application\u002Fjson\u003C\u002Fcode> asks the service to return the extraction data in the response.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(\n    extract_text_endpoint_url,\n    data=mp_encoder_extractText,\n    headers=headers\n)\u003C\u002Fpre>\n\n\u003Cp>Passing the encoder through \u003Ccode>data\u003C\u002Fcode> sends the file and options as one multipart body. Additional endpoint controls can select pages, preserve line breaks, include word coordinates, or save the result as a downloadable JSON resource.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">if response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent=2))\nelse:\n    print(response.text)\u003C\u002Fpre>\n\n\u003Cp>The success path pretty-prints the returned text and metadata. The failure path preserves the API’s validation or processing message instead of trying to parse an error as a successful extraction result.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we've walked through how to make a multipart API call to the pdfRest Extract Text endpoint using Python. This allows for the extraction of text from a PDF document and can be used in various applications where text data is needed from PDF files.\u003C\u002Fp>\n\n\u003Cp>For further exploration, you're encouraged to demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference documentation\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.py\">GitHub - datalogics\u002Fpdf-rest-api-samples\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","657bb6592d4014c9499b3804","2023-12-15T02:13:45.000+00:00","2026-09-02T18:28:48.000+00:00","Learn how to extract text from a PDF via Python and export into JSON for data processing. Available with the pdfRest Extract Text API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F#article\",\n      \"headline\": \"How to Extract PDF Text with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\",\n      \"datePublished\": \"2023-12-15T02:13:45.000Z\",\n      \"dateModified\": \"2026-09-01T14:25:29.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract text from a PDF via Python and export into JSON for data processing. Available with the pdfRest Extract Text API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, Python, Text\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Extract PDF Text with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[3991,3992,3993,3994,3995,3996],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-extract-pdf-text-with-python\u002F","How to Extract PDF Text with Python, Tutorial | pdfRest",{"id":4001,"uuid":4002,"title":4003,"slug":4004,"html":4005,"comment_id":4001,"feature_image":48,"featured":284,"visibility":1257,"created_at":4006,"updated_at":4007,"published_at":4006,"custom_excerpt":4008,"codeinjection_head":4009,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4010,"primary_tag":4017,"url":4018,"excerpt":4008,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4019,"meta_description":4008,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"672bcb5f533c9f26b9438c14","2f4d4ee5-75b4-4384-a27b-24279c2cc800","How to Import Data to PDF Forms with cURL","how-to-import-data-to-pdf-forms-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Import Form Data with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F'>Import Form Data API Tool\u003C\u002Fa> is a powerful resource for users who need to automate the process of importing form data into PDF documents. This tutorial will guide you through the process of sending an API call to import form data using cURL, a command-line tool for transferring data with URLs. By leveraging cURL, you can efficiently interact with the pdfRest API to streamline your document management workflows.\u003C\u002Fp>\n\n\u003Cp>Imagine a business that collects customer information through online forms and needs to generate personalized PDF reports for each submission. Using the Import Form Data API, the business can automate the process of merging form data with a PDF template, saving time and reducing errors associated with manual data entry.\u003C\u002Fp>\n\n\u003Ch2>Import Form Data with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-imported-form-data\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"output=example_out\" \\\n  -F \"data_file=@\u002Fpath\u002Fto\u002Fdatafile\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-imported-form-data.sh\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The command begins with \u003Ccode>curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-imported-form-data\"\u003C\u002Fcode>, which specifies that a POST request is being made to the specified endpoint. This is essential for sending data to the server to process the import.\u003C\u002Fp>\n\n\u003Cp>The header \u003Ccode>-H \"Accept: application\u002Fjson\"\u003C\u002Fcode> indicates that the client expects a JSON response from the server, which is a common format for API responses.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fcode> header is crucial because it tells the server that the request will contain multiple parts, such as files and form data. This is necessary for uploading files.\u003C\u002Fp>\n\n\u003Cp>\u003Ccode>-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\u003C\u002Fcode> includes the API key for authentication. Replace the placeholder with your actual API key to authenticate your request.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\u003C\u002Fcode> option uploads the PDF file that will receive the imported form data. Replace \u003Ccode>\u002Fpath\u002Fto\u002Ffile\u003C\u002Fcode> with the path to your PDF document.\u003C\u002Fp>\n\n\u003Cp>Using \u003Ccode>-F \"output=example_out\"\u003C\u002Fcode>, you specify the desired name for the output file. This parameter determines how the resulting file will be named after processing.\u003C\u002Fp>\n\n\u003Cp>Finally, \u003Ccode>-F \"data_file=@\u002Fpath\u002Fto\u002Fdatafile\"\u003C\u002Fcode> uploads the data file containing the form data to be imported. Ensure you replace \u003Ccode>\u002Fpath\u002Fto\u002Fdatafile\u003C\u002Fcode> with the correct path to your data file.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use cURL to make an API call to the pdfRest Import Form Data endpoint. This process allows you to automate the integration of form data into PDF documents, enhancing efficiency and accuracy in document processing.\u003C\u002Fp>\n\n\u003Cp>To explore more features and capabilities of pdfRest, I encourage you to demo all the API Tools available in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For comprehensive details, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-imported-form-data.sh\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-11-06T20:02:39.000+00:00","2026-09-02T18:28:57.000+00:00","Learn how to use pdfRest Import Form Data API Tool to fill PDF form fields from an external data source with cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F#article\",\n      \"headline\": \"How to Import Data to PDF Forms with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\",\n      \"datePublished\": \"2024-11-06T20:02:39.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:22.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Import Form Data API Tool to fill PDF form fields from an external data source with cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Import Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-imported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fimport-form-data\"\n        }\n      ],\n      \"keywords\": \"Data, Forms, Import Form Data, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Import Data to PDF Forms with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4011,4012,4013,4014,4015,4016],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1806,"name":1807,"slug":1808,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-import-data-to-pdf-forms-with-curl\u002F","How to Import Data to PDF Forms with cURL, Tutorial | pdfRest",{"id":4021,"uuid":4022,"title":4023,"slug":4024,"html":4025,"comment_id":4021,"feature_image":48,"featured":284,"visibility":1257,"created_at":4026,"updated_at":4027,"published_at":4028,"custom_excerpt":4029,"codeinjection_head":4030,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4031,"primary_tag":4038,"url":4039,"excerpt":4029,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4040,"meta_description":4029,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c5f533c9f26b943b586","5dba5798-390b-4e09-8c22-f904c1442e8a","How to Import Data to PDF Forms with Java","how-to-import-data-to-pdf-forms-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This step-by-step tutorial explains how a Java application can import data to PDF forms through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\">Import Form Data API Tool\u003C\u002Fa>. The multipart request pairs the destination PDF with a structured data file whose field names map to the form. After reviewing the example, you'll be ready to import data to PDF forms with your own input.\u003C\u002Fp>\n\n\u003Ch2>Why Import Data to PDF Forms with Java?\u003C\u002Fh2>\n\n\u003Cp>An onboarding system may already hold customer details that also belong in a standardized PDF form. Importing those values avoids asking users or staff to enter the same information twice.\u003C\u002Fp>\n\n\u003Cp>The multipart request sends the PDF as \u003Ccode>file\u003C\u002Fcode> and the field-value file as \u003Ccode>data_file\u003C\u002Fcode> to \u003Ccode>\u002Fpdf-with-imported-form-data\u003C\u002Fcode>. Field names in the data must match the form.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PDFWithImportedFormData {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify the path to your data file here, or as the second argument when running the\n  \u002F\u002F program.\n  private static final String DEFAULT_DATA_PATH = \"\u002Fpath\u002Fto\u002Ffile.xml\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile, dataFile;\n    if (args.length > 1) {\n      inputFile = new File(args[0]);\n      dataFile = new File(args[1]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n      dataFile = new File(DEFAULT_DATA_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    final RequestBody dataFileRequestBody =\n        RequestBody.create(dataFile, MediaType.parse(\"application\u002Fxml\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"data_file\", dataFile.getName(), dataFileRequestBody)\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-imported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPDFWithImportedFormData.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The sample assigns a clear role to each library: HTTP communication, credential lookup, or JSON handling.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify the path to your data file here, or as the second argument when running the\n  \u002F\u002F program.\n  private static final String DEFAULT_DATA_PATH = \"\u002Fpath\u002Fto\u002Ffile.xml\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile, dataFile;\n    if (args.length > 1) {\n      inputFile = new File(args[0]);\n      dataFile = new File(args[1]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\u003C\u002Fpre>\n\n\u003Cp>The form and its data file have separate defaults and command-line arguments, making their relationship explicit before dotenv loads the API key.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody dataFileRequestBody =\n        RequestBody.create(dataFile, MediaType.parse(\"application\u002Fxml\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"data_file\", dataFile.getName(), dataFileRequestBody)\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-imported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The multipart request sends the PDF as \u003Ccode>file\u003C\u002Fcode> and the field-value file as \u003Ccode>data_file\u003C\u002Fcode> to \u003Ccode>\u002Fpdf-with-imported-form-data\u003C\u002Fcode>. Field names in the data must match the form. The form-data setup leaves boundary construction to OkHttp so the header remains synchronized with the serialized content.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-imported-form-data\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\u003C\u002Fpre>\n\n\u003Cp>The client request posts the multipart content to pdfRest and keeps deployment-region changes independent of the rest of the Java code.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>The response check prints the HTTP status and JSON body so generated resource IDs or API error details are visible.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>The completed example gives you a practical Java starting point for learning how to import data to PDF forms. With that foundation, you can use form import for prefilled applications, generated forms, batch correspondence, and system-of-record synchronization.\u003C\u002Fp>\n\n\u003Cp>As you apply the pattern to real documents, keep in mind that data keys must match the PDF field names exactly, so export a known form first when the contract is unclear. Validate dates, checkboxes, choice fields, and multiline values with realistic records before generating forms in bulk.\u003C\u002Fp>\n\n\u003Cp>Before integrating this workflow, test representative documents with the Import Data to PDF Forms operation in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. Then use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fimport-form-data\u002F\">Import Form Data API Tool documentation\u003C\u002Fa> to review every available parameter and response field.\u003C\u002Fp>\n\n\u003Cp>Note: The Import Data to PDF Forms example above uses multipart form data; to reuse a resource ID, use the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FPDFWithImportedFormData.java\">JSON payload example\u003C\u002Fa> as a guide.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:19.000+00:00","2026-09-02T18:28:58.000+00:00","2026-09-01T21:57:39.000+00:00","Populate PDF form fields from structured data with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F#article\",\n      \"headline\": \"How to Import Data to PDF Forms with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:39.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:39.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Populate PDF form fields from structured data with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Import Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-imported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fimport-form-data\"\n        }\n      ],\n      \"keywords\": \"Data, Forms, Import Form Data, Java\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Import Data to PDF Forms with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4032,4033,4034,4035,4036,4037],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1806,"name":1807,"slug":1808,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-import-data-to-pdf-forms-with-java\u002F","Import Data to PDF Forms with Java | pdfRest",{"id":4042,"uuid":4043,"title":4044,"slug":4045,"html":4046,"comment_id":4042,"feature_image":48,"featured":284,"visibility":1257,"created_at":4047,"updated_at":4048,"published_at":4049,"custom_excerpt":4050,"codeinjection_head":4051,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4052,"primary_tag":4058,"url":4059,"excerpt":4050,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4060,"meta_description":4061,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"68a5e549533c9f26b9439f49","19e9106c-dffc-4a20-b620-934340c45ec8","How to Programmatically Convert PDF to Markdown for AI and Data Analysis","how-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Unlock the power of your PDF documents by learning \u003Cstrong>how to programmatically convert PDF to Markdown\u003C\u002Fstrong> using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\">pdfRest PDF to Markdown API Tool\u003C\u002Fa>. This REST API tool transforms static PDF documents into clean, structured Markdown format, making it easier to repurpose content, perform data analysis, and train AI models. If you're looking for a reliable solution to \u003Cstrong>programmatically convert PDF to Markdown\u003C\u002Fstrong> while preserving document hierarchy and formatting, pdfRest offers precise and flexible conversion capabilities for modern applications.\u003C\u002Fp>\n\n    \u003Ch2>Why Programmatically Convert PDF to Markdown?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Repurpose Content with Ease:\u003C\u002Fstrong> Turn PDFs into lightweight, plain-text Markdown, ideal for web content, documentation systems, or blog posts.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Preserve Document Structure:\u003C\u002Fstrong> Accurately extract structured content from PDFs, retaining headings, lists, tables, and other formatting elements in a parseable format.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Unlock Data for AI & LLMs:\u003C\u002Fstrong> Provide clean, semantic text extracted from PDFs, which is a perfect input for training Large Language Models (LLMs), enabling advanced data analysis, NLP, and search indexing.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Enhance Accessibility:\u003C\u002Fstrong> Transform inaccessible PDF content into universally readable Markdown, supporting accessibility initiatives.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Streamline Workflows:\u003C\u002Fstrong> Automate large-scale PDF to Markdown conversions, simplifying content management and publishing workflows.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Why Choose pdfRest API for Programmatic PDF to Markdown Conversion?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Accurate Content Extraction:\u003C\u002Fstrong> Our advanced algorithms intelligently parse PDF content to deliver clean, readable Markdown that accurately captures text, headings, and other key elements from diverse layouts and complex page designs.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Structural Integrity:\u003C\u002Fstrong> The API meticulously translates PDF elements to preserve the document's hierarchy. It automatically converts headings to Markdown headers, lists to bullet or numbered lists, and tables into a clean, parseable Markdown structure.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Unlock Content Repurposing & LLM Training:\u003C\u002Fstrong> The clean, structured Markdown output is a game-changer for unlocking the potential of your static PDF information. It's an ideal format for modern web formats, content generation, and especially for training AI\u002FNLP applications, including LLMs, to build more intelligent solutions.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Customizable Conversion:\u003C\u002Fstrong> Our tool provides optional parameters to control which pages to process and to add page break comments, giving you precise control over the output for different use cases.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Developer-Friendly API:\u003C\u002Fstrong> Simple integration with clear documentation, and readily available code samples across a wide range of popular programming languages.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Scalable and Reliable:\u003C\u002Fstrong> Built for consistent performance, handling diverse PDF complexities and high processing volumes with ease.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>How to Programmatically Convert PDF to Markdown with pdfRest\u003C\u002Fh2>\n    \u003Cp>Here's a simple example of how to use cURL to send a request to the pdfRest API to \u003Cstrong>programmatically convert a PDF to Markdown\u003C\u002Fstrong>, specifying a page range and adding page break comments:\u003C\u002Fp>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fmarkdown\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_document.pdf\" \\\n  -F \"pages=1-5,7\" \\\n  -F \"page_break_comments=true\" \\\n  -F \"output=converted_document\"\n    \u003C\u002Fpre>\n    \u003Cp>Replace \u003Ccode>YOUR_API_KEY\u003C\u002Fcode> with your actual pdfRest API key and adjust the file path to your PDF document. You can specify a range of pages using the \u003Ccode>pages\u003C\u002Fcode> parameter and add page break comments to the output using the \u003Ccode>page_break_comments\u003C\u002Fcode> parameter.\u003C\u002Fp>\n\n    \u003Ch2>Get Started Fast with Tutorials for Common Programming Languages\u003C\u002Fh2>\n    \u003Cp>To help you integrate \u003Cstrong>programmatically convert PDF to Markdown\u003C\u002Fstrong> functionality into your specific development environment, we offer the following tutorials:\u003C\u002Fp>\n    \u003Cul>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-in-net-with-c\u002F\">.NET with C#\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-curl\u002F\">cURL\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-java\u002F\">Java\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-javascript-in-nodejs\u002F\">JavaScript in NodeJS\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-php\u002F\">PHP\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-convert-pdf-to-markdown-with-python\u002F\">Python\u003C\u002Fa>\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Try Now in API Lab\u003C\u002Fh2>\n    \u003Cp>Experience how easy it is to \u003Cstrong>programmatically convert PDF to Markdown\u003C\u002Fstrong> directly in your browser using our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?tool=markdown\">API Lab\u003C\u002Fa>. Upload your PDF, select your desired conversion parameters, generate the code, and download the clean, structured Markdown output.\u003C\u002Fp>\n\n    \u003Ch2>Start Programmatically Converting PDFs for AI and Web Today!\u003C\u002Fh2>\n    \u003Cp>Transform your static documents into dynamic, editable content by integrating the pdfRest API to \u003Cstrong>programmatically convert PDF to Markdown\u003C\u002Fstrong>. For detailed information on implementation and all available parameters, refer to our comprehensive \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\u002F\" target=\"_blank\">API Documentation\u003C\u002Fa>. Sign up for a \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">free pdfRest account\u003C\u002Fa> and start automating your PDF to Markdown conversions today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-08-20T15:10:01.000+00:00","2026-09-02T18:29:09.000+00:00","2025-08-20T15:18:03.000+00:00","Learn how to programmatically convert PDF to Markdown using pdfRest API. Get clean, structured text for content repurposing, data analysis, and AI training using any programming language, including Python, JavaScript, PHP, C#, Java, and more.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F#article\",\n      \"headline\": \"How to Programmatically Convert PDF to Markdown for AI and Data Analysis\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F\",\n      \"datePublished\": \"2025-08-20T15:18:03.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:11.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to programmatically convert PDF to Markdown using pdfRest API. Get clean, structured text for content repurposing, data analysis, and AI training using any programming language, including Python, JavaScript, PHP, C#, Java, and more.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"PDF to Markdown API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fpdf-to-markdown\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmarkdown API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-pdf-to-markdown\"\n        }\n      ],\n      \"keywords\": \"Conversion, Convert, PDF to Markdown\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Programmatically Convert PDF to Markdown for AI and Data Analysis\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4053,4054,4055,4056,4057],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1500,"name":1501,"slug":1502,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1386,"name":1387,"slug":1388,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1390,"name":1391,"slug":1392,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-programmatically-convert-pdf-to-markdown-for-ai-and-data-analysis-guide\u002F","How to Programmatically Convert PDF to Markdown for AI and Data Analysis | pdfRest","Learn how to programmatically convert PDF to Markdown using pdfRest API using any programming language, including Python, JavaScript, PHP, C#, Java, and more.",{"id":4063,"uuid":4064,"title":4065,"slug":4066,"html":4067,"comment_id":4063,"feature_image":48,"featured":284,"visibility":1257,"created_at":4068,"updated_at":4069,"published_at":4070,"custom_excerpt":4071,"codeinjection_head":4072,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4073,"primary_tag":4079,"url":4080,"excerpt":4071,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4081,"meta_description":4071,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"683b9b98533c9f26b9439a98","61ab83a5-ed46-43f1-84d5-7fab11836bf4","How to Programmatically Extract Text from PDF","how-to-programmatically-extract-text-from-pdf","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Unlock the rich content within your PDF documents by learning \u003Cstrong>how to programmatically extract text from PDF with style and position\u003C\u002Fstrong> using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">pdfRest Extract Text API Tool\u003C\u002Fa>. This powerful REST API tool is designed to efficiently retrieve all text from PDF documents, offering the option to include detailed style (font, size, color) and precise positional information. Ideal for developers and businesses looking to streamline data extraction and integrate rich text content into various applications, including AI-driven workflows. If you need to \u003Cstrong>programmatically extract text from PDFs\u003C\u002Fstrong> with context and layout awareness, pdfRest provides the advanced features you need.\u003C\u002Fp>\n\n    \u003Ch2>Why Programmatically Extract Text from PDF with Style and Position?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Enhance AI-Driven Workflows:\u003C\u002Fstrong> Supply large language models (LLMs) with rich content from PDF archives, enabling advanced NLP and sentiment analysis by preserving text style and position.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Maintain Text Layout and Structure:\u003C\u002Fstrong> Utilize positional data to preserve the exact layout of text, crucial for applications requiring precise text placement, such as digital archiving and document conversion.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Preserve Original Document Appearance:\u003C\u002Fstrong> Include optional style information (font type, size, and color) to maintain the original document's look and feel in the extracted text.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Streamline Data Extraction Processes:\u003C\u002Fstrong> Automate text extraction workflows to enhance efficiency and reduce manual data entry, perfect for high-volume document processing.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Improve Data Accessibility and Utility:\u003C\u002Fstrong> Convert static PDF content into dynamic, usable data for business intelligence, compliance, and reporting purposes, with added style context.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Why Choose pdfRest API for Programmatic Text Extraction from PDF?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Precise Positional Data:\u003C\u002Fstrong> Optionally include page and coordinate metadata for each word in an easy-to-parse JSON format, crucial for layout analysis and searchable PDFs.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Detailed Styling Information:\u003C\u002Fstrong> With the \u003Ccode>word_style\u003C\u002Fcode> option, extract font type, size, color, and color space for each word, preserving visual consistency.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Comprehensive Data Extraction:\u003C\u002Fstrong> Efficiently extract all text content for further analysis or integration into databases and other systems.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Developer-Friendly API:\u003C\u002Fstrong> Simple integration with clear documentation and code examples for various programming languages.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Scalable and Reliable:\u003C\u002Fstrong> Built for consistent performance, even with large PDF files and high processing volumes.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Secure Processing:\u003C\u002Fstrong> Ensures the privacy and security of your PDF content during text extraction.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Flexible Output Options:\u003C\u002Fstrong> Specify whether to save output as a JSON file or return it directly in the JSON response.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>How to Programmatically Extract Text from PDF with pdfRest\u003C\u002Fh2>\n    \u003Cp>Here's a simple example of how to use cURL to send a request to the pdfRest API to \u003Cstrong>programmatically extract text with positional data from a PDF\u003C\u002Fstrong>:\u003C\u002Fp>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_document.pdf\" \\\n  -F \"word_coordinates=true\" \\\n  -F \"output_type=json\"\n    \u003C\u002Fpre>\n    \u003Cp>Replace \u003Ccode>YOUR_API_KEY\u003C\u002Fcode> with your actual pdfRest API key and adjust the file path to your PDF document. This example includes word coordinates and requests JSON output.\u003C\u002Fp>\n\n    \u003Ch2>Get Started Fast with Tutorials for Common Programming Languages\u003C\u002Fh2>\n    \u003Cp>To help you integrate \u003Cstrong>programmatically extract text from PDF with style and position\u003C\u002Fstrong> functionality into your specific development environment, we offer the following tutorials:\u003C\u002Fp>\n    \u003Cul>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-dot-net-c-sharp\u002F\">.NET with C#\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-curl\u002F\">cURL\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-javascript\u002F\">JavaScript in NodeJS\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-php\u002F\">PHP\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-extract-pdf-text-with-python\u002F\">Python\u003C\u002Fa>\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Try Now in API Lab\u003C\u002Fh2>\n    \u003Cp>Experience how easy it is to \u003Cstrong>programmatically extract text from PDF with style and position\u003C\u002Fstrong> directly in your browser using our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?tool=extracted-text\">API Lab\u003C\u002Fa>. Upload your PDF, choose the options for word style and coordinates, generate the code, send the API call, and view the detailed extracted text to validate the results.\u003C\u002Fp>\n\n    \u003Ch2>Start Programmatically Extracting Rich Text Data from Your PDFs Today!\u003C\u002Fh2>\n    \u003Cp>Unlock the valuable information within your PDF documents, including style and positional data, by integrating the pdfRest API. For detailed information on implementation and all available parameters, refer to our comprehensive \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\u002F\" target=\"_blank\">API Documentation\u003C\u002Fa>. Sign up for a \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">free pdfRest account\u003C\u002Fa> and start automating your advanced PDF text extraction tasks today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-06-01T00:15:20.000+00:00","2026-09-02T18:29:11.000+00:00","2025-06-04T21:42:03.000+00:00","Learn how to extract PDF text programmatically using the pdfRest API. Automate document workflows using any programming language, including Python, JavaScript, PHP, C#, Java, and more.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-extract-text-from-pdf\u002F#article\",\n      \"headline\": \"How to Programmatically Extract Text from PDF\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-extract-text-from-pdf\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-extract-text-from-pdf\u002F\",\n      \"datePublished\": \"2025-06-04T21:42:03.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:14.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract PDF text programmatically using the pdfRest API. Automate document workflows using any programming language, including Python, JavaScript, PHP, C#, Java, and more.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        }\n      ],\n      \"keywords\": \"Extract, Extract Text, Text\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Programmatically Extract Text from PDF\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-extract-text-from-pdf\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4074,4075,4076,4077,4078],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-programmatically-extract-text-from-pdf\u002F","How to Programmatically Extract Text from PDF, Tutorial | pdfRest",{"id":4083,"uuid":4084,"title":4085,"slug":4086,"html":4087,"comment_id":4083,"feature_image":48,"featured":284,"visibility":1257,"created_at":4088,"updated_at":4089,"published_at":4090,"custom_excerpt":4091,"codeinjection_head":4092,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4093,"primary_tag":4099,"url":4100,"excerpt":4091,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4101,"meta_description":4091,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6827a120533c9f26b94397c6","0a2faf39-e59d-44b3-b7a6-b60db0c73c24","How to Programmatically Fill PDF Forms","how-to-programmatically-fill-pdf-forms","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Learn how to \u003Cstrong>programmatically fill PDF forms\u003C\u002Fstrong> and automate your data entry workflows. This guide will walk you through the process of using the pdfRest API to efficiently \u003Cstrong>fill PDF forms\u003C\u002Fstrong> with data from external sources. Discover how easy it is to \u003Cstrong>programmatically fill PDF forms\u003C\u002Fstrong>, saving time and reducing manual errors. Our method focuses on understanding your form's data structure through export and then using that structure to \u003Cstrong>import data into PDF forms\u003C\u002Fstrong> automatically.\u003C\u002Fp>\n\n    \u003Cp>The key to learning \u003Cstrong>how to fill PDF forms programmatically\u003C\u002Fstrong> with pdfRest is a two-step process involving both exporting and importing form data. First, you'll export the data structure from a sample of your PDF form using our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\">Export Form Data API tool\u003C\u002Fa>. This crucial step reveals the underlying structure needed to \u003Cstrong>programmatically fill PDF forms\u003C\u002Fstrong> accurately. Once you analyze this data file, you'll understand how to structure your data for automated form filling. Finally, you'll use this prepared data file with our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\">Import Form Data API tool\u003C\u002Fa> to \u003Cstrong>import data into PDF forms\u003C\u002Fstrong> and automatically populate the fields. Let's begin by exploring how to export form data to prepare for programmatically filling your PDF forms.\u003C\u002Fp>\n\n    \u003Ch2>Step 1: Exporting Form Data to Understand Form Structure\u003C\u002Fh2>\n    \u003Cp>Before you can \u003Cstrong>programmatically fill PDF forms\u003C\u002Fstrong>, you need to understand the structure of the form fields. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\">Export Form Data API Tool\u003C\u002Fa> allows you to extract this information.\u003C\u002Fp>\n\n    \u003Ch3>Why Export Form Data for Programmatic Form Filling?\u003C\u002Fh3>\n    \u003Cp>Using the pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\">Export Form Data API Tool\u003C\u002Fa> is the first step in learning \u003Cstrong>how to fill PDF forms programmatically\u003C\u002Fstrong>. This powerful utility extracts the form field names, values, and their organization, providing the blueprint for your data file. By leveraging pdfRest, you can automate this extraction process, making it efficient for any number of forms you need to \u003Cstrong>programmatically fill\u003C\u002Fstrong>.\u003C\u002Fp>\n\n    \u003Ch3>Export Form Data Code Example\u003C\u002Fh3>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fexported-form-data\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_sample_filled_form.pdf\" \\\n  -F \"data_format=xml\" \\\n  -F \"output=form_data_structure\"\n    \u003C\u002Fpre>\n\n    \u003Ch3>Breaking Down the Code for Exporting Form Data\u003C\u002Fh3>\n    \u003Cp>The \u003Ccode>curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fexported-form-data\"\u003C\u002Fcode> command initiates the data export process.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Accept: application\u002Fjson\"\u003C\u002Fcode> specifies that you expect the output in JSON format (you can also use XML).\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fcode> indicates that you are uploading a file.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Api-Key: YOUR_API_KEY\"\u003C\u002Fcode> is where you place your unique pdfRest API key for authentication.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"file=@\u002Fpath\u002Fto\u002Fyour_sample_filled_form.pdf\"\u003C\u002Fcode> specifies the path to a sample PDF form that you have filled out.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"data_format=xml\"\u003C\u002Fcode> sets the output format for the exported data (XML is used here as an example).\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"output=form_data_structure\"\u003C\u002Fcode> names the output file where the form data structure will be saved.\u003C\u002Fp>\n\n    \u003Ch3>Beyond Exporting: Preparing to Programmatically Fill PDF Forms\u003C\u002Fh3>\n    \u003Cp>Once you've successfully exported the form data, examine the resulting file (e.g., form_data_structure.xml). This file contains the names and structure of the fields in your PDF form. If you filled the form first with sample data, it will also contain the form field values, further helping you identify which field on the PDF maps to which entry in the data file. You will use this data file to insert the new data you want to use to programmatically fill PDF form fields.\u003C\u002Fp>\n\n    \u003Ch2>Step 2: Importing Data to Fill PDF Forms Programmatically\u003C\u002Fh2>\n    \u003Cp>Now that you understand the structure of your PDF form, you can proceed to \u003Cstrong>importing data into PDF forms\u003C\u002Fstrong> using the pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\">Import Form Data API Tool\u003C\u002Fa>.\u003C\u002Fp>\n\n    \u003Ch3>Why Import Form Data to Fill Forms Programmatically?\u003C\u002Fh3>\n    \u003Cp>The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\">Import Form Data API Tool\u003C\u002Fa> is essential for anyone looking \u003Cstrong>to fill PDF forms programmatically\u003C\u002Fstrong>. By using pdfRest to send the API call along with your prepared data file, you can automatically populate the fields in your PDF form, making the process of filling PDF form fields efficient and scalable.\u003C\u002Fp>\n    \u003Cp>Consider scenarios where you need to generate hundreds or thousands of personalized PDF documents. Instead of manual data entry, you can create a script that reads your data source, formats it according to the exported form structure, and then uses the Import Form Data API to \u003Cstrong>import data into PDF form\u003C\u002Fstrong> in bulk.\u003C\u002Fp>\n\n    \u003Ch3>Import Form Data Code Example\u003C\u002Fh3>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-imported-form-data\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_blank_form.pdf\" \\\n  -F \"output=filled_form.pdf\" \\\n  -F \"data_file=@\u002Fpath\u002Fto\u002Fyour_data_file.xml\"\n    \u003C\u002Fpre>\n\n    \u003Ch3>Breaking Down the Code for Importing Form Data\u003C\u002Fh3>\n    \u003Cp>The \u003Ccode>curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-imported-form-data\"\u003C\u002Fcode> command initiates the data import process to \u003Cstrong>fill PDF form\u003C\u002Fstrong> fields.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Accept: application\u002Fjson\"\u003C\u002Fcode> specifies that you expect the output in JSON format.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Content-Type: multipart\u002Fform-data\"\u003C\u002Fcode> indicates that you are uploading files.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-H \"Api-Key: YOUR_API_KEY\"\u003C\u002Fcode> is your unique pdfRest API key for authentication.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"file=@\u002Fpath\u002Fto\u002Fyour_blank_form.pdf\"\u003C\u002Fcode> specifies the path to the blank PDF form you want to fill.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"output=filled_form.pdf\"\u003C\u002Fcode> names the output file which will be the filled PDF form.\u003C\u002Fp>\n    \u003Cp>\u003Ccode>-F \"data_file=@\u002Fpath\u002Fto\u002Fyour_data_file.xml\"\u003C\u002Fcode> specifies the path to the data file (e.g., XML) that you prepared based on the exported form structure.\u003C\u002Fp>\n\n    \u003Ch3>Beyond Importing: Efficiently Manage Your Filled PDF Forms\u003C\u002Fh3>\n    \u003Cp>By combining the Export and Import Form Data API tools, you can establish a robust workflow to \u003Cstrong>programmatically fill PDF forms\u003C\u002Fstrong>. This method is efficient for single forms and scalable for processing large batches of documents. You can integrate this functionality into your applications to automate report generation, data population, and much more.\u003C\u002Fp>\n\n    \u003Ch2>Start to Programmatically Fill PDF Forms Today!\u003C\u002Fh2>\n    \u003Cp>Unlock the power of automation to \u003Cstrong>fill PDF forms programmatically\u003C\u002Fstrong> with the pdfRest API. Begin by \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?tool=export-form-data\">exporting the data structure of your form in the API Lab\u003C\u002Fa>. Once you have prepared your data file, proceed to \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?tool=import-form-data\">import your data to fill your forms\u003C\u002Fa> automatically. For detailed guidance on \u003Cstrong>how to fill PDF forms programmatically\u003C\u002Fstrong> and import data into PDF forms, consult our comprehensive \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fimport-form-data\u002F\" target=\"_blank\">API Documentation\u003C\u002Fa>. Sign up for a \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">free pdfRest account\u003C\u002Fa> and streamline your PDF form workflows today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-05-16T20:33:36.000+00:00","2026-09-02T18:29:12.000+00:00","2025-05-16T20:52:30.000+00:00","Learn how to fill PDF forms programmatically using any programming language, including Python, JavaScript, PHP, C#, Java, and more.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F#article\",\n      \"headline\": \"How to Programmatically Fill PDF Forms\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F\",\n      \"datePublished\": \"2025-05-16T20:52:30.000Z\",\n      \"dateModified\": \"2026-09-01T06:10:09.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to fill PDF forms programmatically using any programming language, including Python, JavaScript, PHP, C#, Java, and more.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Export Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fexport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fexported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-form-data\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Import Form Data API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fimport-form-data\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-imported-form-data API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fimport-form-data\"\n        }\n      ],\n      \"keywords\": \"Data, Forms, Import Form Data\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Programmatically Fill PDF Forms\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-fill-pdf-forms\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4094,4095,4096,4097,4098],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1806,"name":1807,"slug":1808,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1782,"name":1783,"slug":1784,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-programmatically-fill-pdf-forms\u002F","How to Programmatically Fill PDF Forms, Tutorial | pdfRest",{"id":4103,"uuid":4104,"title":4105,"slug":4106,"html":4107,"comment_id":4103,"feature_image":48,"featured":284,"visibility":1257,"created_at":4108,"updated_at":4109,"published_at":4110,"custom_excerpt":4111,"codeinjection_head":4112,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4113,"primary_tag":4122,"url":4123,"excerpt":4111,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4124,"meta_description":4111,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"68275113533c9f26b9439674","09597ba4-d71a-4f92-84aa-82802f1f6399","How to Programmatically Generate PDF Invoice Files","how-to-programmatically-generate-pdf-invoice-files","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Streamline your invoicing process and boost efficiency by learning \u003Cstrong>how to programmatically generate PDF invoice files\u003C\u002Fstrong>. This page provides a guide to using the pdfRest API to automate the creation of professional and accurate \u003Cstrong>PDF invoices\u003C\u002Fstrong> directly from your applications. Whether you need to generate invoices for e-commerce, accounting, or custom business solutions, pdfRest provides flexible tools for building and processing PDF documents.\u003C\u002Fp>\n\n\u003Ch2>The Power of Automated Invoice Generation\u003C\u002Fh2>\n\n\u003Cp>Manually creating invoices can be time-consuming and error-prone. Automating this process offers significant advantages:\u003C\u002Fp>\n\u003Cul>\n    \u003Cli>Increased Efficiency\u003C\u002Fli>\n    \u003Cli>Improved Accuracy\u003C\u002Fli>\n    \u003Cli>Faster Turnaround Times\u003C\u002Fli>\n    \u003Cli>Consistent Branding\u003C\u002Fli>\n    \u003Cli>Scalability\u003C\u002Fli>\n    \u003Cli>Integration with Existing Systems\u003C\u002Fli>\n    \u003Cli>Reduced Costs\u003C\u002Fli>\n    \u003Cli>Enhanced Customer Experience\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Understanding the Building Blocks: Programmatically Generating a PDF Invoice\u003C\u002Fh2>\n\n\u003Cp>To \u003Cstrong>programmatically generate a PDF\u003C\u002Fstrong> invoice, you'll typically follow these steps:\u003C\u002Fp>\n\u003Col>\n    \u003Cli>Retrieve invoice data from your application, database, or business system.\u003C\u002Fli>\n    \u003Cli>Define the invoice layout and visual style.\u003C\u002Fli>\n    \u003Cli>Populate the invoice with customer information, line items, totals, payment terms, and branding.\u003C\u002Fli>\n    \u003Cli>Generate or assemble the PDF invoice.\u003C\u002Fli>\n    \u003Cli>Deliver, archive, or process the completed invoice.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Ch2>Generate PDF Invoices Efficiently with pdfRest API\u003C\u002Fh2>\n\n\u003Cp>pdfRest is a versatile PDF REST API toolkit that provides developers with tools to \u003Cstrong>programmatically generate PDF\u003C\u002Fstrong> documents, including professional \u003Cstrong>PDF invoices\u003C\u002Fstrong>. The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002F\">pdfRest API toolkit\u003C\u002Fa> supports two primary approaches for automating invoice generation.\u003C\u002Fp>\n\n\u003Ch3>Method 1: Streamlined Invoice Generation Using HTML to PDF\u003C\u002Fh3>\n\n\u003Cp>This method allows you to use familiar web development practices to define your invoice layout with HTML and CSS. You can dynamically populate an HTML invoice template with your application data and then use the pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\">Convert to PDF API Tool\u003C\u002Fa> to transform it into a PDF.\u003C\u002Fp>\n\n\u003Ch4>Steps to Generate PDF Invoices from HTML:\u003C\u002Fh4>\n\u003Col>\n    \u003Cli>Dynamically generate your invoice data and embed it into an HTML template.\u003C\u002Fli>\n    \u003Cli>Style your HTML invoice with CSS for branding, readability, and consistent presentation.\u003C\u002Fli>\n    \u003Cli>Use a cURL command to send the HTML content to the pdfRest \u003Ccode>\u002Fpdf\u003C\u002Fcode> endpoint:\u003C\u002Fli>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_invoice.html\" \\\n  -F \"output=generated_invoice.pdf\"\n    \u003C\u002Fpre>\n    \u003Cli>Process the API response to retrieve and deliver your \u003Cstrong>PDF invoice\u003C\u002Fstrong>. The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fapi-polling\u002F\">API Polling\u003C\u002Fa> API Tool can help manage asynchronous processing workflows.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Ch3>Method 2: Precise Invoice Creation with the Add to PDF API\u003C\u002Fh3>\n\n\u003Cp>For precise control over individual invoice elements, use the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-blank-pdf\u002F\">Create Blank PDF API Tool\u003C\u002Fa> together with the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\">Add to PDF API Tool\u003C\u002Fa>. This approach lets you build an invoice from a blank PDF by inserting text, images, shapes, and tables at defined positions.\u003C\u002Fp>\n\n\u003Ch4>Steps to Programmatically Build PDF Invoices:\u003C\u002Fh4>\n\u003Col>\n    \u003Cli>Prepare your invoice data, including company information, customer details, line items, totals, and payment instructions.\u003C\u002Fli>\n    \u003Cli>Create a blank PDF or begin with an existing PDF template.\u003C\u002Fli>\n    \u003Cli>Add your company logo using the \u003Ccode>\u002Fpdf-with-added-image\u003C\u002Fcode> endpoint:\u003C\u002Fli>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-image\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_base_pdf.pdf\" \\\n  -F \"image_file=@\u002Fpath\u002Fto\u002Fyour_logo.png\" \\\n  -F \"output=invoice_with_logo.pdf\" \\\n  -F \"x=50\" \\\n  -F \"y=750\" \\\n  -F \"page=1\" \\\n  -F \"width=120\" \\\n  -F \"height=48\"\n    \u003C\u002Fpre>\n    \u003Cli>Add invoice labels and values using the \u003Ccode>\u002Fpdf-with-added-text\u003C\u002Fcode> endpoint:\u003C\u002Fli>\n    \u003Cpre class=\"language-bash\">\nTEXT_OPTIONS='[\n  {\n    \"text\": \"Invoice Number:\",\n    \"x\": \"400\",\n    \"y\": \"780\",\n    \"font\": \"Times New Roman\",\n    \"text_size\": \"12\",\n    \"text_color_rgb\": \"0,0,0\"\n  },\n  {\n    \"text\": \"INV-2025-001\",\n    \"x\": \"500\",\n    \"y\": \"780\",\n    \"font\": \"Times New Roman\",\n    \"text_size\": \"12\",\n    \"text_color_rgb\": \"0,0,0\"\n  },\n  {\n    \"text\": \"Date:\",\n    \"x\": \"400\",\n    \"y\": \"760\",\n    \"font\": \"Times New Roman\",\n    \"text_size\": \"12\",\n    \"text_color_rgb\": \"0,0,0\"\n  },\n  {\n    \"text\": \"2025-05-16\",\n    \"x\": \"500\",\n    \"y\": \"760\",\n    \"font\": \"Times New Roman\",\n    \"text_size\": \"12\",\n    \"text_color_rgb\": \"0,0,0\"\n  }\n]'\n\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_base_pdf.pdf\" \\\n  -F \"text_objects=$TEXT_OPTIONS\" \\\n  -F \"output=invoice_with_text.pdf\"\n    \u003C\u002Fpre>\n    \u003Cli>Add visual elements such as background panels, separators, borders, and other shapes using the \u003Ccode>\u002Fpdf-with-added-shapes\u003C\u002Fcode> endpoint.\u003C\u002Fli>\n    \u003Cli>Add invoice line items and totals using the \u003Ccode>\u002Fpdf-with-added-tables\u003C\u002Fcode> endpoint:\u003C\u002Fli>\n    \u003Cpre class=\"language-bash\">\nTABLE_OPTIONS='[\n  {\n    \"page\": 1,\n    \"x\": 54,\n    \"y\": 540,\n    \"width\": 504,\n    \"columns\": [\n      {\"width\": 210},\n      {\"width\": 144},\n      {\"width\": 150}\n    ],\n    \"header_rows\": [\n      {\n        \"cells\": [\n          {\"text\": \"Description\"},\n          {\"text\": \"Quantity\"},\n          {\"text\": \"Amount\"}\n        ]\n      }\n    ],\n    \"rows\": [\n      {\n        \"cells\": [\n          {\"text\": \"Professional services\"},\n          {\"text\": \"1\"},\n          {\"text\": \"$1,250.00\"}\n        ]\n      },\n      {\n        \"cells\": [\n          {\"text\": \"Implementation support\"},\n          {\"text\": \"2\"},\n          {\"text\": \"$500.00\"}\n        ]\n      }\n    ],\n    \"footer_rows\": [\n      {\n        \"cells\": [\n          {\"text\": \"Total\", \"col_span\": 2},\n          {\"text\": \"$2,250.00\"}\n        ]\n      }\n    ]\n  }\n]'\n\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-added-tables\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_base_pdf.pdf\" \\\n  -F \"table_objects=$TABLE_OPTIONS\" \\\n  -F \"output=invoice_with_table.pdf\"\n    \u003C\u002Fpre>\n    \u003Cli>Process the API responses to generate and deliver the completed \u003Cstrong>PDF invoice\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Ch3>Use Optional Tagging for Invoice Content\u003C\u002Fh3>\n\n\u003Cp>The Add to PDF API Tool supports optional structure tagging for newly inserted text, images, shapes, and table content. Tagging can help identify invoice content in the PDF structure for downstream processing and accessibility-oriented workflows.\u003C\u002Fp>\n\n\u003Cp>For example, invoice table content can use table-related structure types, header cells can use \u003Ccode>TH\u003C\u002Fcode>, and data cells can use \u003Ccode>TD\u003C\u002Fcode>. Image content can include alternative text and figure metadata when appropriate.\u003C\u002Fp>\n\n\u003Cp>Tagging applies to content inserted by the request. It does not automatically tag pre-existing untagged content in the source PDF, but tagged invoice content can be added to a PDF that already contains an existing structure tree.\u003C\u002Fp>\n\n\u003Ch2>Benefits of Using pdfRest to Programmatically Generate Invoices\u003C\u002Fh2>\n\n\u003Cul>\n    \u003Cli>Choose between convenient HTML conversion and precise element-level PDF construction.\u003C\u002Fli>\n    \u003Cli>Integrate PDF invoice generation with existing applications through REST API requests.\u003C\u002Fli>\n    \u003Cli>Use structured tables for line items, totals, headers, footers, merged cells, and multi-page invoices.\u003C\u002Fli>\n    \u003Cli>Add logos, visual panels, borders, separators, and other invoice design elements.\u003C\u002Fli>\n    \u003Cli>Support optional structure tagging for newly inserted invoice content.\u003C\u002Fli>\n    \u003Cli>Continue processing invoices with tools for \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fmerge-pdfs\u002F\">merging PDFs\u003C\u002Fa>, PDF\u002FA conversion, compression, attachments, and security.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Choose the Right Invoice Generation Method\u003C\u002Fh2>\n\n\u003Cp>HTML-to-PDF conversion is a good choice when your team already works with HTML templates and CSS or when the invoice layout is primarily document-based.\u003C\u002Fp>\n\n\u003Cp>The Create Blank PDF and Add to PDF workflow is a good choice when your application needs precise control over coordinates, individual content objects, tables, page structure, or programmatically generated layouts.\u003C\u002Fp>\n\n\u003Cp>Both approaches can be integrated with application data and extended with additional pdfRest API Tools as your invoicing workflow grows.\u003C\u002Fp>\n\n\u003Ch2>Start Programmatically Generating Your PDF Invoices Today!\u003C\u002Fh2>\n\n\u003Cp>Automate your invoicing workflow and create accurate, consistent, and professional \u003Cstrong>PDF invoices\u003C\u002Fstrong> from your application data. Explore the pdfRest API and start building your custom solution.\u003C\u002Fp>\n\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">Try Now in API Lab\u003C\u002Fa>. For detailed information on implementation, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\u002F\" target=\"_blank\">pdfRest API Documentation\u003C\u002Fa>. Ready to get started? \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">Sign Up for a Free Account\u003C\u002Fa> today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-05-16T14:52:03.000+00:00","2026-09-02T18:29:13.000+00:00","2025-05-16T19:43:30.000+00:00","Learn how to programmatically create PDF invoices using any programming language, including JavaScript, Python, PHP, C#, Java, and more.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F#article\",\n      \"headline\": \"How to Programmatically Generate PDF Invoice Files\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\",\n      \"datePublished\": \"2025-05-16T19:43:30.000Z\",\n      \"dateModified\": \"2026-09-01T05:53:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to programmatically create PDF invoices using any programming language, including JavaScript, Python, PHP, C#, Java, and more.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"API Polling API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fapi-polling\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"GET \u002Frequest-status\u002F{requestId} API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fapi-polling\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Add to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fadd-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-image API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-shapes API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-tables API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-added-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fadd-to-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Convert to PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fconvert-to-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fconvert-to-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Create Blank PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fcreate-blank-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fblank-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fcreate-blank-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Merge PDFs API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fmerge-pdfs\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fmerged-pdf API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fmerge-pdfs\"\n        }\n      ],\n      \"keywords\": \"Add to PDF, Convert to PDF, HTML, Tables, Tagged PDF, Text\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Programmatically Generate PDF Invoice Files\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4114,4115,4116,4117,4118,4119,4120,4121],{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1394,"name":1395,"slug":1396,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1402,"name":1403,"slug":1404,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1842,"name":1843,"slug":1844,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":1854,"name":1855,"slug":1856,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1858,"name":1859,"slug":1860,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-programmatically-generate-pdf-invoice-files\u002F","How to Programmatically Generate PDF Invoice Files, Tutorial | pdfRest",{"id":4126,"uuid":4127,"title":4128,"slug":4129,"html":4130,"comment_id":4126,"feature_image":48,"featured":284,"visibility":1257,"created_at":4131,"updated_at":4132,"published_at":4133,"custom_excerpt":4134,"codeinjection_head":4135,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4136,"primary_tag":4142,"url":4143,"excerpt":4134,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4144,"meta_description":4134,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6851cbae533c9f26b9439bf1","6d46887c-10f1-441c-ac22-9ef62562324b","How to Programmatically OCR PDFs to Create Searchable Documents","how-to-programmatically-ocr-pdfs-to-create-searchable-documents","\n\u003C!--kg-card-begin: html-->\n\u003Cp>Unlock the hidden text in your scanned documents and image-based PDFs by learning \u003Cstrong>how to programmatically OCR PDFs to create searchable documents\u003C\u002Fstrong> using the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\">pdfRest OCR PDF API Tool\u003C\u002Fa>. This advanced REST API tool leverages state-of-the-art Optical Character Recognition (OCR) technology to convert scanned documents and images within PDFs into accurately recognized, searchable, and extractable text. If you're looking for a powerful solution to \u003Cstrong>programmatically OCR PDFs\u003C\u002Fstrong>, pdfRest transforms static documents into dynamic, usable data, significantly enhancing your document management and data processing workflows.\u003C\u002Fp>\n\n    \u003Ch2>Why Programmatically OCR PDFs to Create Searchable Documents?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Transform Non-Searchable PDFs:\u003C\u002Fstrong> Convert image-based or scanned PDFs into fully searchable documents, making previously inaccessible text selectable, searchable, and copyable.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Boost Efficiency and Accuracy:\u003C\u002Fstrong> Automate text recognition and extraction, eliminating the need for manual data entry and significantly saving development time and resources.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Improve Data Accessibility:\u003C\u002Fstrong> Enhance user workflows by enabling easy highlighting, copying, and searching of text directly within images present in the PDF.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Enable Comprehensive Text Extraction:\u003C\u002Fstrong> Serve as an essential pre-processing step for the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text API Tool\u003C\u002Fa>, ensuring all text, including rasterized content, is extractable.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Streamline Document Management:\u003C\u002Fstrong> Implement robust OCR PDF solutions to effectively manage large volumes of scanned files, turning them into dynamic data sources for archiving, analysis, and compliance.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Why Choose pdfRest API for Programmatic PDF OCR?\u003C\u002Fh2>\n    \u003Cul>\n        \u003Cli>\u003Cstrong>Generates Searchable PDF Files:\u003C\u002Fstrong> pdfRest's OCR technology accurately detects text within images and intelligently places the recognized text behind the image in the PDF document, making it natively searchable.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Supports Image-Based Text Extraction:\u003C\u002Fstrong> Designed specifically to address the challenge of text trapped within scanned documents or PDFs containing embedded images, ensuring all content is recognized.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Seamless PDF and OCR Integration:\u003C\u002Fstrong> Our API offers a developer-friendly, frictionless integration experience with well-documented references and readily available code samples, allowing you to implement OCR workflows with minimal code and effort.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Multi-Language Support:\u003C\u002Fstrong> Specify a comma-separated list of languages (e.g., English, German, French, Chinese, Japanese, Korean) for the OCR engine to recognize, optimizing accuracy for multilingual documents.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>State-of-the-Art OCR Technology:\u003C\u002Fstrong> Leverages advanced OCR algorithms to provide high accuracy in text recognition.\u003C\u002Fli>\n        \u003Cli>\u003Cstrong>Scalable and Reliable:\u003C\u002Fstrong> Built for consistent performance, capable of handling large volumes of scanned files efficiently.\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>How to Programmatically OCR PDFs with pdfRest\u003C\u002Fh2>\n    \u003Cp>Here's a simple example of how to use cURL to send a request to the pdfRest API to \u003Cstrong>programmatically OCR a PDF to make its text searchable\u003C\u002Fstrong>, specifying a language:\u003C\u002Fp>\n    \u003Cpre class=\"language-bash\">\ncurl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Fyour_scanned_document.pdf\" \\\n  -F \"languages=English,Spanish\" \\\n  -F \"output=searchable_document\"\n\u003C\u002Fpre>\n    \u003Cp>Replace \u003Ccode>YOUR_API_KEY\u003C\u002Fcode> with your actual pdfRest API key and adjust the file path to your PDF document. You can specify multiple languages (comma-separated) for accurate recognition.\u003C\u002Fp>\n\n    \u003Ch2>Get Started Fast with Tutorials for Common Programming Languages\u003C\u002Fh2>\n    \u003Cp>To help you integrate \u003Cstrong>programmatically OCR PDFs to create searchable documents\u003C\u002Fstrong> functionality into your specific development environment, we offer the following tutorials:\u003C\u002Fp>\n    \u003Cul>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\">.NET with C# (Make Searchable)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\">cURL (Make Searchable)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\">JavaScript in NodeJS (Make Searchable)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\">PHP (Make Searchable)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\">Python (Make Searchable)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\">.NET with C# (Extract Text from Images)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\">cURL (Extract Text from Images)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\">JavaScript in NodeJS (Extract Text from Images)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\">PHP (Extract Text from Images)\u003C\u002Fa>\u003C\u002Fli>\n        \u003Cli>\u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\">Python (Extract Text from Images)\u003C\u002Fa>\u003C\u002Fli>\n    \u003C\u002Ful>\n\n    \u003Ch2>Try Now in API Lab\u003C\u002Fh2>\n    \u003Cp>Experience how easy it is to \u003Cstrong>programmatically OCR PDFs to create searchable documents\u003C\u002Fstrong> directly in your browser using our \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F?endpoint=pdf-with-ocr-text&eu=false\">API Lab\u003C\u002Fa>. Upload your scanned PDF, select the languages for recognition, generate the code, send the API call, and download the newly searchable PDF to experience its enhanced functionality.\u003C\u002Fp>\n\n    \u003Ch2>Start Programmatically Creating Searchable PDFs Today!\u003C\u002Fh2>\n    \u003Cp>Transform your static documents into dynamic, searchable data by integrating the pdfRest API to \u003Cstrong>programmatically OCR PDFs\u003C\u002Fstrong>. For detailed information on implementation and all available parameters, refer to our comprehensive \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\u002F\" target=\"_blank\">API Documentation\u003C\u002Fa>. Sign up for a \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fgetstarted\u002F\">free pdfRest account\u003C\u002Fa> and start automating your PDF OCR tasks today!\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-06-17T20:10:22.000+00:00","2026-09-02T18:29:14.000+00:00","2025-06-17T20:14:53.000+00:00","Learn how to programmatically OCR PDF files for searchable, extractable text using any programming language, including JavaScript, Python, PHP, C#, Java, and more.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F#article\",\n      \"headline\": \"How to Programmatically OCR PDFs to Create Searchable Documents\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F\",\n      \"datePublished\": \"2025-06-17T20:14:53.000Z\",\n      \"dateModified\": \"2026-09-01T06:10:14.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to programmatically OCR PDF files for searchable, extractable text using any programming language, including JavaScript, Python, PHP, C#, Java, and more.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"OCR, OCR PDF, Text\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Programmatically OCR PDFs to Create Searchable Documents\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4137,4138,4139,4140,4141],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-programmatically-ocr-pdfs-to-create-searchable-documents\u002F","How to Programmatically OCR PDFs to Create Searchable Documents, Tutorial | pdfRest",{"id":4146,"uuid":4147,"title":4148,"slug":4149,"html":4150,"comment_id":4146,"feature_image":48,"featured":284,"visibility":1257,"created_at":4151,"updated_at":4152,"published_at":4151,"custom_excerpt":4153,"codeinjection_head":4154,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4155,"primary_tag":4163,"url":4164,"excerpt":4153,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4165,"meta_description":4153,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a8155533c9f26b943955b","1e19c3fa-5399-4831-9371-15e4fb731a97","How to Redact PDF Text in .NET with C#","how-to-redact-pdf-text-in-net-with-c-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Permanently Redact PDF Text with C# and .NET\u003C\u002Fh2>\n\n\u003Cp>PDF redaction must remove sensitive text, not simply cover it visually. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf-api\u002F\">Redact PDF API Tool\u003C\u002Fa> uses two endpoints to make that distinction explicit. \u003Ccode>\u002Fpdf-with-redacted-text-preview\u003C\u002Fcode> identifies and marks the text selected by your rules, while \u003Ccode>\u002Fpdf-with-redacted-text-applied\u003C\u002Fcode> permanently removes the approved content. The workflow helps .NET teams automate recurring redaction work with clear visibility into matches before the source information is removed.\u003C\u002Fp>\n\n\u003Cp>This tutorial uses both endpoints in one C# workflow. The example immediately applies the preview so developers can see how to chain the calls. A production process can also insert an authorized approval rule between them when that step is part of the organization's redaction policy.\u003C\u002Fp>\n\n\u003Cp>For example, a .NET customer-support archive can remove email addresses and phone numbers from case attachments before the documents are supplied to an analytics team. The application can use maintained presets to find common data formats, route preview files for approval, and release only the permanently redacted results.\u003C\u002Fp>\n\n\u003Ch2>Create Redaction Rules in C#\u003C\u002Fh2>\n\n\u003Cp>The preview endpoint expects \u003Ccode>redactions\u003C\u002Fcode> as a JSON array. Each entry can use:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>A \u003Ccode>literal\u003C\u002Fcode> value for an exact word, phrase, name, or identifier\u003C\u002Fli>\n\u003Cli>A \u003Ccode>regex\u003C\u002Fcode> value for an organization-specific pattern\u003C\u002Fli>\n\u003Cli>A \u003Ccode>preset\u003C\u002Fcode> value for a common type of sensitive data\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Current presets cover formats such as email addresses, phone numbers, dates, U.S. Social Security numbers, credit-card numbers, bank-routing numbers, IBANs, SWIFT\u002FBIC numbers, URLs, and IPv4 or IPv6 addresses. These maintained patterns reduce the amount of matching logic your team must write for common data, while custom regular expressions and literals handle values unique to your organization. One request can combine all three methods.\u003C\u002Fp>\n\n\u003Cp>The C# sample uses Newtonsoft.Json \u003Ccode>JArray\u003C\u002Fcode> and \u003Ccode>JObject\u003C\u002Fcode> instances to build the array safely before serializing it into the multipart request. Replace the demonstration pattern with rules designed and tested for the documents your application processes.\u003C\u002Fp>\n\n\u003Ch2>C# Preview-and-Apply Example\u003C\u002Fh2>\n\n\u003Cp>Set the \u003Ccode>PDFREST_API_KEY\u003C\u002Fcode> environment variable and pass the input PDF path on the command line. The optional \u003Ccode>PDFREST_URL\u003C\u002Fcode> variable can select the EU service instead of the default US Cloud API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">\u002F*\n * What this sample does:\n * - Previews redactions and then applies them using the preview output.\n * - Routed from Program.cs as: `dotnet run -- redact-preview-and-finalize \u003Cpdf>`.\n *\n * Setup (environment):\n * - Copy .env.example to .env\n * - Set PDFREST_API_KEY=your_api_key_here\n * - Optional: set PDFREST_URL to override the API region. For EU\u002FGDPR compliance and proximity, use:\n *     PDFREST_URL=https:\u002F\u002Feu-api.pdfrest.com\n *   For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n *\n * Usage:\n *   dotnet run -- redact-preview-and-finalize \u002Fpath\u002Fto\u002Finput.pdf\n *\n * Output:\n * - Prints JSON responses for preview and finalize steps.\n *\u002F\n\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\nusing System.Text;\n\nnamespace Samples.ComplexFlowExamples\n{\n    public static class RedactPreviewAndFinalize\n    {\n        public static async Task Execute(string[] args)\n        {\n            if (args == null || args.Length \u003C 1)\n            {\n                Console.Error.WriteLine(\"redact-preview-and-finalize requires \u003Cpdf>\");\n                Environment.Exit(1);\n                return;\n            }\n            var inputPath = args[0];\n            if (!File.Exists(inputPath))\n            {\n                Console.Error.WriteLine($\"File not found: {inputPath}\");\n                Environment.Exit(1);\n                return;\n            }\n            var apiKey = Environment.GetEnvironmentVariable(\"PDFREST_API_KEY\");\n            if (string.IsNullOrWhiteSpace(apiKey))\n            {\n                Console.Error.WriteLine(\"Missing required environment variable: PDFREST_API_KEY\");\n                Environment.Exit(1);\n                return;\n            }\n            var baseUrl = Environment.GetEnvironmentVariable(\"PDFREST_URL\") ?? \"https:\u002F\u002Fapi.pdfrest.com\";\n\n            using (var httpClient = new HttpClient { BaseAddress = new Uri(baseUrl) })\n            {\n                \u002F\u002F Preview redaction\n                using var previewRequest = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-redacted-text-preview\");\n                previewRequest.Headers.TryAddWithoutValidation(\"Api-Key\", apiKey);\n                previewRequest.Headers.Accept.Add(new(\"application\u002Fjson\"));\n                var previewMultipartContent = new MultipartFormDataContent();\n                var byteArray = File.ReadAllBytes(inputPath);\n                var byteAryContent = new ByteArrayContent(byteArray);\n                previewMultipartContent.Add(byteAryContent, \"file\", Path.GetFileName(inputPath));\n                byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Foctet-stream\");\n                var redactionArray = new JArray\n                {\n                    new JObject { [\"type\"] = \"regex\", [\"value\"] = \"[Tt]he\" }\n                };\n                var byteArrayRedOption = new ByteArrayContent(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(redactionArray)));\n                previewMultipartContent.Add(byteArrayRedOption, \"redactions\");\n                previewRequest.Content = previewMultipartContent;\n                var pdfResponse = await httpClient.SendAsync(previewRequest);\n                var pdfResult = await pdfResponse.Content.ReadAsStringAsync();\n                Console.WriteLine(\"Redaction preview response received.\");\n                Console.WriteLine(pdfResult);\n                dynamic responseData = JObject.Parse(pdfResult);\n                string pdfID = responseData.outputId;\n\n                \u002F\u002F Apply finalization\n                using var finalizeRequest = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-redacted-text-applied\");\n                finalizeRequest.Headers.TryAddWithoutValidation(\"Api-Key\", apiKey);\n                finalizeRequest.Headers.Accept.Add(new(\"application\u002Fjson\"));\n                var finalMultipartContent = new MultipartFormDataContent();\n                var byteArrayIdOption = new ByteArrayContent(Encoding.UTF8.GetBytes(pdfID));\n                finalMultipartContent.Add(byteArrayIdOption, \"id\");\n                finalizeRequest.Content = finalMultipartContent;\n                var response = await httpClient.SendAsync(finalizeRequest);\n                var apiResult = await response.Content.ReadAsStringAsync();\n                Console.WriteLine(\"Finalized redaction response received.\");\n                Console.WriteLine(apiResult);\n            }\n        }\n    }\n}\u003C\u002Fpdf>\u003C\u002Fpdf>\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FComplex%20Flow%20Examples\u002Fredact-preview-and-finalize.cs\">pdfRest Redact PDF C# complex-flow sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Chain the Preview into the Applied Redaction\u003C\u002Fh2>\n\n\u003Cp>The first \u003Ccode>HttpRequestMessage\u003C\u002Fcode> uploads the PDF and serialized redaction array to \u003Ccode>pdf-with-redacted-text-preview\u003C\u002Fcode>. The response contains an \u003Ccode>outputId\u003C\u002Fcode> for the preview PDF. The sample parses that response with \u003Ccode>JObject\u003C\u002Fcode>, reads the ID, and adds it to a second multipart request for \u003Ccode>pdf-with-redacted-text-applied\u003C\u002Fcode>. Resource-based chaining keeps the intermediate file on the processing service, so the .NET application does not need to download and upload it again between the two stages.\u003C\u002Fp>\n\n\u003Cp>Only the second response represents the permanently redacted PDF. An application that displays or stores the first response as its final document would leave the targeted text in place beneath the preview markings.\u003C\u002Fp>\n\n\u003Cp>For a production .NET integration, verify \u003Ccode>IsSuccessStatusCode\u003C\u002Fcode> before parsing either response, handle invalid or missing JSON fields, set an appropriate timeout, and pass a \u003Ccode>CancellationToken\u003C\u002Fcode>. Do not send the apply request when the preview request fails or does not return a valid output ID. If the application needs a non-black final appearance, add the optional \u003Ccode>rgb_color\u003C\u002Fcode> field to the applied request.\u003C\u002Fp>\n\n\u003Ch2>Apply Approved Redactions at Scale\u003C\u002Fh2>\n\n\u003Cp>The preview endpoint makes each match visible, while the apply endpoint permanently removes the approved content instead of hiding it behind a visual overlay. Once an organization establishes its rules and approval path, the same C# workflow can apply them consistently across recurring document sets.\u003C\u002Fp>\n\n\u003Cp>Protect the original, preview, and final files with appropriate access controls and retention rules. Preview files remain inside the controlled workflow, while permanently redacted outputs can move into the organization's approved distribution process.\u003C\u002Fp>\n\n\u003Cp>Redact PDF combines flexible matching, maintained sensitive-data presets, a visible review stage, and permanent removal in one chainable API workflow. See the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\">Redact PDF API reference\u003C\u002Fa> for the current request fields, presets, and responses. If the source already exists as a pdfRest resource, both stages can use JSON payloads; see the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-preview.cs\">redaction preview JSON-payload sample\u003C\u002Fa> and the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-applied.cs\">applied redaction JSON-payload sample\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:22:13.000+00:00","2026-09-11T03:34:56.000+00:00","Learn how to redact text on a PDF document with C# using pdfRest Redact PDF API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F#article\",\n      \"headline\": \"How to Redact PDF Text in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\",\n      \"datePublished\": \"2025-04-24T18:22:13.000Z\",\n      \"dateModified\": \"2026-09-10T19:11:01.669Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to redact text on a PDF document with C# using pdfRest Redact PDF API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf-api\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-applied API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Redact PDF, Sanitization, Security, Text\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4156,4157,4158,4159,4160,4161,4162],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1985,"name":1986,"slug":1987,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-in-net-with-c-code\u002F","How to Redact PDF Text in .NET with C#, Tutorial | pdfRest",{"id":4167,"uuid":4168,"title":4169,"slug":4170,"html":4171,"comment_id":4167,"feature_image":48,"featured":284,"visibility":1257,"created_at":4172,"updated_at":4173,"published_at":4172,"custom_excerpt":4174,"codeinjection_head":4175,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4176,"primary_tag":4184,"url":4185,"excerpt":4174,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4186,"meta_description":4174,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a81d5533c9f26b9439577","985a00ea-077f-403b-bc6c-adb9dc9f978d","How to Redact PDF Text with cURL","how-to-redact-pdf-text-with-curl-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Permanently Redact PDF Text with cURL\u003C\u002Fh2>\n\n\u003Cp>Covering text with a visible box is not sufficient when confidential information must be removed from a PDF. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf-api\u002F\">Redact PDF API Tool\u003C\u002Fa> uses a two-stage workflow: first preview the text that matches your rules, then apply the approved redactions so the selected content is permanently removed. This gives your application an API-driven way to find repeated sensitive values across large document sets with a controlled preview step before permanent removal.\u003C\u002Fp>\n\n\u003Cp>This separation makes every proposed match visible before the source text is removed. A person or an automated approval rule can advance the preview into the apply step, while the distinct endpoints keep preview files clearly separated from finished redacted documents.\u003C\u002Fp>\n\n\u003Cp>For example, a legal-records workflow can search a set of documents for email addresses and client identifiers before files are released outside the case team. The preview call displays the matches, and the apply call then produces copies in which the approved values are permanently removed.\u003C\u002Fp>\n\n\u003Ch2>Define the Text to Redact\u003C\u002Fh2>\n\n\u003Cp>The \u003Ccode>redactions\u003C\u002Fcode> field is a JSON array. Each object uses one of three matching methods:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>literal\u003C\u002Fcode> finds an exact name, identifier, phrase, or other known string.\u003C\u002Fli>\n\u003Cli>\u003Ccode>regex\u003C\u002Fcode> finds text that follows a custom pattern.\u003C\u002Fli>\n\u003Cli>\u003Ccode>preset\u003C\u002Fcode> applies a maintained pattern for common data such as email addresses, phone numbers, dates, U.S. Social Security numbers, payment-card numbers, bank-routing numbers, IBANs, SWIFT\u002FBIC numbers, URLs, and IP addresses.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>The methods can be combined in the same request. Literal values provide exact matching, custom regular expressions address organization-specific formats, and pdfRest's maintained presets cover common sensitive-data patterns without requiring teams to build and maintain those expressions themselves. Approved rules can then be reused consistently across recurring document workflows.\u003C\u002Fp>\n\n\u003Ch2>cURL Preview-and-Apply Example\u003C\u002Fh2>\n\n\u003Cp>The current official sample requires cURL and \u003Ccode>jq\u003C\u002Fcode>. Replace the API-key and file-path placeholders before running it. The example sends the source PDF and redaction rules to the preview endpoint, reads the returned \u003Ccode>outputId\u003C\u002Fcode>, and supplies that ID to the applied-redaction endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# This sample demonstrates the workflow from unredacted document to fully\n# redacted document. The output file from the preview tool is immediately\n# forwarded to the finalization stage. We recommend inspecting the output from\n# the preview stage before utilizing this workflow to ensure that content is\n# redacted as intended.\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\nAPI_URL=\"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n# API_URL=\"https:\u002F\u002Feu-api.pdfrest.com\"\n\nAPI_KEY=\"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" # place your api key here\nREDACTIONS='[{\"type\":\"regex\",\"value\":\"[Tt]he\"}]'\nPREVIEW_OUTPUT=$(curl -X POST \"$API_URL\u002Fpdf-with-redacted-text-preview\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"redactions=$REDACTIONS\" \\\n  -F \"output=example_out\")\n\nPREVIEW_PDF_ID=$(jq -r '.outputId' \u003C\u003C\u003C $PREVIEW_OUTPUT)\n\necho $PREVIEW_OUTPUT | jq -r '.'\n\nAPPLIED_OUTPUT=$(curl -X POST \"$API_URL\u002Fpdf-with-redacted-text-applied\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"id=$PREVIEW_PDF_ID\" \\\n  -F \"output=example_out\")\n\necho $APPLIED_OUTPUT | jq -r '.'\n\n# All files uploaded or generated are automatically deleted based on the\n# File Retention Period as shown on https:\u002F\u002Fpdfrest.com\u002Fpricing.\n# For immediate deletion of files, particularly when sensitive data\n# is involved, an explicit delete call can be made to the API.\n\n# Optional deletion step — OFF by default.\n# Deletes all files in the workflow, including outputs. Save all desired files before enabling this step.\n# Enable by uncommenting the next line to delete sensitive files\n# DELETE_SENSITIVE_FILES=true\nif [ \"$DELETE_SENSITIVE_FILES\" = \"true\" ]; then\n  INPUT_PDF_ID=$(jq -r '.inputId' \u003C\u003C\u003C $PREVIEW_OUTPUT)\n  APPLIED_PDF_ID=$(jq -r '.outputId' \u003C\u003C\u003C $APPLIED_OUTPUT)\n  curl -X POST \"$API_URL\u002Fdelete\" \\\n    -H \"Accept: application\u002Fjson\" \\\n    -H \"Content-Type: multipart\u002Fform-data\" \\\n    -H \"Api-Key: $API_KEY\" \\\n    -F \"ids=$INPUT_PDF_ID, $PREVIEW_PDF_ID, $APPLIED_PDF_ID\" | jq -r '.'\nfi\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FComplex%20Flow%20Examples\u002Fredact-preview-and-finalize.sh\">pdfRest Redact PDF cURL complex-flow sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp>If the source PDF already has a pdfRest resource ID, the preview and apply requests can also use JSON payloads. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-preview.sh\">redaction preview JSON-payload sample\u003C\u002Fa> and the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-applied.sh\">applied redaction JSON-payload sample\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Preview Before Applying Permanent Redactions\u003C\u002Fh2>\n\n\u003Cp>The first POST request calls \u003Ccode>\u002Fpdf-with-redacted-text-preview\u003C\u002Fcode>. Its output PDF marks the selected areas so the matching results are visible. The script captures the JSON response, uses \u003Ccode>jq\u003C\u002Fcode> to read its \u003Ccode>outputId\u003C\u002Fcode>, and stores that ID in \u003Ccode>PREVIEW_PDF_ID\u003C\u002Fcode>. Because both redaction stages use pdfRest resource IDs, your application can complete the workflow without downloading and re-uploading the preview between calls.\u003C\u002Fp>\n\n\u003Cp>The second request sends \u003Ccode>PREVIEW_PDF_ID\u003C\u002Fcode> to \u003Ccode>\u002Fpdf-with-redacted-text-applied\u003C\u002Fcode>. This is the step that permanently removes the identified text. The applied endpoint can also accept the optional \u003Ccode>rgb_color\u003C\u002Fcode> parameter when the final redaction blocks should use a color other than the default black.\u003C\u002Fp>\n\n\u003Cp>The official sample immediately forwards the preview into the apply call to demonstrate the complete API chain. Workflows can also pause between the calls when an authorized approval step is part of the organization's redaction policy. Once a rule set is approved, the same resource-ID chain supports automatic processing at scale.\u003C\u002Fp>\n\n\u003Ch2>Apply and Protect the Final PDF\u003C\u002Fh2>\n\n\u003Cp>The apply endpoint permanently removes the approved content from the PDF rather than covering it with a visual overlay. The resulting resource ID can move directly into encryption, permission restriction, archival, or delivery steps, allowing the redacted document to remain inside one controlled API workflow.\u003C\u002Fp>\n\n\u003Cp>Keep the API key in an environment variable or secret manager rather than committed source code. Limit access to source and preview files because both can contain unredacted information. The sample also includes an optional call to the Delete Files endpoint; save any required outputs before enabling it, and never delete the preview resource before the applied-redaction call has completed.\u003C\u002Fp>\n\n\u003Cp>With exact matches, custom patterns, maintained presets, a reviewable preview, and permanent application in one API workflow, Redact PDF supports repeatable automation with controlled approvals. Review the current matching options and endpoint schemas in the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\">Redact PDF API reference\u003C\u002Fa>, or configure rules interactively in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:24:21.000+00:00","2026-09-11T03:34:55.000+00:00","Learn how to use cURL to redact text on a PDF document with the pdfRest Redact PDF API tool.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F#article\",\n      \"headline\": \"How to Redact PDF Text with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\",\n      \"datePublished\": \"2025-04-24T18:24:21.000Z\",\n      \"dateModified\": \"2026-09-10T19:11:01.669Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use cURL to redact text on a PDF document with the pdfRest Redact PDF API tool.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf-api\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-applied API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \"Redact PDF, Sanitization, Security, Text, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-curl-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4177,4178,4179,4180,4181,4182,4183],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1985,"name":1986,"slug":1987,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-with-curl-code\u002F","How to Redact PDF Text with cURL, Tutorial | pdfRest",{"id":4188,"uuid":4189,"title":4190,"slug":4191,"html":4192,"comment_id":4188,"feature_image":48,"featured":284,"visibility":1257,"created_at":4193,"updated_at":4194,"published_at":4193,"custom_excerpt":4195,"codeinjection_head":4196,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4197,"primary_tag":4204,"url":4205,"excerpt":4195,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4206,"meta_description":4195,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a820b533c9f26b9439580","ff5f9a65-a758-4a42-878e-92f6e3671c2c","How to Redact PDF Text with Java","how-to-redact-pdf-text-with-java-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Redact PDF Text with Java?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F'>Redact PDF API Tool\u003C\u002Fa> is a powerful solution for developers who need to programmatically redact sensitive information from PDF documents. This tutorial will guide you through the process of making an API call to the Redact PDF endpoint using Java, allowing you to automate the redaction process and integrate it into your Java applications seamlessly.\u003C\u002Fp>\n\n\u003Cp>In real-world scenarios, businesses often need to share documents while ensuring that sensitive information, such as personal data or confidential details, is not exposed. For instance, a legal firm might need to redact client information from case documents before sharing them with third parties. By using the Redact PDF API, developers can automate this redaction process, saving time and reducing the risk of human error.\u003C\u002Fp>\n\n\u003Ch2>Redact PDF Text with Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\npublic class PDFWithRedactedTextPreview {\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final String redaction_options =\n        \"[{\\\"type\\\":\\\"preset\\\",\\\"value\\\":\\\"email\\\"},{\\\"type\\\":\\\"regex\\\",\\\"value\\\":\\\"(\\\\\\\\+\\\\\\\\d{1,2}\\\\\\\\s)?\\\\\\\\(?\\\\\\\\d{3}\\\\\\\\)?[\\\\\\\\s.-]\\\\\\\\d{3}[\\\\\\\\s.-]\\\\\\\\d{4}\\\"},{\\\"type\\\":\\\"literal\\\",\\\"value\\\":\\\"word\\\"}]\";\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"redactions\", redaction_options)\n            .addFormDataPart(\"output\", \"pdfrest_redacted_text\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(\"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPDFWithRedactedTextPreview.java\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary libraries such as `Dotenv` for environment variable management, `OkHttp` for handling HTTP requests, and `JSONObject` for JSON manipulation. The `DEFAULT_FILE_PATH` and `DEFAULT_API_KEY` are placeholders for the file path and API key, respectively.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">File inputFile;\nif (args.length > 0) {\n  inputFile = new File(args[0]);\n} else {\n  inputFile = new File(DEFAULT_FILE_PATH);\n}\n\u003C\u002Fpre>\n\n\u003Cp>This snippet checks if a file path is provided as a command-line argument. If not, it defaults to the `DEFAULT_FILE_PATH`.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\u003C\u002Fpre>\n\n\u003Cp>The `Dotenv` library is used to load environment variables, allowing the API key to be stored securely outside the code.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">final String redaction_options = \"[{\\\"type\\\":\\\"preset\\\",\\\"value\\\":\\\"email\\\"},{\\\"type\\\":\\\"regex\\\",\\\"value\\\":\\\"(\\\\\\\\+\\\\\\\\d{1,2}\\\\\\\\s)?\\\\\\\\(?\\\\\\\\d{3}\\\\\\\\)?[\\\\\\\\s.-]\\\\\\\\d{3}[\\\\\\\\s.-]\\\\\\\\d{4}\\\"},{\\\"type\\\":\\\"literal\\\",\\\"value\\\":\\\"word\\\"}]\";\n\u003C\u002Fpre>\n\n\u003Cp>The `redaction_options` variable defines the redaction rules, using a JSON array to specify different types of redactions: preset (e.g., email), regex (e.g., phone numbers), and literal (e.g., specific words).\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">RequestBody requestBody = new MultipartBody.Builder()\n    .setType(MultipartBody.FORM)\n    .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n    .addFormDataPart(\"redactions\", redaction_options)\n    .addFormDataPart(\"output\", \"pdfrest_redacted_text\")\n    .build();\n\u003C\u002Fpre>\n\n\u003Cp>This section constructs the multipart request body, including the PDF file, redaction options, and output format.\u003C\u002Fp>\n\n\u003Cpre class=\"language-java\">Request request = new Request.Builder()\n    .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n    .url(\"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview\")\n    .post(requestBody)\n    .build();\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>Request\u003C\u002Fcode> object is created with the API key header and the endpoint URL, ready for execution.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use Java to make an API call to the pdfRest Redact PDF endpoint, automating the redaction of sensitive information from PDF files. You can explore other pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa> for more detailed information.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For code samples using JSON payloads, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FPDFWithRedactedTextPreview.java\">this GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:25:15.000+00:00","2026-09-02T18:29:19.000+00:00","Learn how to redact text on a PDF document using pdfRest Redact PDF API tool with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F#article\",\n      \"headline\": \"How to Redact PDF Text with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\",\n      \"datePublished\": \"2025-04-24T18:25:15.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:17.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to redact text on a PDF document using pdfRest Redact PDF API tool with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \"Java, Redact PDF, Security, Text\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-java-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4198,4199,4200,4201,4202,4203],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-with-java-code\u002F","How to Redact PDF Text with Java, Tutorial | pdfRest",{"id":4208,"uuid":4209,"title":4210,"slug":4211,"html":4212,"comment_id":4208,"feature_image":48,"featured":284,"visibility":1257,"created_at":4213,"updated_at":4194,"published_at":4213,"custom_excerpt":4214,"codeinjection_head":4215,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4216,"primary_tag":4223,"url":4224,"excerpt":4214,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4225,"meta_description":4214,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a8180533c9f26b9439565","0a8cd0cf-624b-4afb-8b61-3c40c5fb7f82","How to Redact PDF Text with Javascript in NodeJS","how-to-redact-pdf-text-with-javascript-code-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Redact PDF Text with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F'>Redact PDF API Tool\u003C\u002Fa> is a powerful solution for developers looking to automate the redaction of sensitive information from PDF documents. This tutorial will guide you through the process of sending an API call to Redact PDF using JavaScript, allowing you to efficiently redact text based on specific criteria.\u003C\u002Fp>\n\n\u003Cp>In real-world scenarios, businesses and individuals often need to share documents that contain confidential information, such as email addresses, phone numbers, or specific keywords. Using the Redact PDF API, you can automatically identify and redact this information, ensuring privacy and compliance with data protection regulations.\u003C\u002Fp>\n\n\u003Ch2>Redact PDF Text with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F**\n * This request demonstrates how to apply text redaction previews to a PDF.\n * This is step 1 of 2 toward applying redactions to text.\n *\u002F\nvar axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\nvar redaction_option_array = [];\nvar redaction_options1 = {\n    \"type\": \"preset\",\n    \"value\": \"email\",\n};\nvar redaction_options2 = {\n    \"type\": \"regex\",\n    \"value\": \"(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]\\\\d{3}[\\\\s.-]\\\\d{4}\",\n};\nvar redaction_options3 = {\n    \"type\": \"literal\",\n    \"value\": \"word\",\n};\nredaction_option_array.push(redaction_options1);\nredaction_option_array.push(redaction_options2);\nredaction_option_array.push(redaction_options3);\ndata.append('redactions', JSON.stringify(redaction_option_array));\ndata.append('output', 'pdfrest_pdf_with_redacted_text_preview');\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: 'post',\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', \u002F\u002F Replace with your API key\n    ...data.getHeaders() \u002F\u002F set headers for the request\n  },\n  data : data \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\n\u002F\u002F If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.js' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-redacted-text-preview.js\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by requiring necessary modules: \u003Ccode>axios\u003C\u002Fcode> for making HTTP requests, \u003Ccode>form-data\u003C\u002Fcode> for handling form data, and \u003Ccode>fs\u003C\u002Fcode> for file system operations.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new \u003Ccode>FormData\u003C\u002Fcode> instance is created, and a PDF file is appended to it. The file path should be replaced with the actual path of the PDF you wish to redact.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var redaction_options1 = {\n    \"type\": \"preset\",\n    \"value\": \"email\",\n};\n\u003C\u002Fpre>\n\n\u003Cp>This snippet defines a redaction option to remove email addresses using a preset type. Other options include \u003Ccode>regex\u003C\u002Fcode> for regular expressions and \u003Ccode>literal\u003C\u002Fcode> for specific words.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: 'post',\n  maxBodyLength: Infinity,\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',\n    ...data.getHeaders()\n  },\n  data : data\n};\n\u003C\u002Fpre>\n\n\u003Cp>The configuration for the \u003Ccode>axios\u003C\u002Fcode> request is set here, including the HTTP method, URL, headers (with an API key), and the form data to be sent.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\u003C\u002Fpre>\n\n\u003Cp>This section sends the request and handles the response or any errors that may occur. The response data is logged to the console.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to make an API call to redact text from a PDF using JavaScript and the pdfRest API. You can explore more API tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For further details, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For JSON payload samples, visit \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-preview.js\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:22:56.000+00:00","Learn how to use pdfRest Redact PDF API tool with JavaScript to redact text on a PDF document.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F#article\",\n      \"headline\": \"How to Redact PDF Text with Javascript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\",\n      \"datePublished\": \"2025-04-24T18:22:56.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:17.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest Redact PDF API tool with JavaScript to redact text on a PDF document.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \"JavaScript, Redact PDF, Security, Text\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text with Javascript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4217,4218,4219,4220,4221,4222],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-with-javascript-code-in-nodejs\u002F","How to Redact PDF Text with Javascript in NodeJS, Tutorial | pdfRest",{"id":4227,"uuid":4228,"title":4229,"slug":4230,"html":4231,"comment_id":4227,"feature_image":48,"featured":284,"visibility":1257,"created_at":4232,"updated_at":4194,"published_at":4232,"custom_excerpt":4233,"codeinjection_head":4234,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4235,"primary_tag":4242,"url":4243,"excerpt":4233,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4244,"meta_description":4233,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a811a533c9f26b9439552","70c43aee-39af-4398-91e7-476942535dd7","How to Redact PDF Text with PHP","how-to-redact-pdf-text-with-php-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Redact PDF Text with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F'>Redact PDF API Tool\u003C\u002Fa> is a powerful solution for developers looking to automate the process of redacting sensitive information from PDF documents. By integrating this tool with PHP, developers can efficiently send API calls to redact text in PDFs, making it an ideal choice for applications that handle confidential documents. This tutorial will guide you through the process of sending an API call to the Redact PDF endpoint using PHP.\u003C\u002Fp>\n\n\u003Cp>In a real-world scenario, a legal firm might need to redact sensitive client information such as email addresses, phone numbers, or specific keywords from legal documents before sharing them with external parties. Using the Redact PDF API, the firm can automate this process, ensuring that all sensitive data is consistently and accurately redacted, saving time and reducing the risk of human error.\u003C\u002Fp>\n\n\u003Ch2>Redact PDF Text with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">\nrequire 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\nuse GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\n$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by the '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'redactions', \u002F\u002F Specify the field name for the text options.\n      'contents' => '[{\"type\":\"preset\",\"value\":\"email\"},{\"type\":\"regex\",\"value\":\"(\\\\\\\\+\\\\\\\\d{1,2}\\\\\\\\s)?\\\\\\\\(?\\\\\\\\d{3}\\\\\\\\)?[\\\\\\\\s.-]\\\\\\\\d{3}[\\\\\\\\s.-]\\\\\\\\d{4}\"},{\"type\":\"literal\",\"value\":\"word\"}]' \u002F\u002F Set the value for the redactions option. This is a JSON-formatted string consisting of an array with sets of text options.\n    ],\n    [\n      'name' => 'output', \u002F\u002F Specify the field name for the output option.\n      'contents' => 'pdfrest_pdf_with_redacted_text' \u002F\u002F Set the value for the output option (in this case, 'pdfrest_pdf_with_redacted_text').\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview', $headers); \u002F\u002F Create a new HTTP POST request with the API endpoint and headers.\n\n$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\necho $res->getBody(); \u002F\u002F Output the response body, which contains the PDF with redaction preview annotations.\n\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-redacted-text-preview.php\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by including the autoload file to use the Guzzle HTTP client:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">require 'vendor\u002Fautoload.php';\n\u003C\u002Fpre>\n\n\u003Cp>This is followed by importing necessary classes from Guzzle:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">use GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\u003C\u002Fpre>\n\n\u003Cp>A new Guzzle client is instantiated:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$client = new Client();\n\u003C\u002Fpre>\n\n\u003Cp>The API key is set in the headers for authentication purposes:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$headers = [\n  'Api-Key' => 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n];\n\u003C\u002Fpre>\n\n\u003Cp>The options array is configured for a multipart request. It includes the file to be redacted, the redaction rules, and the desired output format:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$options = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'),\n      'filename' => '\u002Fpath\u002Fto\u002Ffile',\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">'\n      ]\n    ],\n    [\n      'name' => 'redactions',\n      'contents' => '[{\"type\":\"preset\",\"value\":\"email\"},{\"type\":\"regex\",\"value\":\"(\\\\\\\\+\\\\\\\\d{1,2}\\\\\\\\s)?\\\\\\\\(?\\\\\\\\d{3}\\\\\\\\)?[\\\\\\\\s.-]\\\\\\\\d{3}[\\\\\\\\s.-]\\\\\\\\d{4}\"},{\"type\":\"literal\",\"value\":\"word\"}]'\n    ],\n    [\n      'name' => 'output',\n      'contents' => 'pdfrest_pdf_with_redacted_text'\n    ]\n  ]\n];\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>The request is created and sent asynchronously, with the response being outputted:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview', $headers);\n$res = $client->sendAsync($request, $options)->wait();\necho $res->getBody();\n\u003C\u002Fpre>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to send an API call to the pdfRest Redact PDF endpoint using PHP. This allows you to automate the redaction of sensitive information in PDF documents. To explore more, you can try out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. Code samples using JSON payloads can be found \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-preview.php\">here\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:21:14.000+00:00","Learn how to redact text on a PDF document using pdfRest Redact PDF API tool with PHP.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F#article\",\n      \"headline\": \"How to Redact PDF Text with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\",\n      \"datePublished\": \"2025-04-24T18:21:14.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:18.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to redact text on a PDF document using pdfRest Redact PDF API tool with PHP.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \"PHP, Redact PDF, Security, Text\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-php-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4236,4237,4238,4239,4240,4241],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-with-php-code\u002F","How to Redact PDF Text with PHP, Tutorial | pdfRest",{"id":4246,"uuid":4247,"title":4248,"slug":4249,"html":4250,"comment_id":4246,"feature_image":48,"featured":284,"visibility":1257,"created_at":4251,"updated_at":4252,"published_at":4251,"custom_excerpt":4253,"codeinjection_head":4254,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4255,"primary_tag":4262,"url":4263,"excerpt":4253,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4264,"meta_description":4253,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"680a7f4a533c9f26b9439549","827c57dc-0e3f-44dc-b3e5-d7953d092d75","How to Redact PDF Text with Python","how-to-redact-pdf-text-with-python-code","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Redact PDF Text with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest \u003Ca href='https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F'>Redact PDF API Tool\u003C\u002Fa> is a powerful resource for developers looking to automate the process of redacting sensitive information from PDF documents. By using this tool, you can programmatically remove or obscure information such as email addresses, phone numbers, and specific words or phrases. This tutorial will guide you through sending an API call to the Redact PDF endpoint using Python, allowing you to integrate this functionality into your applications seamlessly.\u003C\u002Fp>\n\n\u003Cp>In the real world, there are numerous scenarios where redacting information from PDFs is crucial. For example, a legal firm may need to share documents with clients or opposing counsel but must ensure that certain sensitive information, like client contact details or proprietary terms, is not visible. Similarly, businesses handling confidential information may need to distribute reports internally while ensuring that sensitive data is protected. Using the Redact PDF API, these tasks become efficient and reliable.\u003C\u002Fp>\n\n\u003Ch2>Redact PDF Text with Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\npdf_with_redacted_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview'\n\nredaction_options = [{\n        \"type\": \"preset\",\n        \"value\": \"email\",\n    },\n    {\n        \"type\": \"regex\",\n        \"value\": \"(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]\\\\d{3}[\\\\s.-]\\\\d{4}\",\n    },\n    {\n        \"type\": \"literal\",\n        \"value\": \"word\",\n    }]\n\nmp_encoder_redactedtextPDF = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'redactions': json.dumps(redaction_options),\n        'output' : 'example_out'\n    }\n)\n\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_redactedtextPDF.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to pdf-with-redacted-text endpoint...\")\nresponse = requests.post(pdf_with_redacted_text_endpoint_url, data=mp_encoder_redactedtextPDF, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-redacted-text-preview.py\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The code begins by importing necessary libraries: \u003Ccode>requests_toolbelt\u003C\u002Fcode> for handling multipart form data, \u003Ccode>requests\u003C\u002Fcode> for making HTTP requests, and \u003Ccode>json\u003C\u002Fcode> for handling JSON data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">pdf_with_redacted_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-redacted-text-preview'\n\u003C\u002Fpre>\n\n\u003Cp>This line sets the endpoint URL for the Redact PDF API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">redaction_options = [{\n        \"type\": \"preset\",\n        \"value\": \"email\",\n    },\n    {\n        \"type\": \"regex\",\n        \"value\": \"(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]\\\\d{3}[\\\\s.-]\\\\d{4}\",\n    },\n    {\n        \"type\": \"literal\",\n        \"value\": \"word\",\n    }]\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>redaction_options\u003C\u002Fcode> variable defines the types of redactions to apply. It includes:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>preset\u003C\u002Fcode>: Redacts email addresses.\u003C\u002Fli>\n\u003Cli>\u003Ccode>regex\u003C\u002Fcode>: Uses a regular expression to redact phone numbers.\u003C\u002Fli>\n\u003Cli>\u003Ccode>literal\u003C\u002Fcode>: Redacts the word \"word\".\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cpre class=\"language-python\">mp_encoder_redactedtextPDF = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'redactions': json.dumps(redaction_options),\n        'output' : 'example_out'\n    }\n)\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>MultipartEncoder\u003C\u002Fcode> is used to create a multipart form-data payload. It includes:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>file\u003C\u002Fcode>: The PDF file to redact.\u003C\u002Fli>\n\u003Cli>\u003Ccode>redactions\u003C\u002Fcode>: The JSON-encoded redaction options.\u003C\u002Fli>\n\u003Cli>\u003Ccode>output\u003C\u002Fcode>: The name for the output file.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_redactedtextPDF.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>headers\u003C\u002Fcode> dictionary sets the request headers, including the API key for authentication.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(pdf_with_redacted_text_endpoint_url, data=mp_encoder_redactedtextPDF, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This line sends a POST request to the API endpoint with the prepared data and headers.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">if response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>The response is checked for success. If successful, the JSON response is printed; otherwise, the error message is displayed.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use Python to send an API call to the pdfRest Redact PDF endpoint, allowing you to automate the redaction of sensitive information from PDF documents. This is just one of the many tools available through pdfRest. To explore further, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa> for more detailed information.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-redacted-text-preview.py\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2025-04-24T18:13:30.000+00:00","2026-09-02T18:29:20.000+00:00","Learn how to use the pdfRest Redact PDF API tool with Python to redact sensitive text on a PDF document.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F#article\",\n      \"headline\": \"How to Redact PDF Text with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\",\n      \"datePublished\": \"2025-04-24T18:13:30.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:18.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use the pdfRest Redact PDF API tool with Python to redact sensitive text on a PDF document.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Redact PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fredact-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-redacted-text-preview API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fredact-pdf\"\n        }\n      ],\n      \"keywords\": \"Python, Redact PDF, Security, Text\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Redact PDF Text with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-redact-pdf-text-with-python-code\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4256,4257,4258,4259,4260,4261],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":2013,"name":2014,"slug":2015,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1989,"name":1990,"slug":1991,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-redact-pdf-text-with-python-code\u002F","How to Redact PDF Text with Python, Tutorial | pdfRest",{"id":4266,"uuid":4267,"title":4268,"slug":4269,"html":4270,"comment_id":4266,"feature_image":48,"featured":284,"visibility":1257,"created_at":4271,"updated_at":4272,"published_at":4271,"custom_excerpt":4273,"codeinjection_head":4274,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4275,"primary_tag":4285,"url":4286,"excerpt":4273,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4287,"meta_description":4273,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66ab986b533c9f26b94380b4","7a811d62-ef58-4d5e-8101-328b5f6d0468","How to Use OCR to Extract Text from PDF Images in .NET with C#","how-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to Extract Text from PDF with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful resource for converting scanned documents and images into searchable and extractable text. This tutorial will show you how to send API calls to OCR PDF and Extract Text with C#, making it easier to integrate OCR functionality into your C# applications.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large collection of scanned documents that you need to search through for specific information. Manually transcribing these documents would be time-consuming and error-prone. By using the OCR PDF and Extract Text API Tools, you can automate the process of extracting text from these documents, making them searchable and editable, thus saving time and improving accuracy.\u003C\u002Fp>\n\n\u003Ch2>PDF OCR Text Extraction with C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using Newtonsoft.Json.Linq;\nusing System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Text;\nusing System.Threading.Tasks;\n\nclass OcrWithExtractText\n{\n    private static readonly string apiKey = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"; \u002F\u002F Your API key here\n\n    static async Task Main(string[] args)\n    {\n        using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n        {\n            \u002F\u002F Upload PDF for OCR\n            using var ocrRequest = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-ocr-text\");\n\n            ocrRequest.Headers.TryAddWithoutValidation(\"Api-Key\", apiKey);\n            ocrRequest.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n            var ocrMultipartContent = new MultipartFormDataContent();\n\n            var pdfByteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile.pdf\");\n            var pdfByteArrayContent = new ByteArrayContent(pdfByteArray);\n            ocrMultipartContent.Add(pdfByteArrayContent, \"file\", \"file.pdf\");\n            pdfByteArrayContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n            ocrRequest.Content = ocrMultipartContent;\n            var ocrResponse = await httpClient.SendAsync(ocrRequest);\n\n            var ocrResult = await ocrResponse.Content.ReadAsStringAsync();\n            Console.WriteLine(\"OCR response received.\");\n            Console.WriteLine(ocrResult);\n\n            dynamic ocrResponseData = JObject.Parse(ocrResult);\n            string ocrPDFID = ocrResponseData.outputId;\n\n            \u002F\u002F Extract text from OCR'd PDF\n            using var extractTextRequest = new HttpRequestMessage(HttpMethod.Post, \"extracted-text\");\n\n            extractTextRequest.Headers.TryAddWithoutValidation(\"Api-Key\", apiKey);\n            extractTextRequest.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n            var extractTextMultipartContent = new MultipartFormDataContent();\n\n            var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(ocrPDFID));\n            extractTextMultipartContent.Add(byteArrayOption, \"id\");\n\n            extractTextRequest.Content = extractTextMultipartContent;\n            var extractTextResponse = await httpClient.SendAsync(extractTextRequest);\n\n            var extractTextResult = await extractTextResponse.Content.ReadAsStringAsync();\n            Console.WriteLine(\"Extract text response received.\");\n            Console.WriteLine(extractTextResult);\n\n            dynamic extractTextResponseData = JObject.Parse(extractTextResult);\n            string fullText = extractTextResponseData.fullText;\n\n            Console.WriteLine(\"Extracted text:\");\n            Console.WriteLine(fullText);\n        }\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FComplex%20Flow%20Examples\u002Focr-with-extract-text.cs\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the provided code to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">private static readonly string apiKey = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"; \u002F\u002F Your API key here\n\u003C\u002Fpre>\n\n\u003Cp>This line defines the API key required to authenticate your requests to the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>Here, we create an instance of \u003Ccode>HttpClient\u003C\u002Fcode> with the base address set to the pdfRest API URL.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using var ocrRequest = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-ocr-text\");\n\u003C\u002Fpre>\n\n\u003Cp>This line initializes a new HTTP POST request to the \u003Ccode>pdf-with-ocr-text\u003C\u002Fcode> endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">ocrRequest.Headers.TryAddWithoutValidation(\"Api-Key\", apiKey);\nocrRequest.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue(\"application\u002Fjson\"));\n\u003C\u002Fpre>\n\n\u003Cp>These lines add the necessary headers to the request, including the API key and the expected response format (JSON).\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var pdfByteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile.pdf\");\nvar pdfByteArrayContent = new ByteArrayContent(pdfByteArray);\nocrMultipartContent.Add(pdfByteArrayContent, \"file\", \"file.pdf\");\npdfByteArrayContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\u003C\u002Fpre>\n\n\u003Cp>Here, we read the PDF file into a byte array and add it to the request content as a multipart form data. The content type is set to \u003Ccode>application\u002Fpdf\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var ocrResponse = await httpClient.SendAsync(ocrRequest);\nvar ocrResult = await ocrResponse.Content.ReadAsStringAsync();\n\u003C\u002Fpre>\n\n\u003Cp>We send the OCR request and read the response content as a string.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">dynamic ocrResponseData = JObject.Parse(ocrResult);\nstring ocrPDFID = ocrResponseData.outputId;\n\u003C\u002Fpre>\n\n\u003Cp>The response is parsed as a JSON object, and the output ID of the OCR'd PDF is extracted.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using var extractTextRequest = new HttpRequestMessage(HttpMethod.Post, \"extracted-text\");\n\u003C\u002Fpre>\n\n\u003Cp>We initialize a new HTTP POST request to the \u003Ccode>extracted-text\u003C\u002Fcode> endpoint for extracting text from the OCR'd PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(ocrPDFID));\nextractTextMultipartContent.Add(byteArrayOption, \"id\");\n\u003C\u002Fpre>\n\n\u003Cp>The OCR'd PDF ID is added to the request content as a multipart form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var extractTextResponse = await httpClient.SendAsync(extractTextRequest);\nvar extractTextResult = await extractTextResponse.Content.ReadAsStringAsync();\n\u003C\u002Fpre>\n\n\u003Cp>We send the extract text request and read the response content as a string.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">dynamic extractTextResponseData = JObject.Parse(extractTextResult);\nstring fullText = extractTextResponseData.fullText;\n\u003C\u002Fpre>\n\n\u003Cp>The response is parsed as a JSON object, and the extracted text is retrieved.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we demonstrated how to use the pdfRest OCR PDF API tool with the Extract Text API tool to extract image-based text from a PDF using C#. By following these steps, you can integrate OCR functionality into your own C# applications.\u003C\u002Fp>\n\n\u003Cp>To explore more functionalities, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-08-01T14:15:07.000+00:00","2026-09-02T18:29:43.000+00:00","Learn how to extract all text from a PDF using pdfRest OCR PDF and Extract Text API Tools with C#","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\",\n      \"datePublished\": \"2024-08-01T14:15:07.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:26.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract all text from a PDF using pdfRest OCR PDF and Extract Text API Tools with C#\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Data, Extract, Extract Text, OCR, OCR PDF, Text\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4276,4277,4278,4279,4280,4281,4282,4283,4284],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-in-net-with-c\u002F","How to Use OCR to Extract Text from PDF Images in .NET with C#, Tutorial | pdfRest",{"id":4289,"uuid":4290,"title":4291,"slug":4292,"html":4293,"comment_id":4289,"feature_image":48,"featured":284,"visibility":1257,"created_at":4294,"updated_at":4295,"published_at":4294,"custom_excerpt":4296,"codeinjection_head":4297,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4298,"primary_tag":4308,"url":4309,"excerpt":4296,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4310,"meta_description":4296,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66ab9a81533c9f26b94380c8","8dfbadfa-f6b0-4512-a851-4b56ceff1979","How to Use OCR to Extract Text from PDF Images with cURL","how-to-use-ocr-to-extract-text-from-pdf-images-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to Extract Text from PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful resource that allows you to convert scanned documents into PDFs with searchable and extractable text using Optical Character Recognition (OCR). This tutorial will guide you through the process of sending API calls to OCR PDF and Extract Text with cURL, a command-line tool for transferring data using various network protocols.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a stack of scanned documents that you need to analyze in aggregrate. For instance, a law firm might have hundreds of pages of legal documents that need to be assessed. Using the pdfRest OCR PDF and Extract Text API Tools, you can automate this process, extracting all text for further processing or analysis.\u003C\u002Fp>\n\n\u003Ch2>PDF OCR Text Extraction with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">#!\u002Fbin\u002Fsh\n\n# In this sample, we will show how to convert a scanned document into a PDF with\n# searchable and extractable text using Optical Character Recognition (OCR), and then\n# extract that text from the newly created document.\n#\n# First, we will upload a scanned PDF to the \u002Fpdf-with-ocr-text route and capture the\n# output ID. Then, we will send the output ID to the \u002Fextracted-text route, which will\n# return the newly added text.\n\nAPI_KEY=\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" # Replace with your API key\n\n# Upload PDF for OCR\nOCR_PDF_ID=$(curl -s -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile.pdf\" \\\n  -F \"output=example_pdf-with-ocr-text_out\"\\\n  | jq -r '.outputId')\n\n\n# Extract text from OCR'd PDF\nEXTRACT_TEXT_RESPONSE=$(curl -s -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"id=$OCR_PDF_ID\")\n\n\nFULL_TEXT=$(echo $EXTRACT_TEXT_RESPONSE | jq -r '.fullText')\necho \"Extracted text: $FULL_TEXT\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FComplex%20Flow%20Examples\u002Focr-with-extract-text.sh\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The script begins by defining the API key:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">API_KEY=\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" # Replace with your API key\u003C\u002Fpre>\n\n\u003Cp>Replace the placeholder with your actual API key from pdfRest.\u003C\u002Fp>\n\n\u003Cp>Next, we upload the PDF for OCR processing:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">OCR_PDF_ID=$(curl -s -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile.pdf\" \\\n  -F \"output=example_pdf-with-ocr-text_out\"\\\n  | jq -r '.outputId')\u003C\u002Fpre>\n\n\u003Cp>This cURL command sends a POST request to the \u003Ccode>https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\u003C\u002Fcode> endpoint. The headers specify that the request accepts JSON responses and that the content type is multipart\u002Fform-data. The \u003Ccode>-F\u003C\u002Fcode> flag is used to specify the file to upload and the desired output name. The \u003Ccode>jq\u003C\u002Fcode> command extracts the \u003Ccode>outputId\u003C\u002Fcode> from the JSON response.\u003C\u002Fp>\n\n\u003Cp>Then, we extract the text from the OCR'd PDF:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">EXTRACT_TEXT_RESPONSE=$(curl -s -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: $API_KEY\" \\\n  -F \"id=$OCR_PDF_ID\")\u003C\u002Fpre>\n\n\u003Cp>This cURL command sends another POST request, this time to the \u003Ccode>https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\u003C\u002Fcode> endpoint. The \u003Ccode>id\u003C\u002Fcode> parameter is set to the \u003Ccode>outputId\u003C\u002Fcode> obtained from the previous step.\u003C\u002Fp>\n\n\u003Cp>Finally, we extract and print the full text:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">FULL_TEXT=$(echo $EXTRACT_TEXT_RESPONSE | jq -r '.fullText')\necho \"Extracted text: $FULL_TEXT\"\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>jq\u003C\u002Fcode> command extracts the \u003Ccode>fullText\u003C\u002Fcode> field from the JSON response, and the script prints the extracted text.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use cURL to send an API call to the pdfRest OCR PDF API Tool and extract the text from the OCR'd PDF. This process can be incredibly useful for PDF image-based text extraction.\u003C\u002Fp>\n\n\u003Cp>To explore more functionalities, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each endpoint, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-08-01T14:24:01.000+00:00","2026-09-02T18:29:44.000+00:00","Learn how to use pdfRest OCR PDF and Extract Text API Tools to extract all text from a PDF with cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\",\n      \"datePublished\": \"2024-08-01T14:24:01.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:26.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF and Extract Text API Tools to extract all text from a PDF with cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Data, Extract, Extract Text, OCR, OCR PDF, Text, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4299,4300,4301,4302,4303,4304,4305,4306,4307],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-curl\u002F","How to Use OCR to Extract Text from PDF Images with cURL, Tutorial | pdfRest",{"id":4312,"uuid":4313,"title":4314,"slug":4315,"html":4316,"comment_id":4312,"feature_image":48,"featured":284,"visibility":1257,"created_at":4317,"updated_at":4295,"published_at":4318,"custom_excerpt":4319,"codeinjection_head":4320,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4321,"primary_tag":4331,"url":4332,"excerpt":4319,"reading_time":369,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4333,"meta_description":4319,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c61533c9f26b943b5c0","4bcfbaf0-3ddb-4a88-aab4-49b233f80480","How to Use OCR to Extract Text from PDF Images with Java","how-to-use-ocr-to-extract-text-from-pdf-images-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>In the following tutorial, you'll use Java and the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\">OCR PDF API Tool\u003C\u002Fa> to use OCR to extract text from PDF images. The complex flow passes the OCR output ID directly into Extract Text, avoiding a download and re-upload between operations. The example is designed to clarify both the API-specific fields and the surrounding HTTP request used to use OCR to extract text from PDF images.\u003C\u002Fp>\n\n\u003Ch2>Why Use OCR to Extract Text from PDF Images with Java?\u003C\u002Fh2>\n\n\u003Cp>A scanned document may contain visible words but no searchable text objects. The two-step workflow first adds an OCR text layer and then extracts that recognized content for indexing or analysis.\u003C\u002Fp>\n\n\u003Cp>The Complex Flow example passes the OCR call’s \u003Ccode>outputId\u003C\u002Fcode> into \u003Ccode>\u002Fextracted-text\u003C\u002Fcode>. This resource-ID handoff avoids downloading and uploading the intermediate PDF.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\n\n\u002F* In this sample, we will show how to convert a scanned document into a PDF with\n * searchable and extractable text using Optical Character Recognition (OCR), and then\n * extract that text from the newly created document.\n *\n * First, we will upload a scanned PDF to the \u002Fpdf-with-ocr-text route and capture the\n * output ID. Then, we will send the output ID to the \u002Fextracted-text route, which will\n * return the newly added text.\n *\u002F\n\npublic class OcrWithExtractText {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your PDF file here, or as the first argument when running the program.\n  private static final String DEFAULT_PDF_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File pdfFile;\n    if (args.length > 0) {\n      pdfFile = new File(args[0]);\n    } else {\n      pdfFile = new File(DEFAULT_PDF_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody pdfFileRequestBody =\n        RequestBody.create(pdfFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody ocrRequestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", pdfFile.getName(), pdfFileRequestBody)\n            .addFormDataPart(\"output\", \"example_pdf-with-ocr-text_out\")\n            .build();\n    Request ocrRequest =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(ocrRequestBody)\n            .build();\n    try {\n      OkHttpClient ocrClient =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response ocrResponse = ocrClient.newCall(ocrRequest).execute();\n\n      System.out.println(\"Response status code: \" + ocrResponse.code());\n      if (ocrResponse.body() != null) {\n        String ocrResponseString = ocrResponse.body().string();\n\n        JSONObject ocrJSON = new JSONObject(ocrResponseString);\n        if (ocrJSON.has(\"error\")) {\n          System.out.println(\"Error during OCR call: \" + ocrResponseString);\n          return;\n        }\n\n        String ocrPDFID = ocrJSON.get(\"outputId\").toString();\n        System.out.println(\"Got the output ID: \" + ocrPDFID);\n\n        RequestBody extractRequestBody =\n            new MultipartBody.Builder()\n                .setType(MultipartBody.FORM)\n                .addFormDataPart(\"id\", ocrPDFID)\n                .build();\n        Request extractRequest =\n            new Request.Builder()\n                .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n                .url(API_URL + \"\u002Fextracted-text\")\n                .post(extractRequestBody)\n                .build();\n        try {\n          OkHttpClient extractClient =\n              new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n          Response extractResponse = extractClient.newCall(extractRequest).execute();\n\n          System.out.println(\"Response status code: \" + extractResponse.code());\n          if (extractResponse.body() != null) {\n            String extractResponseString = extractResponse.body().string();\n\n            JSONObject extractJSON = new JSONObject(extractResponseString);\n            if (extractJSON.has(\"error\")) {\n              System.out.println(\"Error during text extraction call: \" + extractResponseString);\n              return;\n            }\n\n            System.out.println(extractJSON.getString(\"fullText\"));\n          }\n        } catch (IOException e) {\n          throw new RuntimeException(e);\n        }\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FComplex%20Flow%20Examples\u002FOcrWithExtractText.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.*;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>This client combines OkHttp networking with dotenv configuration and \u003Ccode>org.json\u003C\u002Fcode> processing.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your PDF file here, or as the first argument when running the program.\n  private static final String DEFAULT_PDF_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File pdfFile;\n    if (args.length > 0) {\n      pdfFile = new File(args[0]);\n    } else {\n      pdfFile = new File(DEFAULT_PDF_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody pdfFileRequestBody =\u003C\u002Fpre>\n\n\u003Cp>The sample configuration separates file selection from authentication so either value can change without rewriting the request.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody pdfFileRequestBody =\n        RequestBody.create(pdfFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody ocrRequestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", pdfFile.getName(), pdfFileRequestBody)\n            .addFormDataPart(\"output\", \"example_pdf-with-ocr-text_out\")\n            .build();\n    Request ocrRequest =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(ocrRequestBody)\n            .build();\n    try {\n      OkHttpClient ocrClient =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The Complex Flow example passes the OCR call’s \u003Ccode>outputId\u003C\u002Fcode> into \u003Ccode>\u002Fextracted-text\u003C\u002Fcode>. This resource-ID handoff avoids downloading and uploading the intermediate PDF. This request body collects the named parts before OkHttp calculates the final multipart header and body encoding.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request ocrRequest =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(ocrRequestBody)\n            .build();\n    try {\n      OkHttpClient ocrClient =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The HTTP request adds the API key header, selects the operation URL, and attaches the prepared body; changing the base constant switches between US and EU service hosts.\u003C\u002Fp>\n\n\u003Ch3>Pass resources between workflow stages\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">if (ocrJSON.has(\"error\")) {\n          System.out.println(\"Error during OCR call: \" + ocrResponseString);\n          return;\n        }\n\n        String ocrPDFID = ocrJSON.get(\"outputId\").toString();\n        System.out.println(\"Got the output ID: \" + ocrPDFID);\n\n        RequestBody extractRequestBody =\n            new MultipartBody.Builder()\n                .setType(MultipartBody.FORM)\n                .addFormDataPart(\"id\", ocrPDFID)\n                .build();\n        Request extractRequest =\n            new Request.Builder()\n                .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\u003C\u002Fpre>\n\n\u003Cp>In the Use OCR to Extract Text from PDF Images workflow, Java reads the generated resource ID from one response and supplies it to the next endpoint, avoiding a download and another upload of the intermediate file.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">OkHttpClient ocrClient =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n\n      Response ocrResponse = ocrClient.newCall(ocrRequest).execute();\n\n      System.out.println(\"Response status code: \" + ocrResponse.code());\n      if (ocrResponse.body() != null) {\n        String ocrResponseString = ocrResponse.body().string();\n\n        JSONObject ocrJSON = new JSONObject(ocrResponseString);\n        if (ocrJSON.has(\"error\")) {\n          System.out.println(\"Error during OCR call: \" + ocrResponseString);\n          return;\n        }\n\n        String ocrPDFID = ocrJSON.get(\"outputId\").toString();\u003C\u002Fpre>\n\n\u003Cp>The first response supplies the OCR PDF resource ID, while the second returns the recognized text; the example checks both stages for errors before printing \u003Ccode>fullText\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>We have now covered the request and response flow for using Java to use OCR to extract text from PDF images. With that foundation, you can use OCR plus extraction for scanned correspondence, historical records, receipts, and image-based document archives.\u003C\u002Fp>\n\n\u003Cp>Before relying on the result in an automated workflow, keep in mind that recognition quality depends on scan resolution, orientation, language, and image clarity, so test the actual document population. Preserve both the searchable PDF ID and extracted text when later steps need visual verification of what OCR recognized.\u003C\u002Fp>\n\n\u003Cp>Continue testing representative documents with the Use OCR to Extract Text from PDF Images operation in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. The \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\u002F\">OCR PDF API Tool documentation\u003C\u002Fa> provides authoritative defaults, accepted fields, and limitations for the Use OCR to Extract Text from PDF Images operation.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:21.000+00:00","2026-09-01T21:57:41.000+00:00","Apply OCR and then extract the recognized text from image-only PDFs with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:41.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:41.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Apply OCR and then extract the recognized text from image-only PDFs with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Data, Extract, Extract Text, Java, OCR, OCR PDF, Text\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4322,4323,4324,4325,4326,4327,4328,4329,4330],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-java\u002F","Use OCR to Extract Text from PDF Images with Java | pdfRest",{"id":4335,"uuid":4336,"title":4337,"slug":4338,"html":4339,"comment_id":4335,"feature_image":48,"featured":284,"visibility":1257,"created_at":4340,"updated_at":4295,"published_at":4340,"custom_excerpt":4341,"codeinjection_head":4342,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4343,"primary_tag":4353,"url":4354,"excerpt":4341,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4355,"meta_description":4341,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66ab98c8533c9f26b94380be","e332f4e7-2f57-42ee-a126-fd244a779b0c","How to Use OCR to Extract Text from PDF Images with JavaScript in NodeJS","how-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to Extract Text from PDF with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool allows developers to convert scanned documents into PDFs with searchable and extractable text using Optical Character Recognition (OCR). This tutorial will demonstrate how to send an API call to OCR a PDF and then use the Extract Text API Tool to extract the text using JavaScript, making your documents more accessible and easier to manage.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large collection of scanned documents, such as invoices or contracts, that you need to search through for specific information. By using OCR, you can convert these scanned images into text-searchable PDFs and then extract all text, enabling you to quickly locate the information you need without manually sifting through each document.\u003C\u002Fp>\n\n\u003Ch2>PDF OCR Text Extraction with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar FormData = require(\"form-data\");\nvar fs = require(\"fs\");\n\n\u002F* In this sample, we will show how to convert a scanned document into a PDF with\n* searchable and extractable text using Optical Character Recognition (OCR), and then\n* extract that text from the newly created document.\n*\n* First, we will upload a scanned PDF to the \u002Fpdf-with-ocr-text route and capture the\n* output ID. Then, we will send the output ID to the \u002Fextracted-text route, which will\n* return the newly added text.\n*\u002F\n\nvar apiKey = \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"; \u002F\u002F Replace with your API key\n\nvar ocrData = new FormData();\nocrData.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile.pdf\"), \"file_name.pdf\");\nocrData.append(\"output\", \"example_pdf-with-ocr-text_out\");\n\nvar ocrConfig = {\n  method: \"post\",\n  maxBodyLength: Infinity,\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\",\n  headers: {\n    \"Api-Key\": apiKey,\n    ...ocrData.getHeaders(),\n  },\n  data: ocrData,\n};\n\nconsole.log(\"Sending POST request to OCR endpoint...\");\naxios(ocrConfig)\n  .then(function (response) {\n    console.log(\"Response status code: \" + response.status);\n\n    if (response.status === 200) {\n      var ocrPDFID = response.data.outputId;\n      console.log(\"Got the output ID: \" + ocrPDFID);\n\n      var extractData = new FormData();\n      extractData.append(\"id\", ocrPDFID);\n\n      var extractConfig = {\n        method: \"post\",\n        maxBodyLength: Infinity,\n        url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\",\n        headers: {\n          \"Api-Key\": apiKey,\n          ...extractData.getHeaders(),\n        },\n        data: extractData,\n      };\n\n      console.log(\"Sending POST request to extract text endpoint...\");\n      axios(extractConfig)\n        .then(function (extractResponse) {\n          console.log(\"Response status code: \" + extractResponse.status);\n\n          if (extractResponse.status === 200) {\n            console.log(extractResponse.data.fullText);\n          } else {\n            console.log(extractResponse.data);\n          }\n        })\n        .catch(function (error) {\n          console.log(error.response ? error.response.data : error.message);\n        });\n    } else {\n      console.log(response.data);\n    }\n  })\n  .catch(function (error) {\n    console.log(error.response ? error.response.data : error.message);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FComplex%20Flow%20Examples\u002Focr-with-extract-text.js\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided code demonstrates how to use the pdfRest OCR PDF API Tool to convert a scanned document into a PDF with searchable text and then extract that text. Let's break down the code step-by-step:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require(\"axios\");\nvar FormData = require(\"form-data\");\nvar fs = require(\"fs\");\n\u003C\u002Fpre>\n\n\u003Cp>Here, we import the necessary modules: \u003Ccode>axios\u003C\u002Fcode> for making HTTP requests, \u003Ccode>FormData\u003C\u002Fcode> for handling form data, and \u003Ccode>fs\u003C\u002Fcode> for file system operations.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var apiKey = \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"; \u002F\u002F Replace with your API key\n\u003C\u002Fpre>\n\n\u003Cp>Replace the placeholder with your actual API key from pdfRest.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var ocrData = new FormData();\nocrData.append(\"file\", fs.createReadStream(\"\u002Fpath\u002Fto\u002Ffile.pdf\"), \"file_name.pdf\");\nocrData.append(\"output\", \"example_pdf-with-ocr-text_out\");\n\u003C\u002Fpre>\n\n\u003Cp>We create a new \u003Ccode>FormData\u003C\u002Fcode> object and append the scanned PDF file and an output identifier. The \u003Ccode>file\u003C\u002Fcode> field is the PDF to be processed, and the \u003Ccode>output\u003C\u002Fcode> field is a unique identifier for the output file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var ocrConfig = {\n  method: \"post\",\n  maxBodyLength: Infinity,\n  url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\",\n  headers: {\n    \"Api-Key\": apiKey,\n    ...ocrData.getHeaders(),\n  },\n  data: ocrData,\n};\n\u003C\u002Fpre>\n\n\u003Cp>We configure the POST request to the \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode> endpoint, including the API key and form data in the headers and body, respectively.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(ocrConfig)\n  .then(function (response) {\n    console.log(\"Response status code: \" + response.status);\n\n    if (response.status === 200) {\n      var ocrPDFID = response.data.outputId;\n      console.log(\"Got the output ID: \" + ocrPDFID);\n\u003C\u002Fpre>\n\n\u003Cp>We send the POST request and check if the response status is 200 (OK). If successful, we capture the \u003Ccode>outputId\u003C\u002Fcode> from the response, which is used to identify the processed PDF.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">      var extractData = new FormData();\n      extractData.append(\"id\", ocrPDFID);\n\n      var extractConfig = {\n        method: \"post\",\n        maxBodyLength: Infinity,\n        url: \"https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text\",\n        headers: {\n          \"Api-Key\": apiKey,\n          ...extractData.getHeaders(),\n        },\n        data: extractData,\n      };\n\n      console.log(\"Sending POST request to extract text endpoint...\");\n      axios(extractConfig)\n        .then(function (extractResponse) {\n          console.log(\"Response status code: \" + extractResponse.status);\n\n          if (extractResponse.status === 200) {\n            console.log(extractResponse.data.fullText);\n          } else {\n            console.log(extractResponse.data);\n          }\n        })\n        .catch(function (error) {\n          console.log(error.response ? error.response.data : error.message);\n        });\n    } else {\n      console.log(response.data);\n    }\n  })\n  .catch(function (error) {\n    console.log(error.response ? error.response.data : error.message);\n  });\n\u003C\u002Fpre>\n\n\u003Cp>We create another \u003Ccode>FormData\u003C\u002Fcode> object with the \u003Ccode>outputId\u003C\u002Fcode> and configure a POST request to the \u003Ccode>\u002Fextracted-text\u003C\u002Fcode> endpoint. If successful, the extracted text is printed to the console.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use the pdfRest OCR PDF and Extract Text API Tools to convert a scanned document into a searchable PDF and extract the text using JavaScript. This process can be invaluable for managing and searching through large collections of scanned documents.\u003C\u002Fp>\n\n\u003Cp>To explore more functionalities, try out all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on each endpoint, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-08-01T14:16:40.000+00:00","Learn how to extract all text from a PDF using pdfRest OCR PDF and Extract Text API Tools with JavaScript ","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2024-08-01T14:16:40.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:26.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to extract all text from a PDF using pdfRest OCR PDF and Extract Text API Tools with JavaScript \",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Data, Extract, Extract Text, JavaScript, OCR, OCR PDF, Text\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4344,4345,4346,4347,4348,4349,4350,4351,4352],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-javascript-in-nodejs\u002F","How to Use OCR to Extract Text from PDF Images with JavaScript in NodeJS, Tutorial | pdfRest",{"id":4357,"uuid":4358,"title":4359,"slug":4360,"html":4361,"comment_id":4357,"feature_image":48,"featured":284,"visibility":1257,"created_at":4362,"updated_at":4363,"published_at":4362,"custom_excerpt":4364,"codeinjection_head":4365,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4366,"primary_tag":4376,"url":4377,"excerpt":4364,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4378,"meta_description":4364,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66ab9817533c9f26b94380aa","8f21a624-7998-4f8d-925b-58ddd586f1e4","How to Use OCR to Extract Text from PDF Images with PHP","how-to-use-ocr-to-extract-text-from-pdf-images-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to Extract Text from PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful service that allows you to convert scanned documents into PDFs with searchable and extractable text using Optical Character Recognition (OCR). This tutorial will demonstrate how to send API calls to OCR PDF and Extract Text with PHP, enabling you to integrate OCR functionality into your PHP applications seamlessly.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large archive of scanned documents, such as invoices or historical records, that you need to search through or analyze. By using OCR, you can extract all text from these image-based documents, making it easier to find specific information. This can save significant time and effort compared to manually reviewing each document.\u003C\u002Fp>\n\n\u003Ch2>PDF OCR Text Extraction with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">\n\nrequire 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\n\u002F* In this sample, we will show how to convert a scanned document into a PDF with\n * searchable and extractable text using Optical Character Recognition (OCR), and then\n * extract that text from the newly created document.\n *\n * First, we will upload a scanned PDF to the \u002Fpdf-with-ocr-text route and capture the\n * output ID. Then, we will send the output ID to the \u002Fextracted-text route, which will\n * return the newly added text.\n *\u002F\n\n$client = new Client();\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Replace with your API key\n];\n\n\u002F\u002F Upload PDF for OCR\n$pdfToOCROptions = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile.pdf', 'r'),\n      'filename' => 'file.pdf',\n      'headers' => [\n        'Content-Type' => 'application\u002Fpdf'\n      ]\n    ],\n    [\n      'name' => 'output',\n      'contents' => 'example_pdf-with-ocr-text_out'\n    ]\n  ]\n];\n\n$pdfToOCRRequest = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', $headers);\n\necho \"Sending POST request to OCR endpoint...\\n\";\n$pdfToOCRResponse = $client->sendAsync($pdfToOCRRequest, $pdfToOCROptions)->wait();\n\necho \"Response status code: \" . $pdfToOCRResponse->getStatusCode() . \"\\n\";\n\n$ocrPDFID = json_decode($pdfToOCRResponse->getBody())->outputId;\necho \"Got the output ID: \" . $ocrPDFID . \"\\n\";\n\n\u002F\u002F Extract text from OCR'd PDF\n$extractTextOptions = [\n  'multipart' => [\n    [\n      'name' => 'id',\n      'contents' => $ocrPDFID\n    ]\n  ]\n];\n\n$extractTextRequest = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text', $headers);\n\necho \"Sending POST request to extract text endpoint...\\n\";\n$extractTextResponse = $client->sendAsync($extractTextRequest, $extractTextOptions)->wait();\n\necho \"Response status code: \" . $extractTextResponse->getStatusCode() . \"\\n\";\n\n$fullText = json_decode($extractTextResponse->getBody())->fullText;\necho $fullText . \"\\n\";\n\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FComplex%20Flow%20Examples\u002Focr-with-extract-text.php\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided PHP code uses the Guzzle HTTP client to interact with the pdfRest API. Here's a detailed breakdown of the code:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">require 'vendor\u002Fautoload.php';\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\nuse GuzzleHttp\\Psr7\\Utils;\n\u003C\u002Fpre>\n\n\u003Cp>This section includes the necessary dependencies and namespaces. It uses Composer's autoload feature to load the Guzzle HTTP client and related classes.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$client = new Client();\n\n$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Replace with your API key\n];\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new Guzzle HTTP client is instantiated, and the headers for the API request are defined. Replace 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$pdfToOCROptions = [\n  'multipart' => [\n    [\n      'name' => 'file',\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile.pdf', 'r'),\n      'filename' => 'file.pdf',\n      'headers' => [\n        'Content-Type' => 'application\u002Fpdf'\n      ]\n    ],\n    [\n      'name' => 'output',\n      'contents' => 'example_pdf-with-ocr-text_out'\n    ]\n  ]\n];\n\u003C\u002Fpre>\n\n\u003Cp>This section sets up the multipart form data for the OCR request. It includes the PDF file to be uploaded and a name for the output. Make sure to replace '\u002Fpath\u002Fto\u002Ffile.pdf' with the actual path to your PDF file.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$pdfToOCRRequest = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', $headers);\n\u003C\u002Fpre>\n\n\u003Cp>A new POST request is created for the OCR endpoint using the specified headers.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$pdfToOCRResponse = $client->sendAsync($pdfToOCRRequest, $pdfToOCROptions)->wait();\n\u003C\u002Fpre>\n\n\u003Cp>The request is sent asynchronously, and the response is awaited. The status code of the response is then printed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$ocrPDFID = json_decode($pdfToOCRResponse->getBody())->outputId;\n\u003C\u002Fpre>\n\n\u003Cp>The output ID from the OCR response is extracted and printed. This ID will be used in the next request to extract text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$extractTextOptions = [\n  'multipart' => [\n    [\n      'name' => 'id',\n      'contents' => $ocrPDFID\n    ]\n  ]\n];\n\n$extractTextRequest = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fextracted-text', $headers);\n\u003C\u002Fpre>\n\n\u003Cp>This section sets up the multipart form data for the text extraction request. It includes the output ID obtained from the previous OCR request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$extractTextResponse = $client->sendAsync($extractTextRequest, $extractTextOptions)->wait();\n\u003C\u002Fpre>\n\n\u003Cp>The request is sent asynchronously, and the response is awaited. The status code of the response is then printed.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$fullText = json_decode($extractTextResponse->getBody())->fullText;\necho $fullText . \"\\n\";\n\u003C\u002Fpre>\n\n\u003Cp>The full text extracted from the OCR'd PDF is obtained from the response and printed.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to use the pdfRest OCR PDF and Extract Text API Tools with PHP to convert a scanned document into a searchable PDF and extract the text. This process can be incredibly useful for digitizing and processing large volumes of scanned documents.\u003C\u002Fp>\n\n\u003Cp>To explore more functionalities offered by pdfRest, you can demo all the API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on all available endpoints and parameters, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-08-01T14:13:43.000+00:00","2026-09-02T18:29:45.000+00:00","Learn how to use pdfRest OCR PDF and Extract Text API Tools with PHP to extract all text from a PDF","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\",\n      \"datePublished\": \"2024-08-01T14:13:43.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF and Extract Text API Tools with PHP to extract all text from a PDF\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Data, Extract, Extract Text, OCR, OCR PDF, PHP, Text\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4367,4368,4369,4370,4371,4372,4373,4374,4375],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-php\u002F","How to Use OCR to Extract Text from PDF Images with PHP, Tutorial | pdfRest",{"id":4380,"uuid":4381,"title":4382,"slug":4383,"html":4384,"comment_id":4380,"feature_image":48,"featured":284,"visibility":1257,"created_at":4385,"updated_at":4386,"published_at":4385,"custom_excerpt":4387,"codeinjection_head":4388,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4389,"primary_tag":4399,"url":4400,"excerpt":4387,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4401,"meta_description":4387,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a7ec7c533c9f26b9437fe8","b146bc29-4a0d-40e9-92f7-4b975376b911","How to Use OCR to Extract Text from PDF Images with Python","how-to-use-ocr-to-extract-text-from-pdf-images-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Extract Text from Scanned PDFs with OCR and Python\u003C\u002Fh2>\n\n\u003Cp>A PDF can display readable words without containing machine-readable text. Scanned pages often store each page as an image, so a normal text-extraction request may return little or no useful content. The pdfRest \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\">OCR PDF API Tool\u003C\u002Fa> recognizes characters in the page images and adds a searchable text layer to the PDF. The \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\">Extract Text API Tool\u003C\u002Fa> can then return that recognized text to your Python application. Using both tools through the same API gives you a direct path from scanned pages to usable document data without installing and maintaining a separate OCR engine and PDF text parser.\u003C\u002Fp>\n\n\u003Cp>This tutorial combines the two operations in one resource-based workflow:\u003C\u002Fp>\n\n\u003Cp>For example, a records-intake application may receive scanned enrollment forms that cannot be searched or indexed because each page contains only an image. The application can use OCR PDF to recognize the characters, pass the resulting resource ID to Extract Text, and store the returned text so staff can locate forms by name or account number without manually retyping their contents.\u003C\u002Fp>\n\n\u003Col>\n\u003Cli>Upload the scanned PDF to \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Read the OCR-processed PDF's \u003Ccode>outputId\u003C\u002Fcode> from the response.\u003C\u002Fli>\n\u003Cli>Send that ID to \u003Ccode>\u002Fextracted-text\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Read the extracted content from the second response.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Cp>Passing the resource ID between calls avoids downloading and re-uploading the intermediate OCR PDF. This resource-based chaining is built into pdfRest, so the same pattern can connect OCR and extraction to other document operations without moving an intermediate file through your application after every step.\u003C\u002Fp>\n\n\u003Ch2>Python OCR and Text Extraction Example\u003C\u002Fh2>\n\n\u003Cp>The sample requires Python, the \u003Ccode>requests\u003C\u002Fcode> and \u003Ccode>requests-toolbelt\u003C\u002Fcode> packages, a pdfRest API key, and a scanned or image-based PDF. Replace the API-key and file-path placeholders before running it.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\n\n\n# In this sample, we will show how to convert a scanned document into a PDF with\n# searchable and extractable text using Optical Character Recognition (OCR), and then\n# extract that text from the newly created document.\n#\n# First, we will upload a scanned PDF to the \u002Fpdf-with-ocr-text route and capture the\n# output ID. Then, we will send the output ID to the \u002Fextracted-text route, which will\n# return the newly added text.\n\n# By default, we use the US-based API service. This is the primary endpoint for global use.\napi_url = \"https:\u002F\u002Fapi.pdfrest.com\"\n\n# For GDPR compliance and enhanced performance for European users, you can switch to the EU-based service by uncommenting the URL below.\n# For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n#api_url = \"https:\u002F\u002Feu-api.pdfrest.com\"\n\napi_key = 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n\nocr_endpoint_url = api_url+'\u002Fpdf-with-ocr-text'\nmp_encoder_pdf = MultipartEncoder(\n    fields={\n        'file': ('file_name.pdf', open('\u002Fpath\u002Fto\u002Ffile.pdf', 'rb'), 'application\u002Fpdf'),\n        'output': 'example_pdf-with-ocr-text_out',\n    }\n)\n\nimage_headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_pdf.content_type,\n    'Api-Key': api_key\n}\n\nprint(\"Sending POST request to OCR endpoint...\")\nresponse = requests.post(ocr_endpoint_url, data=mp_encoder_pdf, headers=image_headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    ocr_pdf_id = response_json[\"outputId\"]\n    print(\"Got the output ID: \" + ocr_pdf_id)\n\n    extract_endpoint_url = api_url+'\u002Fextracted-text'\n\n    mp_encoder_extract_text = MultipartEncoder(\n        fields={\n            'id': ocr_pdf_id\n        }\n    )\n\n    extract_text_headers = {\n        'Accept': 'application\u002Fjson',\n        'Content-Type': mp_encoder_extract_text.content_type,\n        'Api-Key': api_key\n    }\n\n    print(\"Sending POST request to extract text endpoint...\")\n    extract_response = requests.post(extract_endpoint_url, data=mp_encoder_extract_text, headers=extract_text_headers)\n\n    print(\"Response status code: \" + str(extract_response.status_code))\n\n    if extract_response.ok:\n        extract_json = extract_response.json()\n        print(extract_json[\"fullText\"])\n\n    else:\n        print(extract_response.text)\n\n\nelse:\n    print(response.text)\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FComplex%20Flow%20Examples\u002Focr-with-extract-text.py\">pdfRest OCR and Extract Text Python sample on GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp>If the scanned PDF already exists on the pdfRest processing service, both steps can use JSON payloads with resource IDs instead of uploading the file as multipart data. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.py\">OCR PDF JSON-payload sample\u003C\u002Fa> and the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fextracted-text.py\">Extract Text JSON-payload sample\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>How the Two API Calls Work Together\u003C\u002Fh2>\n\n\u003Cp>The first multipart request uploads the source file to \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode>. A successful response contains an \u003Ccode>outputId\u003C\u002Fcode> for the new PDF with its recognized text layer. The script stores that value as \u003Ccode>ocr_pdf_id\u003C\u002Fcode> and supplies it as the \u003Ccode>id\u003C\u002Fcode> field in the second multipart request.\u003C\u002Fp>\n\n\u003Cp>The \u003Ccode>\u002Fextracted-text\u003C\u002Fcode> endpoint works from that server-side resource and returns the recognized content in JSON. The sample prints \u003Ccode>fullText\u003C\u002Fcode>, which is useful when the application needs a document-level string for search indexing, data analysis, or another text-processing step.\u003C\u002Fp>\n\n\u003Cp>The Extract Text tool also supports more detailed output. Depending on the application, you can request full text by page or document, preserve line breaks, include coordinates for each word, and include font or color information. This lets one API support simple full-text indexing as well as layout-aware extraction without forcing every application into the same response shape. Coordinate and style data are useful when layout matters; plain full text is usually simpler for search, classification, or language-processing workflows.\u003C\u002Fp>\n\n\u003Ch2>Choose OCR Languages and Inputs Carefully\u003C\u002Fh2>\n\n\u003Cp>OCR defaults to English when no language is supplied. For documents in other languages, use the optional \u003Ccode>languages\u003C\u002Fcode> parameter and follow the current \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\">OCR PDF API reference\u003C\u002Fa> for supported ISO 639-2 Alpha-3 language codes. Limiting recognition to the languages actually present can improve the balance between accuracy and processing time, especially for multilingual or CJK documents.\u003C\u002Fp>\n\n\u003Cp>OCR is most valuable for scanned and image-only content. Born-digital PDFs may already contain extractable text, while mixed PDFs can contain both existing text and page images. Query PDF can identify image-only files so the application routes each document through the appropriate extraction path automatically.\u003C\u002Fp>\n\n\u003Ch2>Build OCR into a Reliable Extraction Workflow\u003C\u002Fh2>\n\n\u003Cp>OCR gives image-based documents a searchable text layer that the application can route directly into Extract Text, search, classification, or data-entry workflows. Recognition quality reflects the characteristics of the scanned page, including resolution, rotation, contrast, language, font, and page condition.\u003C\u002Fp>\n\n\u003Cp>For workflows that act on names, amounts, identifiers, or other decisive values, design field-level business rules around the extracted result. The API response provides the processing status and expected output fields; application logic can use those fields to route a clean result forward or flag an exception for the process that owns the underlying data. This turns OCR from a manual recovery step into a useful part of a repeatable document-intake workflow.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-29T19:24:44.000+00:00","2026-09-22T19:02:54.000+00:00","Learn how to use pdfRest OCR PDF and Extract Text API Tools with Python to extract all text from a PDF","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F#article\",\n      \"headline\": \"How to Use OCR to Extract Text from PDF Images with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\",\n      \"datePublished\": \"2024-07-29T19:24:44.000Z\",\n      \"dateModified\": \"2026-09-22T00:00:00.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF and Extract Text API Tools with Python to extract all text from a PDF\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"Extract Text API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Fextract-text\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fextracted-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Fextract-text\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Data, Extract, Extract Text, OCR, OCR PDF, Python, Text\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Extract Text from PDF Images with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4390,4391,4392,4393,4394,4395,4396,4397,4398],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1476,"name":1477,"slug":1478,"description":1283,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":1283,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1472,"name":1473,"slug":1474,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1484,"name":1485,"slug":1486,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-extract-text-from-pdf-images-with-python\u002F","How to Use OCR to Extract Text from PDF Images with Python, Tutorial | pdfRest",{"id":4403,"uuid":4404,"title":4405,"slug":4406,"html":4407,"comment_id":4403,"feature_image":48,"featured":284,"visibility":1257,"created_at":4408,"updated_at":4409,"published_at":4408,"custom_excerpt":4410,"codeinjection_head":4411,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4412,"primary_tag":4420,"url":4421,"excerpt":4410,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4422,"meta_description":4410,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a145d3533c9f26b9437f16","fc54a66c-66ea-4cc6-8659-17b4011aae58","How to Use OCR to Make PDF Image Text Searchable in .NET with C#","how-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to make Searchable PDF with C#?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful resource for converting scanned documents and images into searchable PDF files. This tutorial will show you how to send an API call to OCR PDF with C#, allowing you to integrate this functionality into your applications seamlessly.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large archive of scanned documents that you need to make searchable for easy retrieval. Using OCR (Optical Character Recognition), you can convert these scanned documents into searchable PDFs. This is invaluable for businesses and organizations that need to manage large volumes of documents efficiently.\u003C\u002Fp>\n\n\u003Ch2>OCR PDF with C# Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-csharp\">using System.Text;\n\nusing (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n{\n    using (var request = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-ocr-text\"))\n    {\n        request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\n        request.Headers.Accept.Add(new(\"application\u002Fjson\"));\n        var multipartContent = new MultipartFormDataContent();\n\n        var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\n        var byteAryContent = new ByteArrayContent(byteArray);\n        multipartContent.Add(byteAryContent, \"file\", \"file_name\");\n        byteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\n        var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"converted\"));\n        multipartContent.Add(byteArrayOption, \"output\");\n\n        request.Content = multipartContent;\n        var response = await httpClient.SendAsync(request);\n\n        var apiResult = await response.Content.ReadAsStringAsync();\n\n        Console.WriteLine(\"API response received.\");\n        Console.WriteLine(apiResult);\n    }\n}\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-ocr-text.cs\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the provided code to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var httpClient = new HttpClient { BaseAddress = new Uri(\"https:\u002F\u002Fapi.pdfrest.com\") })\n\u003C\u002Fpre>\n\n\u003Cp>This line initializes an \u003Ccode>HttpClient\u003C\u002Fcode> object with the base address set to the pdfRest API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">using (var request = new HttpRequestMessage(HttpMethod.Post, \"pdf-with-ocr-text\"))\n\u003C\u002Fpre>\n\n\u003Cp>Here, an \u003Ccode>HttpRequestMessage\u003C\u002Fcode> is created with the HTTP method set to POST and the endpoint specified as \"pdf-with-ocr-text\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Headers.TryAddWithoutValidation(\"Api-Key\", \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\");\nrequest.Headers.Accept.Add(new(\"application\u002Fjson\"));\n\u003C\u002Fpre>\n\n\u003Cp>These lines add the API key to the request headers and set the Accept header to \"application\u002Fjson\". The API key is essential for authenticating the request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var multipartContent = new MultipartFormDataContent();\n\u003C\u002Fpre>\n\n\u003Cp>A \u003Ccode>MultipartFormDataContent\u003C\u002Fcode> object is created to hold the file and other form data.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArray = File.ReadAllBytes(\"\u002Fpath\u002Fto\u002Ffile\");\nvar byteAryContent = new ByteArrayContent(byteArray);\nmultipartContent.Add(byteAryContent, \"file\", \"file_name\");\nbyteAryContent.Headers.TryAddWithoutValidation(\"Content-Type\", \"application\u002Fpdf\");\n\u003C\u002Fpre>\n\n\u003Cp>This snippet reads the file into a byte array and adds it to the multipart content. The content type is set to \"application\u002Fpdf\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var byteArrayOption = new ByteArrayContent(Encoding.UTF8.GetBytes(\"converted\"));\nmultipartContent.Add(byteArrayOption, \"output\");\n\u003C\u002Fpre>\n\n\u003Cp>Here, the output option is added to the multipart content, specifying that the output should be \"converted\".\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">request.Content = multipartContent;\nvar response = await httpClient.SendAsync(request);\n\u003C\u002Fpre>\n\n\u003Cp>The multipart content is assigned to the request, and the request is sent asynchronously. The response is then awaited.\u003C\u002Fp>\n\n\u003Cpre class=\"language-csharp\">var apiResult = await response.Content.ReadAsStringAsync();\nConsole.WriteLine(\"API response received.\");\nConsole.WriteLine(apiResult);\n\u003C\u002Fpre>\n\n\u003Cp>The response content is read as a string and printed to the console.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to make an API call to the pdfRest OCR PDF endpoint using C#. This allows you to convert scanned documents into searchable PDFs programmatically.\u003C\u002Fp>\n\n\u003Cp>To explore more features and tools offered by pdfRest, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For detailed information on the API, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. For code samples using JSON payloads, visit the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FDotNET\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.cs\">GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-24T18:20:03.000+00:00","2026-09-02T18:29:46.000+00:00","Learn how to use pdfRest OCR PDF API Tool with C# to make Searchable PDF Files","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable in .NET with C#\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\",\n      \"datePublished\": \"2024-07-24T18:20:03.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF API Tool with C# to make Searchable PDF Files\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \".NET, Accessibility, OCR, OCR PDF, Text\",\n      \"dependencies\": \".NET, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable in .NET with C#\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4413,4414,4415,4416,4417,4418,4419],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2231,"name":2232,"slug":2233,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-in-net-with-c\u002F","How to Use OCR to Make PDF Image Text Searchable in .NET with C#, Tutorial | pdfRest",{"id":4424,"uuid":4425,"title":4426,"slug":4427,"html":4428,"comment_id":4424,"feature_image":48,"featured":284,"visibility":1257,"created_at":4429,"updated_at":4409,"published_at":4429,"custom_excerpt":4430,"codeinjection_head":4431,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4432,"primary_tag":4440,"url":4441,"excerpt":4430,"reading_time":5,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4442,"meta_description":4430,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a147c8533c9f26b9437f2a","31664e3b-c2af-4b1f-9754-bf2669f3f698","How to Use OCR to Make PDF Image Text Searchable with cURL","how-to-use-ocr-to-make-pdf-image-text-searchable-with-curl","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to make Searchable PDF with cURL?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful resource for converting scanned documents and images into searchable and extractable text in PDF files. This tutorial will show you how to send an API call to OCR PDF with cURL, a command-line tool for transferring data using various network protocols.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large number of scanned documents that you need to make searchable for easy retrieval. Using the OCR PDF API, you can automate this process, making it efficient and less prone to errors compared to manual data entry. This can be particularly useful for businesses dealing with large volumes of paperwork, such as legal firms or medical offices.\u003C\u002Fp>\n\n\u003Ch2>OCR PDF with cURL Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\" \\\n  -H \"Accept: application\u002Fjson\" \\\n  -H \"Content-Type: multipart\u002Fform-data\" \\\n  -H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\" \\\n  -F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-ocr-text.sh\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the provided cURL command to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">curl -X POST \"https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text\"\n\u003C\u002Fpre>\n\n\u003Cp>This line initiates a POST request to the \u002Fpdf-with-ocr-text endpoint.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Accept: application\u002Fjson\"\n\u003C\u002Fpre>\n\n\u003Cp>This header tells the server that the client expects the response to be in JSON format.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Content-Type: multipart\u002Fform-data\"\n\u003C\u002Fpre>\n\n\u003Cp>This header specifies that the content type of the request is multipart\u002Fform-data, which is necessary for file uploads.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-H \"Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n\u003C\u002Fpre>\n\n\u003Cp>This header includes the API key, which is required for authentication. Replace \u003Ccode>xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u003C\u002Fcode> with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"file=@\u002Fpath\u002Fto\u002Ffile\"\n\u003C\u002Fpre>\n\n\u003Cp>This line specifies the file to be uploaded. Replace \u003Ccode>\u002Fpath\u002Fto\u002Ffile\u003C\u002Fcode> with the actual path to the file you want to upload.\u003C\u002Fp>\n\n\u003Cpre class=\"language-bash\">-F \"output=example_out\"\n\u003C\u002Fpre>\n\n\u003Cp>This line specifies the output file name. In this case, the output will be named \u003Ccode>example_out\u003C\u002Fcode>.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to make an API call to the pdfRest OCR PDF endpoint using cURL. This allows you to convert scanned documents into searchable PDFs efficiently.\u003C\u002Fp>\n\n\u003Cp>To explore more functionalities, you can demo all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FcURL\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.sh\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-24T18:28:24.000+00:00","Learn how to make PDF files searchable with pdfRest OCR PDF API Tool using cURL","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable with cURL\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\",\n      \"datePublished\": \"2024-07-24T18:28:24.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to make PDF files searchable with pdfRest OCR PDF API Tool using cURL\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Accessibility, OCR, OCR PDF, Text, cURL\",\n      \"dependencies\": \"cURL, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable with cURL\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4433,4434,4435,4436,4437,4438,4439],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2239,"name":2240,"slug":2241,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-curl\u002F","How to Use OCR to Make PDF Image Text Searchable with cURL, Tutorial | pdfRest",{"id":4444,"uuid":4445,"title":4446,"slug":4447,"html":4448,"comment_id":4444,"feature_image":48,"featured":284,"visibility":1257,"created_at":4449,"updated_at":4450,"published_at":4318,"custom_excerpt":4451,"codeinjection_head":4452,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4453,"primary_tag":4461,"url":4462,"excerpt":4451,"reading_time":345,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4463,"meta_description":4451,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"6a970c62533c9f26b943b5ce","0efc1fdd-9f3c-4e30-8fb9-b54d47b91c1a","How to Use OCR to Make PDF Image Text Searchable with Java","how-to-use-ocr-to-make-pdf-image-text-searchable-with-java","\n\u003C!--kg-card-begin: html-->\n\u003Cp>This step-by-step tutorial explains how a Java application can use OCR to make PDF image text searchable through the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\">OCR PDF API Tool\u003C\u002Fa>. The Java request submits an image-based PDF to \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode> and receives a searchable PDF resource for later search and text selection. After reviewing the example, you'll be ready to use OCR to make PDF image text searchable with your own input.\u003C\u002Fp>\n\n\u003Ch2>Why Use OCR to Make PDF Image Text Searchable with Java?\u003C\u002Fh2>\n\n\u003Cp>A records portal may display scanned pages correctly while users still cannot search or select their text. OCR adds recognized text without requiring the application to recreate the document.\u003C\u002Fp>\n\n\u003Cp>The Java sample sends the PDF to \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode>. OCR language and related options should match the source material for the best recognition results.\u003C\u002Fp>\n\n\u003Ch2>Java Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\n\npublic class PDFWithOCRText {\n\n  \u002F\u002F By default, we use the US-based API service. This is the primary endpoint for global use.\n  private static final String API_URL = \"https:\u002F\u002Fapi.pdfrest.com\";\n\n  \u002F\u002F For GDPR compliance and enhanced performance for European users, you can switch to the EU-based\n  \u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"output\", \"pdfrest_pdf-with-ocr-text\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\n  }\n}\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002FPDFWithOCRText.java\">Java sample on GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Ch3>Load the Java HTTP and JSON dependencies\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">import io.github.cdimascio.dotenv.Dotenv;\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\nimport okhttp3.MediaType;\nimport okhttp3.MultipartBody;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.RequestBody;\nimport okhttp3.Response;\nimport org.json.JSONObject;\u003C\u002Fpre>\n\n\u003Cp>The sample relies on OkHttp to send the call, dotenv to resolve credentials, and \u003Ccode>org.json\u003C\u002Fcode> to inspect or format JSON.\u003C\u002Fp>\n\n\u003Ch3>Choose the input and load credentials\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">\u002F\u002F service by commenting out the URL above and uncommenting the URL below.\n  \u002F\u002F For more information visit https:\u002F\u002Fpdfrest.com\u002Fpricing#how-do-eu-gdpr-api-calls-work\n  \u002F\u002F private static final String API_URL = \"https:\u002F\u002Feu-api.pdfrest.com\";\n\n  \u002F\u002F Specify the path to your file here, or as the first argument when running the program.\n  private static final String DEFAULT_FILE_PATH = \"\u002Fpath\u002Fto\u002Ffile.pdf\";\n\n  \u002F\u002F Specify your API key here, or in the environment variable PDFREST_API_KEY.\n  \u002F\u002F You can also put the environment variable in a .env file.\n  private static final String DEFAULT_API_KEY = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\";\n\n  public static void main(String[] args) {\n    File inputFile;\n    if (args.length > 0) {\n      inputFile = new File(args[0]);\n    } else {\n      inputFile = new File(DEFAULT_FILE_PATH);\n    }\n\n    final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load();\n\n    final RequestBody inputFileRequestBody =\u003C\u002Fpre>\n\n\u003Cp>The configuration block shows where the input comes from and keeps the credential outside the request-building logic.\u003C\u002Fp>\n\n\u003Ch3>Build the multipart request body\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">final RequestBody inputFileRequestBody =\n        RequestBody.create(inputFile, MediaType.parse(\"application\u002Fpdf\"));\n    RequestBody requestBody =\n        new MultipartBody.Builder()\n            .setType(MultipartBody.FORM)\n            .addFormDataPart(\"file\", inputFile.getName(), inputFileRequestBody)\n            .addFormDataPart(\"output\", \"pdfrest_pdf-with-ocr-text\")\n            .build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\u003C\u002Fpre>\n\n\u003Cp>The Java sample sends the PDF to \u003Ccode>\u002Fpdf-with-ocr-text\u003C\u002Fcode>. OCR language and related options should match the source material for the best recognition results. The form-data setup sets \u003Ccode>MultipartBody.FORM\u003C\u002Fcode>, allowing OkHttp to generate the matching boundary automatically.\u003C\u002Fp>\n\n\u003Ch3>Send the request to pdfRest\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">.build();\n    Request request =\n        new Request.Builder()\n            .header(\"Api-Key\", dotenv.get(\"PDFREST_API_KEY\", DEFAULT_API_KEY))\n            .url(API_URL + \"\u002Fpdf-with-ocr-text\")\n            .post(requestBody)\n            .build();\n    try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\u003C\u002Fpre>\n\n\u003Cp>The client request joins authentication, routing, and payload in one place while leaving regional service selection in the API URL constant.\u003C\u002Fp>\n\n\u003Ch3>Read the API response\u003C\u002Fh3>\n\n\u003Cpre class=\"language-java\">try {\n      OkHttpClient client =\n          new OkHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build();\n      Response response = client.newCall(request).execute();\n      System.out.println(\"Result code \" + response.code());\n      if (response.body() != null) {\n        System.out.println(prettyJson(response.body().string()));\n      }\n    } catch (IOException e) {\n      throw new RuntimeException(e);\n    }\n  }\n\n  private static String prettyJson(String json) {\n    \u002F\u002F https:\u002F\u002Fstackoverflow.com\u002Fa\u002F9583835\u002F11996393\n    return new JSONObject(json).toString(4);\u003C\u002Fpre>\n\n\u003Cp>The response check makes success and failure information available to the caller, including any temporary resources that must be saved or reused before expiration.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>The completed example gives you a practical Java starting point for learning how to use OCR to make PDF image text searchable. With that foundation, searchable OCR PDFs improve retrieval, review, copy-and-paste, and downstream text-processing workflows.\u003C\u002Fp>\n\n\u003Cp>As you apply the pattern to real documents, choose OCR language settings that match the source and review low-quality scans for recognition errors. A searchable text layer improves discovery and selection, but it does not by itself establish accessibility conformance or correct the logical reading structure of the PDF.\u003C\u002Fp>\n\n\u003Cp>Before integrating this workflow, test representative documents with the Use OCR to Make PDF Image Text Searchable operation in \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. Then use the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\u002F\">OCR PDF API Tool documentation\u003C\u002Fa> to review every available parameter and response field.\u003C\u002Fp>\n\n\u003Cp>Note: The Use OCR to Make PDF Image Text Searchable example above uses multipart form data; to reuse a resource ID, see the request shape in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJava\u002FEndpoint%20Examples\u002FJSON%20Payload\u002FPDFWithOCRText.java\">JSON payload example\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2026-09-01T17:33:22.000+00:00","2026-09-02T18:29:47.000+00:00","Add a searchable OCR text layer to image-based PDF documents with Java.","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable with Java\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\",\n      \"datePublished\": \"2026-09-01T21:57:41.000Z\",\n      \"dateModified\": \"2026-09-01T21:57:41.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Add a searchable OCR text layer to image-based PDF documents with Java.\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Accessibility, Java, OCR, OCR PDF, Text\",\n      \"dependencies\": \"Java, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable with Java\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4454,4455,4456,4457,4458,4459,4460],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2235,"name":2236,"slug":2237,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-java\u002F","Use OCR to Make PDF Image Text Searchable with Java | pdfRest",{"id":4465,"uuid":4466,"title":4467,"slug":4468,"html":4469,"comment_id":4465,"feature_image":48,"featured":284,"visibility":1257,"created_at":4470,"updated_at":4450,"published_at":4470,"custom_excerpt":4471,"codeinjection_head":4472,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4473,"primary_tag":4481,"url":4482,"excerpt":4471,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4483,"meta_description":4471,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a14781533c9f26b9437f20","0641292c-8fa5-4ea6-9159-d850c660643c","How to Use OCR to Make PDF Image Text Searchable with JavaScript in NodeJS","how-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to make Searchable PDF with JavaScript?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool allows developers to convert scanned PDF documents into searchable text by applying Optical Character Recognition (OCR). This tutorial will show how to send an API call to OCR PDF with JavaScript, making it possible to automate the process of converting image-based text into machine-readable text within PDF documents.\u003C\u002Fp>\n\n\u003Cp>Imagine you work in an office where you frequently receive scanned documents. These documents are essentially images, making it difficult to search for specific text within them. By using the OCR PDF API, you can convert these scanned documents into searchable PDFs, significantly improving your workflow and productivity.\u003C\u002Fp>\n\n\u003Ch2>OCR PDF with JavaScript Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-javascript\">\u002F\u002F This request demonstrates how to apply OCR to a PDF document and insert text behind images of text.\nvar axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\n\u002F\u002F Create a new form data instance and append the PDF file and parameters to it\nvar data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\ndata.append('output', 'pdfrest_pdf-with-ocr-text');\n\n\u002F\u002F define configuration options for axios request\nvar config = {\n  method: 'post',\n  maxBodyLength: Infinity, \u002F\u002F set maximum length of the request body\n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', \u002F\u002F Replace with your API key\n    ...data.getHeaders() \u002F\u002F set headers for the request\n  },\n  data : data \u002F\u002F set the data to be sent with the request\n};\n\n\u002F\u002F send request and handle response or error\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\n\u002F\u002F If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.js' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-ocr-text.js\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the code to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var axios = require('axios');\nvar FormData = require('form-data');\nvar fs = require('fs');\n\u003C\u002Fpre>\n\n\u003Cp>This snippet imports the required modules: \u003Ccode>axios\u003C\u002Fcode> for making HTTP requests, \u003Ccode>FormData\u003C\u002Fcode> for handling form data, and \u003Ccode>fs\u003C\u002Fcode> for file system operations.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var data = new FormData();\ndata.append('file', fs.createReadStream('\u002Fpath\u002Fto\u002Ffile'));\ndata.append('output', 'pdfrest_pdf-with-ocr-text');\n\u003C\u002Fpre>\n\n\u003Cp>Here, a new instance of \u003Ccode>FormData\u003C\u002Fcode> is created, and the PDF file is appended to it using \u003Ccode>fs.createReadStream\u003C\u002Fcode>. The \u003Ccode>output\u003C\u002Fcode> parameter specifies the type of output we want, in this case, a PDF with OCR text.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">var config = {\n  method: 'post',\n  maxBodyLength: Infinity, \n  url: 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', \n  headers: { \n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',\n    ...data.getHeaders() \n  },\n  data : data \n};\n\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>config\u003C\u002Fcode> object is defined to configure the Axios request. It specifies the HTTP method as \u003Ccode>post\u003C\u002Fcode>, sets the maximum body length to infinity, and provides the URL of the API endpoint. The \u003Ccode>headers\u003C\u002Fcode> include the API key (which you should replace with your own) and the headers generated by the \u003Ccode>FormData\u003C\u002Fcode> instance. The \u003Ccode>data\u003C\u002Fcode> field contains the form data to be sent with the request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-javascript\">axios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error); \n});\n\u003C\u002Fpre>\n\n\u003Cp>This part of the code sends the HTTP request using Axios and handles the response or any errors that occur. The response is logged to the console in JSON format.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we have demonstrated how to use JavaScript to send an API call to the pdfRest OCR PDF API Tool, converting a scanned PDF document into a searchable text PDF. This is just one of the many functionalities offered by pdfRest.\u003C\u002Fp>\n\n\u003Cp>We encourage you to explore all of the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This example demonstrates a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FJavaScript\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.js\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-24T18:27:13.000+00:00","Learn how to use pdfRest OCR PDF API Tool with JavaScript to make PDF image text searchable","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable with JavaScript in NodeJS\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\",\n      \"datePublished\": \"2024-07-24T18:27:13.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF API Tool with JavaScript to make PDF image text searchable\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Accessibility, JavaScript, OCR, OCR PDF, Text\",\n      \"dependencies\": \"JavaScript, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable with JavaScript in NodeJS\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4474,4475,4476,4477,4478,4479,4480],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2223,"name":2224,"slug":2225,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-javascript-in-nodejs\u002F","How to Use OCR to Make PDF Image Text Searchable with JavaScript in NodeJS, Tutorial | pdfRest",{"id":4485,"uuid":4486,"title":4487,"slug":4488,"html":4489,"comment_id":4485,"feature_image":48,"featured":284,"visibility":1257,"created_at":4490,"updated_at":4450,"published_at":4490,"custom_excerpt":4491,"codeinjection_head":4492,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4493,"primary_tag":4501,"url":4502,"excerpt":4491,"reading_time":320,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4503,"meta_description":4491,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a138e3533c9f26b9437efe","7bd1bacb-e61f-4f03-804e-b7368a4ba8b7","How to Use OCR to Make PDF Image Text Searchable with PHP","how-to-use-ocr-to-make-pdf-image-text-searchable-with-php","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to make Searchable PDF with PHP?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful resource that allows developers to integrate Optical Character Recognition (OCR) functionality into their applications. This tutorial will demonstrate how to send an API call to OCR a PDF using PHP, making it easier to search and find text from scanned documents or images within a PDF file.\u003C\u002Fp>\n\n\u003Cp>Imagine you have a large collection of scanned documents, such as invoices or historical records, and you need to make the text within these documents searchable and extractable. By using the OCR PDF API, you can automate the process of converting these scanned images into text, saving time and effort while improving data accessibility and usability.\u003C\u002Fp>\n\n\u003Ch2>OCR PDF with PHP Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">\nrequire 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\nuse GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\n$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\n$headers = [\n  'Api-Key' =--> 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\n$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by the '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'output', \u002F\u002F Specify the field name for the output option.\n      'contents' => 'pdfrest_pdf-with-ocr-text' \u002F\u002F Set the value for the output option (in this case, 'pdfrest_pdf-with-ocr-text').\n    ]\n  ]\n];\n\n$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', $headers); \u002F\u002F Create a new HTTP POST request with the API endpoint and headers.\n\n$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\necho $res->getBody(); \u002F\u002F Output the response body, which contains the document with text from OCR added.\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-ocr-text.php\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>The provided code demonstrates how to use the Guzzle HTTP client to send a multipart API request to the pdfRest OCR PDF endpoint. Here’s a detailed breakdown:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">require 'vendor\u002Fautoload.php'; \u002F\u002F Require the autoload file to load Guzzle HTTP client.\n\u003C\u002Fpre>\n\n\u003Cp>This line includes the autoload file generated by Composer, which loads all necessary dependencies, including Guzzle.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">use GuzzleHttp\\Client; \u002F\u002F Import the Guzzle HTTP client namespace.\nuse GuzzleHttp\\Psr7\\Request; \u002F\u002F Import the PSR-7 Request class.\nuse GuzzleHttp\\Psr7\\Utils; \u002F\u002F Import the PSR-7 Utils class for working with streams.\n\u003C\u002Fpre>\n\n\u003Cp>These lines import the necessary classes from the Guzzle HTTP client library and PSR-7, which are used to create and send HTTP requests.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$client = new Client(); \u002F\u002F Create a new instance of the Guzzle HTTP client.\n\u003C\u002Fpre>\n\n\u003Cp>This line creates a new instance of the Guzzle HTTP client, which will be used to send the API request.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$headers = [\n  'Api-Key' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \u002F\u002F Set the API key in the headers for authentication.\n];\n\u003C\u002Fpre>\n\n\u003Cp>Here, the API key is set in the headers array for authentication purposes. Replace \u003Ccode>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u003C\u002Fcode> with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$options = [\n  'multipart' => [\n    [\n      'name' => 'file', \u002F\u002F Specify the field name for the file.\n      'contents' => Utils::tryFopen('\u002Fpath\u002Fto\u002Ffile', 'r'), \u002F\u002F Open the file specified by the '\u002Fpath\u002Fto\u002Ffile' for reading.\n      'filename' => '\u002Fpath\u002Fto\u002Ffile', \u002F\u002F Set the filename for the file to be processed, in this case, '\u002Fpath\u002Fto\u002Ffile'.\n      'headers' => [\n        'Content-Type' => '\u003Ccontent-type header=\"\">' \u002F\u002F Set the Content-Type header for the file.\n      ]\n    ],\n    [\n      'name' => 'output', \u002F\u002F Specify the field name for the output option.\n      'contents' => 'pdfrest_pdf-with-ocr-text' \u002F\u002F Set the value for the output option (in this case, 'pdfrest_pdf-with-ocr-text').\n    ]\n  ]\n];\n\u003C\u002Fcontent-type>\u003C\u002Fpre>\n\n\u003Cp>The \u003Ccode>$options\u003C\u002Fcode> array is configured with multipart form data. The first part includes the file to be processed, specifying its name, contents, filename, and content type. The second part specifies the output format for the OCR result.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$request = new Request('POST', 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text', $headers); \u002F\u002F Create a new HTTP POST request with the API endpoint and headers.\n\u003C\u002Fpre>\n\n\u003Cp>This line creates a new HTTP POST request to the pdfRest OCR PDF endpoint, including the headers for authentication.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">$res = $client->sendAsync($request, $options)->wait(); \u002F\u002F Send the asynchronous request and wait for the response.\n\u003C\u002Fpre>\n\n\u003Cp>The asynchronous request is sent using the \u003Ccode>sendAsync\u003C\u002Fcode> method, and the script waits for the response.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">echo $res->getBody(); \u002F\u002F Output the response body, which contains the document with text from OCR added.\n\u003C\u002Fpre>\n\n\u003Cp>Finally, the response body, which contains the OCR-processed document, is outputted.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, you learned how to send a multipart API request to the pdfRest OCR PDF endpoint using PHP. This process allows you to convert scanned documents into searchable and editable text efficiently.\u003C\u002Fp>\n\n\u003Cp>To further explore the capabilities of pdfRest API tools, visit the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa> and refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa> for detailed documentation.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPHP\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.php\">GitHub\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-24T17:24:51.000+00:00","Learn how to make PDF image text searchable using pdfRest OCR PDF API Tool with PHP","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable with PHP\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\",\n      \"datePublished\": \"2024-07-24T17:24:51.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:27.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to make PDF image text searchable using pdfRest OCR PDF API Tool with PHP\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Accessibility, OCR, OCR PDF, PHP, Text\",\n      \"dependencies\": \"PHP, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable with PHP\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4494,4495,4496,4497,4498,4499,4500],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2227,"name":2228,"slug":2229,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-php\u002F","How to Use OCR to Make PDF Image Text Searchable with PHP, Tutorial | pdfRest",{"id":4505,"uuid":4506,"title":4507,"slug":4508,"html":4509,"comment_id":4505,"feature_image":48,"featured":284,"visibility":1257,"created_at":4510,"updated_at":4511,"published_at":4510,"custom_excerpt":4512,"codeinjection_head":4513,"codeinjection_foot":48,"custom_template":48,"canonical_url":48,"tags":4514,"primary_tag":4522,"url":4523,"excerpt":4512,"reading_time":295,"access":124,"comments":284,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":4524,"meta_description":4512,"email_subject":48,"frontmatter":48,"feature_image_alt":48,"feature_image_caption":48},"66a1389f533c9f26b9437ef2","d6b01843-6d65-4897-b3b3-bacd390d7da7","How to Use OCR to Make PDF Image Text Searchable with Python","how-to-use-ocr-to-make-pdf-image-text-searchable-with-python","\n\u003C!--kg-card-begin: html-->\n\u003Ch2>Why Use OCR to make Searchable PDF with Python?\u003C\u002Fh2>\n\n\u003Cp>The pdfRest OCR PDF API Tool is a powerful utility that allows developers to convert scanned documents and images into searchable and extractable PDFs using Optical Character Recognition (OCR). This tutorial will guide you through the process of sending an API call to the OCR PDF endpoint using Python, enabling you to automate the conversion of image-based text into machine-readable text.\u003C\u002Fp>\n\n\u003Cp>Imagine you work in a law firm that frequently receives scanned legal documents. By using OCR, you can convert these scanned documents into searchable PDFs, making it easier to find and reference specific information. This can save time and improve efficiency, especially when dealing with large volumes of documents.\u003C\u002Fp>\n\n\u003Ch2>OCR PDF with Python Code Example\u003C\u002Fh2>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\npdf_with_ocr_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text'\n\n# The \u002Fpdf-with-ocr-text endpoint can take a single PDF file or id as input.\n# This sample demonstrates a request to add text to a document by using OCR on images of text.\nmp_encoder_pdf_with_ocr_text = MultipartEncoder(\n    fields={\n        'file': ('file_name', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'output' : 'example_pdf-with-ocr-text_out',\n    }\n)\n\n# Let's set the headers that the pdf-with-ocr-text endpoint expects.\n# Since MultipartEncoder is used, the 'Content-Type' header gets set to 'multipart\u002Fform-data' via the content_type attribute below.\nheaders = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_pdf_with_ocr_text.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\nprint(\"Sending POST request to pdf-with-ocr-text endpoint...\")\nresponse = requests.post(pdf_with_ocr_text_endpoint_url, data=mp_encoder_pdf_with_ocr_text, headers=headers)\n\nprint(\"Response status code: \" + str(response.status_code))\n\nif response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\n# If you would like to download the file instead of getting the JSON response, please see the 'get-resource-id-endpoint.py' sample.\n\u003C\u002Fpre>\n\n\u003Cp>Source: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FMultipart%20Payload\u002Fpdf-with-ocr-text.py\">GitHub Repository\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Breaking Down the Code\u003C\u002Fh2>\n\n\u003Cp>Let's break down the code to understand how it works:\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">from requests_toolbelt import MultipartEncoder\nimport requests\nimport json\n\u003C\u002Fpre>\n\n\u003Cp>This section imports the necessary libraries. \u003Ccode>requests_toolbelt\u003C\u002Fcode> is used to handle multipart form data, \u003Ccode>requests\u003C\u002Fcode> is used to make HTTP requests, and \u003Ccode>json\u003C\u002Fcode> is used to handle JSON responses.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">pdf_with_ocr_text_endpoint_url = 'https:\u002F\u002Fapi.pdfrest.com\u002Fpdf-with-ocr-text'\n\u003C\u002Fpre>\n\n\u003Cp>This line sets the endpoint URL for the OCR PDF API.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">mp_encoder_pdf_with_ocr_text = MultipartEncoder(\n    fields={\n        'file': ('file_name', open('\u002Fpath\u002Fto\u002Ffile', 'rb'), 'application\u002Fpdf'),\n        'output' : 'example_pdf-with-ocr-text_out',\n    }\n)\n\u003C\u002Fpre>\n\n\u003Cp>Here, we create a \u003Ccode>MultipartEncoder\u003C\u002Fcode> object to handle the multipart form data. The \u003Ccode>fields\u003C\u002Fcode> dictionary includes:\u003C\u002Fp>\n\n\u003Cul>\n    \u003Cli>\u003Ccode>file\u003C\u002Fcode>: The PDF file to be processed. Replace \u003Ccode>\u002Fpath\u002Fto\u002Ffile\u003C\u002Fcode> with the actual file path.\u003C\u002Fli>\n    \u003Cli>\u003Ccode>output\u003C\u002Fcode>: The name of the output file.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cpre class=\"language-python\">headers = {\n    'Accept': 'application\u002Fjson',\n    'Content-Type': mp_encoder_pdf_with_ocr_text.content_type,\n    'Api-Key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' # place your api key here\n}\n\u003C\u002Fpre>\n\n\u003Cp>This section sets the headers for the API request. The \u003Ccode>Content-Type\u003C\u002Fcode> is automatically set to \u003Ccode>multipart\u002Fform-data\u003C\u002Fcode> by the \u003Ccode>MultipartEncoder\u003C\u002Fcode>. Replace \u003Ccode>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u003C\u002Fcode> with your actual API key.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">response = requests.post(pdf_with_ocr_text_endpoint_url, data=mp_encoder_pdf_with_ocr_text, headers=headers)\n\u003C\u002Fpre>\n\n\u003Cp>This line sends a POST request to the OCR PDF endpoint with the specified data and headers.\u003C\u002Fp>\n\n\u003Cpre class=\"language-python\">if response.ok:\n    response_json = response.json()\n    print(json.dumps(response_json, indent = 2))\nelse:\n    print(response.text)\n\u003C\u002Fpre>\n\n\u003Cp>Finally, this block checks if the request was successful. If so, it prints the JSON response. Otherwise, it prints the error message.\u003C\u002Fp>\n\n\u003Ch2>Beyond the Tutorial\u003C\u002Fh2>\n\n\u003Cp>In this tutorial, we demonstrated how to use Python to send an API call to the pdfRest OCR PDF endpoint. By following the steps outlined above, you can convert scanned documents into searchable PDFs using OCR.\u003C\u002Fp>\n\n\u003Cp>We encourage you to explore all the pdfRest API Tools in the \u003Ca href=\"https:\u002F\u002Fpdfrest.com\u002Fapilab\u002F\">API Lab\u003C\u002Fa>. For more detailed information, refer to the \u003Ca href=\"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002F\">API Reference Guide\u003C\u002Fa>.\u003C\u002Fp>\n\n\u003Cp>Note: This is an example of a multipart API call. Code samples using JSON payloads can be found at \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpdfrest\u002Fpdfrest-api-samples\u002Fblob\u002Fmain\u002FPython\u002FEndpoint%20Examples\u002FJSON%20Payload\u002Fpdf-with-ocr-text.py\">GitHub Repository\u003C\u002Fa>.\u003C\u002Fp>\n\u003C!--kg-card-end: html-->\n","2024-07-24T17:23:43.000+00:00","2026-09-02T18:29:48.000+00:00","Learn how to use pdfRest OCR PDF API Tool with Python to make PDF image text searchable","{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"TechArticle\",\n      \"@id\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F#article\",\n      \"headline\": \"How to Use OCR to Make PDF Image Text Searchable with Python\",\n      \"url\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\",\n      \"mainEntityOfPage\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\",\n      \"datePublished\": \"2024-07-24T17:23:43.000Z\",\n      \"dateModified\": \"2026-09-01T14:23:28.000Z\",\n      \"author\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\"\n      },\n      \"publisher\": {\n        \"@type\": \"Organization\",\n        \"name\": \"pdfRest\",\n        \"url\": \"https:\u002F\u002Fpdfrest.com\u002F\",\n        \"logo\": {\n          \"@type\": \"ImageObject\",\n          \"url\": \"https:\u002F\u002Fcms.pdfrest.com\u002Fcontent\u002Fimages\u002F2026\u002F09\u002FpdfRest_submark_750_750.png\"\n        }\n      },\n      \"description\": \"Learn how to use pdfRest OCR PDF API Tool with Python to make PDF image text searchable\",\n      \"about\": [\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"OCR PDF API Tool\",\n          \"url\": \"https:\u002F\u002Fpdfrest.com\u002Fapitools\u002Focr-pdf\u002F\"\n        },\n        {\n          \"@type\": \"Thing\",\n          \"name\": \"POST \u002Fpdf-with-ocr-text API endpoint\",\n          \"url\": \"https:\u002F\u002Fdocs.pdfrest.com\u002Fpdfrest-api-toolkit-cloud\u002Fapi-reference-guide\u002Ftool\u002Focr-pdf\"\n        }\n      ],\n      \"keywords\": \"Accessibility, OCR, OCR PDF, Python, Text\",\n      \"dependencies\": \"Python, pdfRest API key\"\n    },\n    {\n      \"@type\": \"BreadcrumbList\",\n      \"itemListElement\": [\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 1,\n          \"name\": \"Learning\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 2,\n          \"name\": \"Tutorials\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002F\"\n        },\n        {\n          \"@type\": \"ListItem\",\n          \"position\": 3,\n          \"name\": \"How to Use OCR to Make PDF Image Text Searchable with Python\",\n          \"item\": \"https:\u002F\u002Fpdfrest.com\u002Flearning\u002Ftutorials\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F\"\n        }\n      ]\n    }\n  ]\n}",[4515,4516,4517,4518,4519,4520,4521],{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},{"id":2713,"name":2714,"slug":2714,"description":2715,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2716},{"id":1488,"name":1489,"slug":1490,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2219,"name":2220,"slug":2221,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1492,"name":1493,"slug":1494,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1480,"name":1481,"slug":1482,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":1923,"name":1924,"slug":1925,"description":48,"feature_image":48,"visibility":1282,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":1284},{"id":2709,"name":2710,"slug":2710,"description":48,"feature_image":48,"visibility":1257,"og_image":48,"og_title":48,"og_description":48,"twitter_image":48,"twitter_title":48,"twitter_description":48,"meta_title":48,"meta_description":48,"codeinjection_head":48,"codeinjection_foot":48,"canonical_url":48,"accent_color":48,"url":2711},"https:\u002F\u002Fcms.pdfrest.com\u002Fhow-to-use-ocr-to-make-pdf-image-text-searchable-with-python\u002F","How to Use OCR to Make PDF Image Text Searchable with Python, Tutorial | pdfRest",{"pagination":4526},{"page":5,"limit":4527,"pages":5,"total":4528,"next":48,"prev":48},"all",87,1790965762785]