PDFDocumentService, Document Open Password set to NO

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

PDFDocumentService, Document Open Password set to NO

Post by Dino »

Hi guys,

Using LANSA Integrator's PDFDocumentService, you can have the PDF document to have Encryption level.

You do that by setting the password in the CREATE command, like:

Code: Select all

CREATE DOCUMENT() CONTENT() PASSWORD(ABC)
https://docs.lansa.com/15/en/lansa093/i ... 7_0795.htm

and you can set other "allow" properties using additional values in the XML document like:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<document page-size="letter" allow-modify-contents="false" allow-modify-annotations="false">
  <content name="logo_area">
	<grid/>
  </content>
</document>
https://docs.lansa.com/15/en/lansa093/i ... 7_0955.htm

You can see these values, by opening the PDF in adobe reader, right click and document properties... Show Details, show more information.

I am trying to match this other non LANSA generated PDF document (the image in the LEFT) which while having almost the same values, it allows to open the document without asking for a password, but is encrypted and have almost the same settings... seems that the only difference is this permission, "DOCUMENT OPEN PASSWORD", which is set to NO in the original case (LEFT), but I cannot find how to set in NO in LANSA. LANSA by default, have that in YES (or true). (RIGHT IMAGE)

Does anyone know how to change that default from YES to NO, or TRUE to FALSE for "Document Open Password"?

Thank you.
pdf01.png
pdf01.png (31.43 KiB) Viewed 197397 times
pdf02.png
pdf02.png (27.31 KiB) Viewed 197397 times
Post Reply