{"id":12341,"date":"2021-03-09T09:03:08","date_gmt":"2021-03-09T09:03:08","guid":{"rendered":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/?page_id=12341"},"modified":"2021-12-08T09:22:06","modified_gmt":"2021-12-08T09:22:06","slug":"pdf-download-block","status":"publish","type":"page","link":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/pdf-download-block\/","title":{"rendered":"PDF Download Block"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The PDF Download block provides an easy way of displaying a link to a PDF file along with a thumbnail image of the PDF\u2019s front page (this requires that your web hosting includes Imagick, a php module WordPress uses for generating images from PDFs).<\/p>\n\n\n\t<div id=\"lgd-pdf-block_60473812980c1\" class=\"lgd-block lgd-block-pdf has-background-color has-background has-theme-primary-light-background-color padding shadow-no border-none small-buttons\">\n\t\n\t<div class=\"lgd-pdf-block-text\">\n\t<div>\n\t<h2 class=\"entry-title\"><a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\">A sample PDF<\/a><\/h2>\n\t\t\t<p class=\"description\">Description: this is just a sample PDF for the PDF Download block. <\/p>\n\t\t\t<\/div>\n\t<div class=\"lgd-pdf-block-buttons\">\n\t<a class=\"button\" href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\">View PDF<\/a><a class=\"button\" href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\" download=\"\">Download<\/a>\t<\/div>\n\t<\/div>\n\t<div class=\"lgd-pdf-block-image\"><a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"600\" src=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf-pdf-424x600.jpg\" class=\"lgd-pdf-block-thumb alignright\" alt=\"A sample PDF\" \/><\/a><\/div>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The block will use the Title, Caption and Description for the PDF as entered during file upload or by editing the PDF in the Media Library. (The Caption is only used as the <em>Alt<\/em> value for the PDF image &#8211; if empty the Title will be used.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Title (and thumbnail, if available) will link to the PDF. In addition, buttons can be added for View PDF and \/ or Download.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">View PDF will open the PDF in the visitor\u2019s web browser, while Download will download the pdf direct to their computer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The height of the PDF thumbnail will be that in your site settings, up to a maximum 250 pixels.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block Settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>PDF Location<\/em><\/strong>: either on <strong>this site<\/strong> or an <strong>external<\/strong> file on another site<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>External Link<\/em><\/strong> (if external PDF): the url for the PDF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>PDF<\/em><\/strong> (if on the site): select a PDF from the Media Library or uploaded from your computer; set the Title and Description for the PDF; your hosting must have the php module Imagick enabled for the creation of a thumbnail image of the PDF front page (if your hosting doesn\u2019t have this option, you can link to the PDF as if it was an external PDF, with the choice to upload or select an image from the Media Library)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Title<\/em><\/strong> (if external PDF): a Title for the PDF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Description<\/em><\/strong> (if external PDF): a short description<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Image<\/em><\/strong> (if external PDF): an image for the PDF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Include View PDF button<\/em><\/strong>: select whether to display this button<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Include Download button<\/em><\/strong>: select whether to display this button<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Background colour<\/em><\/strong>: set the background colour from the lightest tints of the theme\u2019s three colours<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Border<\/em><\/strong>: select whether to have a border line around the block<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Shadow<\/em><\/strong>: select whether to add a shadow effect to the block<\/p>\n\n\n\t<div id=\"lgd-pdf-block_615d91255cd10\" class=\"lgd-block lgd-block-pdf has-background-color has-background has-theme-primary-light-background-color padding shadow-no border-none small-buttons\">\n\t\n\t<div class=\"lgd-pdf-block-text\">\n\t<div>\n\t<h2 class=\"entry-title\"><a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\">External PDF<\/a><\/h2>\n\t\t\t<p class=\"description\">This PDF is local but could be on another website as it is referenced through the url, not uploaded to the site \/ selected from the Media Library.<\/p>\n\t\t\t<\/div>\n\t<div class=\"lgd-pdf-block-buttons\">\n\t<a class=\"button\" href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\">View PDF<\/a><a class=\"button\" href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\" download=\"\">Download<\/a>\t<\/div>\n\t<\/div>\n\t<div class=\"lgd-pdf-block-image\"><a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2021\/03\/sample-pdf.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-content\/uploads\/2019\/11\/lynx-logo-green-e1586711072857-600x600.png\" class=\"lgd-pdf-block-thumb alignright\" alt=\"External PDF\" \/><\/a><\/div>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">See the <a href=\"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/pdf-download-example\/\" data-type=\"page\" data-id=\"12344\">PDF Download example<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PDF Download block provides an easy way of displaying a link to a PDF file along with a thumbnail image of the PDF\u2019s front page (this requires that your web hosting includes Imagick, a php module WordPress uses for&nbsp;\u2026 <\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":["post-12341","page","type-page","status-publish","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/12341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/comments?post=12341"}],"version-history":[{"count":20,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/12341\/revisions"}],"predecessor-version":[{"id":13558,"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/pages\/12341\/revisions\/13558"}],"wp:attachment":[{"href":"https:\/\/www.lynxwebdevelopment.co.uk\/lgd-callanish\/wp-json\/wp\/v2\/media?parent=12341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}