How can I get the value of Document.Modified flag using JS ?
I use this code but it doesn't work :
Code: Select all
var flag = new Number()
PDFView.GetDocumentProperty(0, "Modified", flag, 0)
alert(flag)
PS : SetProperty work fine.
Thanks for help.
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Code: Select all
var flag = new Number()
PDFView.GetDocumentProperty(0, "Modified", flag, 0)
alert(flag)
Code: Select all
var flag = PDFView.Property("Documents[0].Modified", 0);
alert(flag);
But !! I have the same problem when I want to get DocumentID. I need it because if I use this PDFView.Property("Documents[ID].Modified", 0); I must specify the document ID. I tested the following code, it doesn't work :Corwin wrote:Try to use next codeHTHCode: Select all
var flag = PDFView.Property("Documents[0].Modified", 0); alert(flag);
Code: Select all
var flag = new Number()
PDFView.GetDocumentProperty([color=#FF0000]ID[/color], "Modified", flag, 0)
alert(flag)
Code: Select all
var DocID = PDFView.Property("Documents.Active", 0);
alert(DocID);
var flag = PDFView.Property("Documents[#"+DocID+"].Modified", 0);
alert(flag);