Hi,
I need to open PDFs in a real ReadOnly mode.
Means, one or more users open a certain PDF "read only" while another user can open the same PDF "read/write" and do modifications.
Also rename or remove of the document should be possible if it is opened in "read only" mode.
I found no way to do that (V 2.5.191). Setting the documents ReadOnly propertry does not the trick.
Thanks in advance,
Tino
Real ReadOnly Mode
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 7362
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Real ReadOnly Mode
Hi mash_inc,
you cannot set the readonly state as different for different users. It is either one state or the other I'm afraid.
hth
you cannot set the readonly state as different for different users. It is either one state or the other I'm afraid.
hth
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Real ReadOnly Mode
Hello Tino,
You may also try to use "General.DenyAllModifyOperations" property.
HTH.
You may also try to use "General.DenyAllModifyOperations" property.
HTH.
-
- User
- Posts: 37
- Joined: Tue Jan 25, 2011 3:11 pm
Re: Real ReadOnly Mode
Thanks for the answers,
but I think you get me wrong. Let me describe it more detail.
My problem is, that a PDF is kept "in use" as long as it is viewed with PDFXChange.
Means, it cannot be deleted, modified or renamed as long as someone is viewing it.
In our environment we have big eDocumentations that contain hundreds of PDFs.
95% of the users only have the right to view these documents.
Some users are privileged to do modifications (redlines) or to update (replace) these documents.
But unfortunately this cannot work as long as the documents are held "InUse".
To reproduce this problem, open a PDF with one PDFXChange viewer and try to rename or delete it or to add modifications from another PDFXChange viewer.
We found a workaround for that, nevertheless we would be happy to have a parameter for the OpenDocument() method like OpenDocument(bool readOnly) or something like that.:
Kind regards,
Tino
but I think you get me wrong. Let me describe it more detail.
My problem is, that a PDF is kept "in use" as long as it is viewed with PDFXChange.
Means, it cannot be deleted, modified or renamed as long as someone is viewing it.
In our environment we have big eDocumentations that contain hundreds of PDFs.
95% of the users only have the right to view these documents.
Some users are privileged to do modifications (redlines) or to update (replace) these documents.
But unfortunately this cannot work as long as the documents are held "InUse".
To reproduce this problem, open a PDF with one PDFXChange viewer and try to rename or delete it or to add modifications from another PDFXChange viewer.
We found a workaround for that, nevertheless we would be happy to have a parameter for the OpenDocument() method like OpenDocument(bool readOnly) or something like that.:
Code: Select all
if (openMode == Global.OpenMode.Read) {
// read file as stream
object vDataIn = "";
object[] vArr = new object[2];
using (FileStream readStream = new FileStream(PathToDocument, FileMode.Open, FileAccess.Read)) {
IStreamWrapper istr = new IStreamWrapper(readStream);
object varg1 = istr;
object varg2 = null; // password;
vArr[0] = varg1;
vArr[1] = varg2;
vDataIn = vArr;
object OutPar;
_RLC.DoVerb(null, "OpenDocument", vDataIn, out OutPar, 0);
readStream.Close();
}
}
Tino
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Real ReadOnly Mode
I'm glad, that you have found workaround. In current version there is no way to open PDF doc without locking it. However we will reconsider such functionality in next version.
-
- User
- Posts: 37
- Joined: Tue Jan 25, 2011 3:11 pm
Re: Real ReadOnly Mode
Would be great!
Thanks
Thanks
-
- Site Admin
- Posts: 7362
- Joined: Wed Mar 25, 2009 10:37 pm