How can I change the SugarCRM image on the PDF quote template?

I have an image that I want to use. I want to upload the image to Sugar instead of hosting it somewhere else. How can I upload it to Sugar so it is available to the PDF manager?

Parents Reply
  • Hi John,

    One method to upload a new logo file is by going to Admin > PDF Manager. Once that page is loaded, click the 'PDF Manager' option in the top navigation bar and select 'Edit Report PDF Template'.

     {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  

    From that page, you can choose your desired image file and click 'Save' to upload it. Once the file is uploaded, it is renamed as pdf_logo_<original filename>.

    In my example, the file I chose was named 'sugarcrm_support.png', so when it was uploaded, it was renamed as 'pdf_logo_sugarcrm_support.png'.

    Now, with that file uploaded, you can edit your PDF template and change the image URL to:

    ./custom/themes/default/images/pdf_logo_<original filename>

    So again, for my example, the path I entered was './custom/themes/default/images/pdf_logo_sugarcrm_support.png' and the image was immediately reflected in the template.

    You can upload as many image files as you desire through this method as long as the image files have unique filenames. If an image file is uploaded with a previously used filename, it will just overwrite the previous image on the file system. Please remember that your last uploaded image will serve as the logo for any generated PDFs for the Reports module.

    This isn't a clear solution for users coming across this hurdle, so I created the following idea: Provide a Utility for Managing Images for PDF Templates . I encourage you to vote on the idea and add any additional feedback you have on how we can make this a more useful utility for you in a future release of Sugar.

    Kind regards,

    Chris

Children