Hi! I've been trying to apply a digital signature to a dwfx file, but I always get an I/O error.
I've done it before with the same file but without the layers description on. But I need to add layers to the dwfx file....
Can anyone pls help me solve this error?
Thank you for your questions.
Firstly, please let me know:
1) Where is your dwfx file come from? Are you create the dwfx by yourself or published from other products?
2) How do you add the layers?
3) Do you apply the digital signature to the dwfx file within Autodesk Design Review (ADR)?
4) Could you please attach one of your case dwfx file to this thread?
These can help us to research the digital signature issue.
Our ADR has an issue (I/O error) of digital signature when apply the digital signature to a big dwfx file, so if the dwfx is too big, it is better to reduce the file size.
ADR/DWF Customer Support
We have been experiencing that problem, too.
We managed to replicate the problem since Design Review 2010 up to 2012 (both Windows Xp Pro 64-bit and Windows 7 Pro 64 -bit).
We are able to digitally sign over XP Pro 32-bit. As for the other platforms the software versions are adequate (64-bit) and are able to access the card data (Citizens card with qualified signatures). When we use the aforementioned software (Autodesk Design Review) we have that I/O error with no further messages to try to solve.
I noticed that you do not reply for a long time. Did you manage (or anyone) to overcome this issue ?
Thank you for your reply.
Please check your user name, if it contain the character ‘.’, then remove it and try to add the digital signature again.
I have a couple of questions regarding this:
1- Has this digital signature problem that you mention with ADR been resolved?
2- Is there a way to sign a dwfx with DWF Toolkit 7.7? if so any samples?
Yes, the ADR has solved the digital issue. The DWF Toolkit does not have API to add the Digital Signature, you will need to add Digital Signature by ADR.
Thank you for your quick reply, I really appreciate it.
I have one more question:
My goal is to sign the dwfx programatically. Would the following code using Microsoft packaging APIs be compatible / equivalent to what ADR does to sign the document? If not, are there any samples of doing so? or can you point me in the right direction?
XpsDocument document = new XpsDocument("C:\\A001.dwfx", FileAccess.ReadWrite);
X509Certificate certificate = GetCertificate();
document.SignDigitally(certificate, true, XpsDigSigPartAlteringRestrictions.None);
Yes, it is compatible to ADR. And after signing the dwfx, you can open the dwfx file in ADR to check the digital signature.
Sorry to keep asking, but ADR does not seems to be compatible with that type of signature. I have implemented the code above and when I open the document in ADR it does not show as signed and the "View Signature Details" menu is disabled. However, if I open the document in Micorsoft XPSViewer it recognizes the signature and says it is valid.
Also if I sign the document with XPSViewer, ADR fails to recognize the signature. Or if I sign with ADR, XPSViewer fails to recognize the signature.
Is there something I am missing?