Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WT_Result::Not_A_DWF_File_Error on DWFMIME::kzMIMEType_W2D_S DWF mime type

3 REPLIES 3
Reply
Message 1 of 4
slavicam
710 Views, 3 Replies

WT_Result::Not_A_DWF_File_Error on DWFMIME::kzMIMEType_W2D_S DWF mime type

I’d appreciate if somone can suggest what we should use for parsing one of DWF files,
that we get error WT_Result::Not_A_DWF_File_Error on?

Currently we use DWF Toolkit 7.6, VS 2008, DWFPackageReader , DWFInputStream, and WT_File for parsing.
The particular file we have the issue with is type eDWFPackage, and mime type is “application/x-w2d-s” (DWFMIME::kzMIMEType_W2D_S), and when parsing this file ePlot section, for the first object, get_opcode returns WT_Result::Not_A_DWF_File_Error;
( from DWFToolkit.
..
if (strcmp("(DWF V", (char *)m_token) &&
strcmp("(W2D V", (char *)m_token))
return WT_Result::Not_A_DWF_File_Error;

)
Thank you,
Gloria
3 REPLIES 3
Message 2 of 4
SilviaCao
in reply to: slavicam

Thank you for your questions.
The kzMIMEType_W2D_S indicates you are reading a protected DWF file. This kind of files cannot parse through DWF Toolkit whereas which can be viewed with Autodesk Design Review.
You can get more information about the protected DWF file in the DWF Security Blog.
Please let me know if you have any further questions.
Silvia

ADR/DWF Customer Support



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 3 of 4
slavicam
in reply to: slavicam

Thank you for the answer.
For DWFPackageReader::eDWFPackageEncrypted we set a password.
Is there any way to provide a password in this case ( the markups are disabled in this case), or somhow tell DWF Toolkit to skip disabled entities-objects?
Message 4 of 4
whtank
in reply to: slavicam

DWF Toolkit does not support setting password for the disabled DWF. You can skip those objects by checking MIME type ended with '-s'.

 

Please let me know if this can be of help.

 

-Tank

DWF/ADR Product Support



Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services