- This topic has 4 replies, 2 voices, and was last updated 13 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › Using source PDF file not accessible over HTTP
We purchased PDF Stamper so we could protect PDFs from ending up on various sharing sites. As such, when I specify the source PDF file to stamp, I do not want it to be accessible on the web. Instead, I’d like the PHP script to read the file from the web server locally (i.e. local file system), stamp it and save it to another web inaccessible directory on the serveer. We then wrap access to the file using some custom code. Is this possible? Thanks.
How “into” custom code are you? User submits stamping job, that can be queued. A system cron job could then processes the request, stamp the file, and place into the appropriate directory. It’s not impossible, but it is beyond the support parameters of the product, so you would be exploring on your own.
Not opposed to cron at all…thought about doing that early on. Was going to look at your code but I think it’s protected. Can you advise how the system queues a request? I can then do the cron and stamping server side, especially if I can call your api with php command line. Thanks.
Since the jobs would be running under the whatever UID you choose, you could probably use ACL to control access to the source and destination directories.
Thanks for the quick replies!