Lulu Developer Forums

Troubleshooting: Publication API

RSS Feed

re "Your PDF may be locked" error

  1. This is an FYI for those who may run into this error:

    Error on creating project: {"error_value": "Your PDF may be locked with a password or have been corrupted during creation. Please try to recreate this PDF and upload it again.", "error_type": "LApiPublishInvalidDocumentException"}

    At the same time the files upload just fine via the wizard on the website.

    I spend quite some time tracing this down - it is caused by the fact that some upload libraries may truncate the files during the upload. In particular, this is an issue with Perl and libwww-perl, when using DYNAMIC FILE UPLOAD feature.

    Hope this helps people.

    Message edited by Yakov Shafranovich 3 years ago

[ Page 1 of 1 ]