{"id":107,"date":"2010-12-15T07:19:00","date_gmt":"2010-12-15T07:19:00","guid":{"rendered":"https:\/\/pim.famnit.upr.si\/wp\/?p=107"},"modified":"2021-11-17T11:22:00","modified_gmt":"2021-11-17T11:22:00","slug":"os-x-preview-add-an-image-to-a-pdf-file","status":"publish","type":"post","link":"https:\/\/pim.famnit.upr.si\/wp\/?p=107","title":{"rendered":"OS X Preview &#8211; add an image to a PDF file"},"content":{"rendered":"<p><strong>EDIT 18. 12. 2010:<\/strong> I posted <a href=\"index.php?\/archives\/141-FormulatePro-add-an-image-to-a-PDF-file.html\">a better solution with FormulatePro<\/a>.&nbsp; <\/p>\n<p><strong>EDIT 17. 12. 2010: Before commenting &#8211; As said at the end, this procedure is quick and dirty adding an image to an existing PDF AND the end result is an image converted to PDF which has lost all PDF advantages and benefits!<\/strong> Such documents are fine for e.g. quick printing. For better results try the command line tool <a href=\"http:\/\/www.pdflabs.com\/tools\/pdftk-the-pdf-toolkit\/\">pdftk<\/a> (options <strong>stamp<\/strong> or <strong>multistamp<\/strong>), <a href=\"http:\/\/code.google.com\/p\/formulatepro\/\">Formulate Pro<\/a>,&nbsp; or Acrobat Pro.<\/p>\n<p>I wanted to <strong>add a logo of a university (a PNG image) on a document I had in PDF<\/strong>. It is fairly simple to do this in <strong>Preview<\/strong>:<\/p>\n<p><em><strong>Document.PDF <\/strong><\/em><\/p>\n<p><strong>1. <\/strong>Convert the PDF to an image with <em>File -&gt; Save As -&gt;<\/em> &#8230; Choose <em>PNG<\/em> as <em>a Format <\/em>and change <em>Resolution<\/em> as desired<\/p>\n<p><em><strong>Logo.PNG <\/strong><\/em><\/p>\n<p><strong>2. <\/strong>Switch to the logo image and select the whole image with <em>Edit -&gt; Select All<\/em> (<em>Command+A<\/em>) (or select just a part of it with a mouse if you wish)<\/p>\n<p><strong>3. <\/strong>Copy the selection <em>Edit -&gt; Copy<\/em> (<em>Command+C<\/em>)<\/p>\n<p><em><strong>Document.PNG<\/strong><\/em><\/p>\n<p><strong>4. <\/strong>Back on the document (which is now the PNG image!) paste the selection <em>with Edit -&gt; Paste<\/em> (<em>Command+V<\/em>) and resize it as you wish<\/p>\n<p><strong>5. <\/strong>Save it as PDF with <em>File -&gt; Save As<\/em> -&gt; &#8230; Choose <em>PDF<\/em> as <em>Format<\/em> (<strong>rename it if the original PDF needs to be preserved!!!!<\/strong>).<\/p>\n<p>There are some drawbacks in this procedure (a PDF made from an image is not searchable), but that&#8217;s another story :).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/preview-add-image.png\" class=\"no_float\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EDIT 18. 12. 2010: I posted a better solution with FormulatePro.&nbsp; EDIT 17. 12. 2010: Before commenting &#8211; As said at the end, this procedure is quick and dirty adding an image to an existing PDF AND the end result is an image converted to PDF which has lost all PDF advantages and benefits! Such&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-6-pim-research","category-8-software-interfaces"],"_links":{"self":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":2,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":1679,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/1679"}],"wp:attachment":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}