{"id":159,"date":"2026-07-04T19:58:33","date_gmt":"2026-07-04T19:58:33","guid":{"rendered":"https:\/\/cartlanka.lk\/?page_id=159"},"modified":"2026-07-04T19:58:33","modified_gmt":"2026-07-04T19:58:33","slug":"pdf-tools","status":"publish","type":"page","link":"https:\/\/cartlanka.lk\/index.php\/pdf-tools\/","title":{"rendered":"PDF Tools"},"content":{"rendered":"\t\t<div class=\"ptp-toolkit\" id=\"ptp-toolkit\">\n\n\t\t\t<div class=\"ptp-tabs\" role=\"tablist\">\n\t\t\t\t<button type=\"button\" class=\"ptp-tab active\" data-tab=\"images\">Images \\u2192 PDF<\/button>\n\t\t\t\t<button type=\"button\" class=\"ptp-tab\" data-tab=\"merge\">Merge PDFs<\/button>\n\t\t\t\t<button type=\"button\" class=\"ptp-tab\" data-tab=\"reorder\">Reorder Pages<\/button>\n\t\t\t\t<button type=\"button\" class=\"ptp-tab\" data-tab=\"compress\">Compress PDF<\/button>\n\t\t\t\t<button type=\"button\" class=\"ptp-tab\" data-tab=\"office\">Office \\u2192 PDF<\/button>\n\t\t\t<\/div>\n\n\t\t\t<p class=\"ptp-max-upload\">Max upload size: <span id=\"ptp-max-upload-value\"><\/span><\/p>\n\n\t\t\t<!-- Images -> PDF -->\n\t\t\t<div class=\"ptp-panel active\" data-panel=\"images\">\n\t\t\t\t<p>Choose images, drag to reorder, then generate a single PDF.<\/p>\n\t\t\t\t<input type=\"file\" class=\"ptp-file-input\" data-target=\"images\" accept=\"image\/jpeg,image\/png,image\/webp,image\/gif\" multiple \/>\n\t\t\t\t<ul class=\"ptp-file-list\" data-list=\"images\"><\/ul>\n\t\t\t\t<div class=\"ptp-options\">\n\t\t\t\t\t<label>Page size\t\t\t\t\t\t<select data-opt=\"page_size\">\n\t\t\t\t\t\t\t<option value=\"a4\">A4<\/option>\n\t\t\t\t\t\t\t<option value=\"letter\">Letter<\/option>\n\t\t\t\t\t\t\t<option value=\"legal\">Legal<\/option>\n\t\t\t\t\t\t\t<option value=\"auto\">Fit to image<\/option>\n\t\t\t\t\t\t<\/select>\n\t\t\t\t\t<\/label>\n\t\t\t\t\t<label>Orientation\t\t\t\t\t\t<select data-opt=\"orientation\">\n\t\t\t\t\t\t\t<option value=\"auto\">Auto<\/option>\n\t\t\t\t\t\t\t<option value=\"portrait\">Portrait<\/option>\n\t\t\t\t\t\t\t<option value=\"landscape\">Landscape<\/option>\n\t\t\t\t\t\t<\/select>\n\t\t\t\t\t<\/label>\n\t\t\t\t\t<label>Quality\t\t\t\t\t\t<input type=\"range\" data-opt=\"quality\" min=\"30\" max=\"100\" value=\"85\" \/>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/div>\n\t\t\t\t<button type=\"button\" class=\"ptp-button ptp-run\" data-action=\"images_to_pdf\">Convert to PDF<\/button>\n\t\t\t\t<div class=\"ptp-result\" data-result=\"images\"><\/div>\n\t\t\t<\/div>\n\n\t\t\t<!-- Merge PDFs -->\n\t\t\t<div class=\"ptp-panel\" data-panel=\"merge\">\n\t\t\t\t<p>Choose two or more PDF files, drag to set the merge order.<\/p>\n\t\t\t\t<input type=\"file\" class=\"ptp-file-input\" data-target=\"pdfs\" accept=\"application\/pdf\" multiple \/>\n\t\t\t\t<ul class=\"ptp-file-list\" data-list=\"pdfs\"><\/ul>\n\t\t\t\t<button type=\"button\" class=\"ptp-button ptp-run\" data-action=\"merge_pdfs\">Merge PDFs<\/button>\n\t\t\t\t<div class=\"ptp-result\" data-result=\"merge\"><\/div>\n\t\t\t\t<p class=\"ptp-note\">Requires Ghostscript on the server (see Settings \\u2192 PDF Toolkit Pro).<\/p>\n\t\t\t<\/div>\n\n\t\t\t<!-- Reorder pages -->\n\t\t\t<div class=\"ptp-panel\" data-panel=\"reorder\">\n\t\t\t\t<p>Upload one PDF, then drag its pages into the order you want.<\/p>\n\t\t\t\t<input type=\"file\" class=\"ptp-file-input\" data-target=\"reorder-pdf\" accept=\"application\/pdf\" \/>\n\t\t\t\t<ul class=\"ptp-file-list ptp-page-list\" data-list=\"reorder-pages\"><\/ul>\n\t\t\t\t<button type=\"button\" class=\"ptp-button ptp-run\" data-action=\"reorder_pdf_pages\" style=\"display:none;\">Save new order<\/button>\n\t\t\t\t<div class=\"ptp-result\" data-result=\"reorder\"><\/div>\n\t\t\t\t<p class=\"ptp-note\">Requires Ghostscript on the server (see Settings \\u2192 PDF Toolkit Pro).<\/p>\n\t\t\t<\/div>\n\n\t\t\t<!-- Compress -->\n\t\t\t<div class=\"ptp-panel\" data-panel=\"compress\">\n\t\t\t\t<p>Upload a PDF to shrink its file size.<\/p>\n\t\t\t\t<input type=\"file\" class=\"ptp-file-input\" data-target=\"compress-pdf\" accept=\"application\/pdf\" \/>\n\t\t\t\t<ul class=\"ptp-file-list\" data-list=\"compress-pdf\"><\/ul>\n\t\t\t\t<label>Compression level\t\t\t\t\t<select data-opt=\"level\">\n\t\t\t\t\t\t<option value=\"low\">Low (best quality)<\/option>\n\t\t\t\t\t\t<option value=\"medium\" selected>Medium (recommended)<\/option>\n\t\t\t\t\t\t<option value=\"high\">High (smallest file)<\/option>\n\t\t\t\t\t<\/select>\n\t\t\t\t<\/label>\n\t\t\t\t<button type=\"button\" class=\"ptp-button ptp-run\" data-action=\"compress_pdf\">Compress PDF<\/button>\n\t\t\t\t<div class=\"ptp-result\" data-result=\"compress\"><\/div>\n\t\t\t\t<p class=\"ptp-note\">Requires Ghostscript on the server (see Settings \\u2192 PDF Toolkit Pro).<\/p>\n\t\t\t<\/div>\n\n\t\t\t<!-- Office to PDF -->\n\t\t\t<div class=\"ptp-panel\" data-panel=\"office\">\n\t\t\t\t<p>Convert Excel, Word, PowerPoint, or CSV files to PDF.<\/p>\n\t\t\t\t<input type=\"file\" class=\"ptp-file-input\" data-target=\"office\" accept=\".xls,.xlsx,.doc,.docx,.ppt,.pptx,.csv\" \/>\n\t\t\t\t<ul class=\"ptp-file-list\" data-list=\"office\"><\/ul>\n\t\t\t\t<button type=\"button\" class=\"ptp-button ptp-run\" data-action=\"office_to_pdf\">Convert to PDF<\/button>\n\t\t\t\t<div class=\"ptp-result\" data-result=\"office\"><\/div>\n\t\t\t\t<p class=\"ptp-note\">Requires a CloudConvert API key (see Settings \\u2192 PDF Toolkit Pro). Conversion may take up to a minute.<\/p>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"ptp-ad-slot\"><strong>Google AdSense Placeholder<\/strong><br>Paste your responsive ad code here.<\/div>\n\t\t<\/div>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-159","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/pages\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":1,"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/pages\/159\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/pages\/159\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/cartlanka.lk\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}