{"id":743,"date":"2016-03-07T07:43:14","date_gmt":"2016-03-07T07:43:14","guid":{"rendered":"https:\/\/people.utm.my\/norhaiza\/?p=743"},"modified":"2017-09-13T08:07:06","modified_gmt":"2017-09-13T08:07:06","slug":"wordpress-code-pdf-on-display","status":"publish","type":"post","link":"https:\/\/people.utm.my\/norhaiza\/2016\/03\/07\/wordpress-code-pdf-on-display\/","title":{"rendered":"WordPress Code: pdf on display"},"content":{"rendered":"<hr \/>\n<p><span style=\"font-size: 12pt; font-family: arial,helvetica,sans-serif;\"><strong>Output:<\/strong><\/span><\/p>\n<hr \/>\n<p><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">(1) Display pdf with single\/multiple pages on page\/post (2) Link to download pdf<\/span><\/p>\n<hr \/>\n<p><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\"><strong>HTML codes: <\/strong><\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">(1) copy-paste the codes below in your wordpress (text)<strong><br \/>\n<\/strong><\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">(2) delete the html comment lines eg. delete\u00a0 the lines &lt;! &#8230;. &#8211;&gt;<\/span><\/p>\n<p><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12pt;\">(3) Replace the links containing the pdf files to your own.<\/span><\/p>\n<hr \/>\n<p><span class=\"highCOM\" style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;!&#8211; Codes to write header &#8211;&gt;<\/span><\/p>\n<p><span style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;p style=&#8221;text-align: right;&#8221;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;&lt;strong&gt;Updated: Feb 2016&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/span><\/p>\n<p><span class=\"highCOM\" style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;!&#8211; Codes to indicate document is downloadable. &#8211;&gt;<\/span><\/p>\n<p><span class=\"highCOM\" style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;!&#8211; Pre-step:\u00a0 (1) Save your pdf file in Media (2) copy link to pdf file into the syntax below&#8211;&gt;<\/span><\/p>\n<p><span style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;span style=&#8221;font-family: helvetica,arial,sans-serif; font-size: 10pt;&#8221;&gt;&lt;a href=&#8221;https:\/\/people.utm.my\/norhaiza\/wp-content\/uploads\/sites\/1173\/2016\/03\/CV_NorhaizaAhmad_Feb2016_5Pages_new.pdf&#8221; target=&#8221;_blank&#8221;&gt;|View as Image|&lt;\/a&gt;&lt;\/span&gt;<\/span><\/p>\n<p><span class=\"highCOM\" style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;!&#8211; Codes to display pdf on page &#8211;&gt;<\/span><\/p>\n<p><span class=\"highCOM\" style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;!&#8211; Pre-step:\u00a0 (1) Save your pdf file in Media (2) copy link to pdf file into the syntax below&#8211;&gt;<\/span><\/p>\n<p><span style=\"font-family: courier new,courier,monospace; font-size: 10pt;\">&lt;iframe style=&#8221;border: 0;&#8221; src=&#8221;https:\/\/people.utm.my\/norhaiza\/wp-content\/uploads\/sites\/1173\/2016\/03\/CV_NorhaizaAhmad_Feb2016_5Pages_new.pdf&#8221; width=&#8221;100%&#8221; height=&#8221;670&#8243; frameborder=&#8221;0&#8243; allowfullscreen=&#8221;allowfullscreen&#8221;&gt;&lt;\/iframe&gt;<\/span><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 12pt;\"><span style=\"font-family: arial,helvetica,sans-serif;\">Example Output: https:\/\/people.utm.my\/norhaiza\/cv\/<\/span><br \/>\n<\/span><\/strong><\/p>\n<p><iframe loading=\"lazy\" style=\"border: 0;\" src=\"https:\/\/people.utm.my\/norhaiza\/wp-content\/uploads\/sites\/1173\/2016\/03\/web-haiza-cv.png\" width=\"100%\" height=\"670\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Output: (1) Display pdf with single\/multiple pages on page\/post (2) Link to download pdf HTML codes: (1) copy-paste the codes below in your wordpress (text) (2) delete the html comment lines eg. delete\u00a0 the lines &lt;! &#8230;. &#8211;&gt; (3) Replace the links containing the pdf files to your own. &lt;!&#8211; Codes to write header &#8211;&gt; [&hellip;]<\/p>\n","protected":false},"author":15793,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[21,20],"tags":[25,23,24,22,26],"class_list":["post-743","post","type-post","status-publish","format-standard","hentry","category-html-codes","category-wordpress","tag-code","tag-display","tag-html","tag-pdf","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/posts\/743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/users\/15793"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/comments?post=743"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/posts\/743\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/media?parent=743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/categories?post=743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/norhaiza\/wp-json\/wp\/v2\/tags?post=743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}