Invoice created. How to edit once and then lock it from being edited?

Avatar

20-11-2008

Hello,

I just started using LiveCycle the other day when I purchased CS4.



I created a custom invoice for my billing using text fields and numeric fields. This works fine and it looks good.



When I create a PDF from LiveCycle it has the fields that I can input my amounts into, text, and so forth.



How do I, once I edit the PDF lock it so that the clients I am sending the invoice to, can not edit it but only print it? I see this functionality only within LiveCycle itself, requiring a password to edit, however I would prefer to just edit the PDF myself (since I am the only one doing the billing) and then just lock it somehow rather than putting in a password each time.



Any ideas? I couldn't seem to find what I wanted here or in the help files.



Thanks

Replies

Avatar

Avatar

Jono_Moore

Avatar

Jono_Moore

Jono_Moore

18-06-2009

Hey Paul, I've got a script that does the same thing but is a lot shorter...does yours do anything different from this:

// Get the field containers from each page.
for (var i = 0; i < xfa.host.numPages; i++) {
var oFields = xfa.layout.pageContent(i, "field");
var nodesLength = oFields.length;
// Set the access type.
for (var j = 0; j < nodesLength; j++) {
var oItem = oFields.item(j);
if (oItem != this) {
oItem.access = "readOnly";
}
}
}