<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Image in title statement not inserting in  PDF after password protection (ODS PDF) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961191#M374732</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a program in which I need to insert&amp;nbsp; the company logo in the title (header) and also password protect the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the program will no password option the ODS PDF generates the pdf file without any errors or issue in the pdf file. When I set the password in the program. the pdf file is generated and there are no errors or warnings in the log, but the pdf file do not contain the logo and the pdf reader shows error there is something wrong with the file please contact the person who created it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code which I'm using to create the header: (this is working fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber orientation=portrait papersize=A4 ;&lt;BR /&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;ods pdf file="&amp;amp;path\&amp;amp;fname" style=journal notoc startpage=no ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title j=l f='Times New Roman' height=10pt "Sponsor: &amp;amp;sponsor";&lt;BR /&gt;title2 j=l f='Times New Roman' height=10pt "Project No.: &amp;amp;proj " j=c "Version No.: &amp;amp;ver" j=r '^S={preimage="&amp;amp;logo"}';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i add password options (below code) then this code will run without errors but no image is inserted in the pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber orientation=portrait papersize=A4 pdfsecurity=high pdfpassword=(open="Awesomepassword");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 09:00:05 GMT</pubDate>
    <dc:creator>Tranz711</dc:creator>
    <dc:date>2025-03-07T09:00:05Z</dc:date>
    <item>
      <title>Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961191#M374732</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a program in which I need to insert&amp;nbsp; the company logo in the title (header) and also password protect the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the program will no password option the ODS PDF generates the pdf file without any errors or issue in the pdf file. When I set the password in the program. the pdf file is generated and there are no errors or warnings in the log, but the pdf file do not contain the logo and the pdf reader shows error there is something wrong with the file please contact the person who created it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code which I'm using to create the header: (this is working fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber orientation=portrait papersize=A4 ;&lt;BR /&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;ods pdf file="&amp;amp;path\&amp;amp;fname" style=journal notoc startpage=no ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title j=l f='Times New Roman' height=10pt "Sponsor: &amp;amp;sponsor";&lt;BR /&gt;title2 j=l f='Times New Roman' height=10pt "Project No.: &amp;amp;proj " j=c "Version No.: &amp;amp;ver" j=r '^S={preimage="&amp;amp;logo"}';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i add password options (below code) then this code will run without errors but no image is inserted in the pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber orientation=portrait papersize=A4 pdfsecurity=high pdfpassword=(open="Awesomepassword");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961191#M374732</guid>
      <dc:creator>Tranz711</dc:creator>
      <dc:date>2025-03-07T09:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961194#M374733</link>
      <description>&lt;P&gt;This looks like a bug. I'd contact tech support.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961194#M374733</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-03-07T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961253#M374750</link>
      <description>&lt;P&gt;Your code works fine for me. Tested.&amp;nbsp; The both SAS viewer screen, and pdf file opening after entering the password.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber orientation=portrait papersize=A4 pdfsecurity=high pdfpassword=(open="Awesomepassword");
ods escapechar="^";
ods pdf file="C:\Users\Desktop\test\test.pdf" style=journal notoc startpage=no ;
	title j=l f='Times New Roman' height=10pt "Sponsor:";
	title2 j=l f='Times New Roman' height=10pt "Project No.:" j=c "Version No.: " j=r '^S={preimage="C:\Users\Desktop\test\logo.png"}';
	proc print data=sashelp.class; run;

ods pdf close; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdf1.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105274iB783F64303E4FB56/image-size/large?v=v2&amp;amp;px=999" role="button" title="pdf1.PNG" alt="pdf1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdf2.PNG" style="width: 907px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105273i6DA7E22D19753D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pdf2.PNG" alt="pdf2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 16:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961253#M374750</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2025-03-07T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961283#M374760</link>
      <description>&lt;P&gt;Hello A_Kh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is not of password protection, the file is opening but the logo is not inserted if set password in the program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is logo is inserted into your pdf after adding password options in the program? or any errors by pdf viewer is shown?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 07:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961283#M374760</guid>
      <dc:creator>Tranz711</dc:creator>
      <dc:date>2025-03-08T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961284#M374761</link>
      <description>Yes, was unable to find any anything about this. going to contact tech support.&lt;BR /&gt;&lt;BR /&gt;Will update after response</description>
      <pubDate>Sat, 08 Mar 2025 07:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961284#M374761</guid>
      <dc:creator>Tranz711</dc:creator>
      <dc:date>2025-03-08T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961332#M374778</link>
      <description>&lt;P&gt;Yes, the logo does get inserted in password protected file as well.&amp;nbsp;&lt;BR /&gt;The log is clean, pdf file opens without issue after entering the psswd.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could it be smth to do with your PDF Viewer setting? I'm not good at it.&amp;nbsp;&lt;BR /&gt;The logo I'm using is 3KB .png file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 21:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961332#M374778</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2025-03-08T21:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Image in title statement not inserting in  PDF after password protection (ODS PDF)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961389#M374796</link>
      <description>&lt;P&gt;Hello A_Kh,&lt;BR /&gt;Thanks for verifying the code.&lt;BR /&gt;The Issue seems to with some user policy/ rights in the company's SAS server.&lt;BR /&gt;When tested using a local machine and also by you. the program and pdf both are working fine.&lt;BR /&gt;&lt;BR /&gt;waiting on internal IT Team, will respond after any progress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## Also image size is not an issue tried image ranging for 90 X 50 px (~5 KB)&amp;nbsp; to 1800 X 1000 px (~200 KB)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 07:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Image-in-title-statement-not-inserting-in-PDF-after-password/m-p/961389#M374796</guid>
      <dc:creator>Tranz711</dc:creator>
      <dc:date>2025-03-10T07:56:21Z</dc:date>
    </item>
  </channel>
</rss>

