Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

password protected pdf file open (1 reply)

$
0
0
File is string

//Picker to choose the document to open
sFile = fSelect(fExeDir(),"","Open","PDF file (*.PDF)"+ TAB + "*.pdf","*.pdf",fPathUNICODE)


///////// Managing the list of the last 5 documents opened /////////
//Checks whether the document is already found in the list
nSubscript is int = ListSeek(COMBO_LastDocs,sFile,True)
IF nSubscript = -1 THEN

//It is not there
//If 5 documents are already found in the list of last 5 opened documents, delete the last one
IF COMBO_LastDocs..Occurrence = 5 THEN
ListDelete(COMBO_LastDocs,5)
END

ELSE

//It is already there
//Delete it from its former position and place it in 1st position
ListDelete(COMBO_LastDocs,nSubscript)

END

//Add the document that was opened in 1st position in the list
ListInsert(COMBO_LastDocs,sFile,1)
//Select it
ListSelectPlus(COMBO_LastDocs,1)
//And display this document
ExecuteProcess(COMBO_LastDocs,trtSelection)



try this code but
not open this pdf file password " 123"

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>