{"id":4343,"date":"2013-09-20T05:04:57","date_gmt":"2013-09-19T19:04:57","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4343"},"modified":"2020-04-14T08:41:34","modified_gmt":"2020-04-13T22:41:34","slug":"pc-htmldoc-to-pdf-via-mac-textedit-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/pc-htmldoc-to-pdf-via-mac-textedit-primer-tutorial\/","title":{"rendered":"PC Html\/Doc to Pdf via Mac TextEdit Primer Tutorial"},"content":{"rendered":"<p><div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/FileSharing\/Mac\/textedit.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"File Server Sharing Mac with PC Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Windows\/FileSharing\/Mac\/FileServer_MacPC_Sharing.jpg\" title=\"File Server Sharing Mac with PC Tutorial\" \/><\/a><p class=\"wp-caption-text\">File Server Sharing Mac with PC Tutorial<\/p><\/div><br \/>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/TextEdit\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"PC Html\/Doc to Pdf via Mac TextEdit Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/TextEdit\/HtmlDocPdf_Primer.jpg\" title=\"PC Html\/Doc to Pdf via Mac TextEdit Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">PC Html\/Doc to Pdf via Mac TextEdit Primer Tutorial<\/p><\/div><\/p>\n<p>Found this tutorial very interesting.   It can be wasteful to overlook simple things.   Take, for example the humble Mac application called <a target=_blank title='TextEdit support from Apple' href='http:\/\/support.apple.com\/kb\/HT2523'>TextEdit<\/a>.   From now on, am going to call it <strong><em>&#8220;The Broker&#8221;<\/em><\/strong>.   The reason is, it is a simple application probably intended as a Text Editor (but Apple calls it a Word Processor, and now understand them to be correct) by real trade (here my personal Mac favourite is <a target=_blank title='TextWrangler download page' href='https:\/\/www.macupdate.com\/app\/mac\/11009\/textwrangler'>TextWrangler<\/a>), but over time being the Mac OS X flagship for flexibility, so over time &#8230; am guessing? &#8230; it has been given some really cute features.   It reads *.htm* HTML files, it reads *.doc* Microsoft Word document files &#8230; not perfectly, for the more complicated scenarios but really very well for text items, for example.   Well, that is good, but it also Exports PDF &#8230; so <a target=_blank title=' ... have been waiting ...' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1819'>finally<\/a> we have a tutorial about one of the big ticket protocol-type items of the net, the PDF file.   We need Wikipedia while we take a bex!<\/p>\n<blockquote><p>Portable Document Format (PDF) is a file format used to represent documents in a manner independent of application software, hardware, and operating systems.[1] Each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, graphics, and other information needed to display it. In 1991, Adobe Systems co-founder John Warnock outlined a system called &#8220;Camelot&#8221;[2] that evolved into PDF.<\/p>\n<p>While Adobe Systems made the PDF specification available free of charge in 1993, PDF remained a proprietary format, controlled by Adobe, until it was officially released as an open standard on July 1, 2008, and published by the International Organization for Standardization as ISO 32000-1:2008.[3][4] In 2008, Adobe published a Public Patent License to ISO 32000-1 granting royalty-free rights for all patents owned by Adobe that are necessary to make, use, sell and distribute PDF compliant implementations.[5]<\/p><\/blockquote>\n<p>Okay, today we do some imperfect conversions, warts and all, but you have to see how good using humble old TextEdit (free with a Mac laptop, for example) <strong><em>&#8220;The Broker&#8221;<\/strong><\/em> can be to write out some PDF, and so have another way in to useful (local <a target=_blank title='MAMP web server tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=933'>MAMP web server<\/a> (in the case of this tutorial, but the woorrrld is your <a target=_blank title='Sea Change ... Bay of Pearls ... Pearl Bay ... yes!!!' href='http:\/\/profileengine.com\/people\/mightbesomewhere\/lisa.hall#\/groups\/profile\/425220003\/bay-of-pearlspearl-bay'>oyster<\/a>))) web work (because PDF=&#8221;useful web work&#8221; &#8230; it is well supported for web and mobile apps).   The last slide of tutorial (and of picture above) sums up what this tutorial&#8217;s aim is:<\/p>\n<p><em><\/p>\n<p>Overview (starting at PC):<\/p>\n<p>1)  Started with a website (expressed with an *.htm* URL)<br \/>\n2)  Used command line invocation of Microsoft Word on a PC to open the URL of 1)<br \/>\n3)  Saved the data as a) Web page (*.htm) and b) Word document (*.doc) to Samba Shared Directory<\/p>\n<p>4)  \u2026 left PC \u2026 went to Mac laptop \u2026<\/p>\n<p>5) Opened 3) a) Samba Shared Directory *.htm file using Mac application TextEdit (&#8220;the broker&#8221;)<br \/>\n6) Exported to MAMP home directory as RJMProgrammingHHomePBitMashedUp.pdf<br \/>\n7) Opened 3) b) Samba Shared Directory *.doc file using Mac application TextEdit (&#8220;the broker&#8221;) &#8230; so, in this tutorial (only), can be called http:\/\/localhost:8888\/RJMProgrammingHHomePBitMashedUp.pdf in any web browser (if MAMP is up and going)<br \/>\n8) Exported to MAMP home directory as RJMProgrammingWHomePBitMashedUp.pdf (if you get <a target=_blank title='Emoticon information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Emoticon'>emoticon<\/a> here, well, that&#8217;s a bonus!) &#8230; so, in this tutorial (only), can be called http:\/\/localhost:8888\/RJMProgrammingWHomePBitMashedUp.pdf in any web browser (if MAMP is up and going)<\/p>\n<p>9) Opened <a target=_blank title='Downloadable RJMProgrammingHHomePBitMashedUp.pdf' href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/TextEdit\/RJMProgrammingHHomePBitMashedUp.pdf\">RJMProgrammingHHomePBitMashedUp.pdf<\/a> in Adobe Reader and <a title='Downloadable RJMProgrammingWHomePBitMashedUp.pdf' target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/TextEdit\/RJMProgrammingWHomePBitMashedUp.pdf\">RJMProgrammingWHomePBitMashedUp.pdf<\/a> in Preview<\/p>\n<p>\u2026 things get lost in translation, to varying degrees, but this shows you what is possible, easily, with simple HTML elements.   Chow.<\/p>\n<p><\/em><\/p>\n<p><strong>Below are some good background reading for the concepts of these tutorials all via Wikipedia:<\/strong><\/p>\n<ul>\n<li><a target=_blank title='File Server' href='https:\/\/en.wikipedia.org\/wiki\/File_server\u200e'>File Server<\/a><\/li>\n<li><a target=_blank title='File Sharing' href='https:\/\/en.wikipedia.org\/wiki\/File_Sharing'>File Sharing<\/a><\/li>\n<li><a target=_blank title='Samba on Linux' href='http:\/\/en.wikipedia.org\/wiki\/Samba_%28software%29'>Samba<\/a><\/li>\n<li><a target=_blank title='PDF' href='http:\/\/en.wikipedia.org\/wiki\/Portable_document_format'>PDF<\/a> (as per quote way above)<\/li>\n<\/ul>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4343' onclick='var dv=document.getElementById(\"d4343\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=64#content\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4343' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Found this tutorial very interesting. It can be wasteful to overlook simple things. Take, for example the humble Mac application called TextEdit. From now on, am going to call it &#8220;The Broker&#8221;. The reason is, it is a simple application &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/pc-htmldoc-to-pdf-via-mac-textedit-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12,25,29,33,37],"tags":[423,424,576,723,730,744,789,837,913,1003,1086,1263,1266,1319,1404,1411,1435],"class_list":["post-4343","post","type-post","status-publish","format-standard","hentry","category-data-integration","category-elearning","category-networking","category-operating-system","category-software","category-tutorials","tag-file-server","tag-file-sharing","tag-html","tag-mac","tag-mac-osx","tag-mamp","tag-microsoft-word","tag-networking-2","tag-pdf","tag-protocols","tag-samba","tag-textedit","tag-the-broker","tag-tutorial","tag-web-browser","tag-web-server","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4343"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4343"}],"version-history":[{"count":2,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4343\/revisions"}],"predecessor-version":[{"id":48603,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4343\/revisions\/48603"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}