PDF processing before delivery

  • Posts: 3
  • Thank you received: 0
1 year 6 months ago #345042

I sell digital sheet music in PDF format and want to add an automatic notice to PDFs saying "Licensed to name. Please respect copyright"

Is there any way to do this in HikaShop. I have a paid license but have not migrated my store yet.

Apoloies if this is duplicated - my last attempt to post did not appear.

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
1 year 6 months ago #345044

Hi,

There is no easy way to do this.
To be able to modify PDF files in PHP, you need to use a library like Zend PDF or FPDF/FPDI:
stackoverflow.com/questions/7364/edit-pdf-en-php
Note however that as some pointed there, it might be impossible with some PDF files as there are many ways PDF files can be generated (for example with DRMs).
And since you want to integrate this in HikaShop, you can use the event onBeforeDownloadFile of HikaShop in a custom plugin to add your PHP code using these libraries:
www.hikashop.com/support/documentation/6...onBeforeDownloadFile
So it requires advanced skills in PHP and time to put in to know how to make a Joomla plugin and how to use these PDF libraries and it might not work with some PDF files.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum