• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    DWF

    Reply
    Contributor
    lmpmbernardo
    Posts: 13
    Registered: ‎01-18-2011

    DWFxConverter

    1054 Views, 9 Replies
    01-18-2011 03:57 AM

    Hello,

     

    It is mentioned in http://dwf.blogs.com/beyond_the_paper/2009/03/dwf-to-dwfx-batch-converter.html that the DWFxConverter is a DWF Toolkit sample application. Is this information correct? I have been unable to see which of the samples that comes with the 7.6 toolkit is the relevant one.

     

    Thanks,

    Luis

    Please use plain text.
    Employee
    Posts: 136
    Registered: ‎06-07-2009

    Re: DWFxConverter

    01-18-2011 11:03 PM in reply to: lmpmbernardo

    Thank you for your questions.

     

    No, DWFxConverter is not the Autodesk 7.6 Toolkit samples.

     

    I can’t access the link: http://dwf.blogs.com/beyond_the_paper/2009/03/dwf-to-dwfx-batch-converter.html. So please check it and attach the correct link to this thread.

     

    Please let me know if you have any further questions.



    Silvia Cao
    SW Engineer
    PSEB-GE- ACRD PSEB
    Autodesk, Inc.
    Please use plain text.
    Contributor
    lmpmbernardo
    Posts: 13
    Registered: ‎01-18-2011

    Re: DWFxConverter

    01-19-2011 09:59 AM in reply to: SilviaCao

    The link is correct. either it was down or your company blocks it...

     

    So, was the DWFxConverter a sample of a previous toolkit release then?

     

    Regards,

    Luis

    Please use plain text.
    Employee
    Posts: 136
    Registered: ‎06-07-2009

    Re: DWFxConverter

    01-19-2011 05:59 PM in reply to: lmpmbernardo

    No, I haven’t seen the DWFxConverter in any previous toolkit samples.

     

    Please attach the DWFxConverter to this thread if you have any questions about the sample.



    Silvia Cao
    SW Engineer
    PSEB-GE- ACRD PSEB
    Autodesk, Inc.
    Please use plain text.
    Employee
    Posts: 7
    Registered: ‎09-05-2007

    Re: DWFxConverter

    01-21-2011 01:17 PM in reply to: lmpmbernardo

    Looks like there is no explicit sample of that name in any of the published toolkits, however the "Aggregate" sample comes pretty close. Except it outputs dwf files instead of dwfx, and it actually aggregates dwf files' contents.

     

    But if you change the DWF6PackageWriter to DWFXPackageWriter, you'll get the right output. In fact, you don't really want to aggregate either, so basically all you have to do is read in one file (DWF) and output the other (DWFx).

     

    Hope this helps,

    Gyuri Ordody
    Principal Engineer
    Autodesk Labs

    Cheers,
    Gyuri Ordody
    Autodesk Labs
    Please use plain text.
    Contributor
    lmpmbernardo
    Posts: 13
    Registered: ‎01-18-2011

    Re: DWFxConverter

    01-22-2011 04:25 PM in reply to: ordodyg

    Thank you for the suggestion but that does not work well. In fact I had already tried that. The output seems to be a correct and you can open the file in ADR and it looks ok. However if you look inside things are not well, i.e., they are different from what you get converting using the DWFxConverter (that you can get from the link I provided before) and ADR and I think they may be wrong. For instance, the file FixedDocumentSequence.fdseq is not part of the resulting file (isn't this a requirement?). Also, there are files with the extensions .w2d and .ef_  inside the package. Is it ok to have these extensions? I looked at the output of ADR and DWFxConverter and I never see those extensions inside the package (instead I see stuff like .odttf).

     

    But it could be that I am wrong and the resulting file is a valid DWFx file.... Can you comment on this?

     

    Thanks,

    Luis

     

    Please use plain text.
    Employee
    Posts: 7
    Registered: ‎09-05-2007

    Re: DWFxConverter

    02-04-2011 04:38 PM in reply to: lmpmbernardo

    You're right, it's kind of surprising that it can be opened at all. :smileyhappy:

     

    The whole process should be opening and reading the DWF, creating a DWFx (using DWFXPackageWriter if I'm not mistaken) enumerating the components, and adding them to the DWFx unless they are w2d which should be converted to w2x and an extra resource using a w2d reader and a w2x writer (use the class factories from the samples).

     

    Not sure if it's applicable, but ADR can be scripted, so for the offical convversion you might want to use that in a batch mode. (There is a batch printing sample in the blog, even with the source.)

     

    Gyuri

    Cheers,
    Gyuri Ordody
    Autodesk Labs
    Please use plain text.
    Contributor
    lmpmbernardo
    Posts: 13
    Registered: ‎01-18-2011

    Re: DWFxConverter

    02-07-2011 04:30 AM in reply to: ordodyg

    Thank you. That confirms that what I have been trying to do goes in the right direction, albeit I have been unsuccesful so far.

     

    The ADR scripting is not applicable because I want to do the conversion on a Mac OS...

     

    Luis

    Please use plain text.
    Contributor
    Posts: 15
    Registered: ‎03-05-2008

    Re: DWFxConverter

    05-23-2011 03:41 AM in reply to: ordodyg

    Gyuri,

     

    Pardon my ignorance. I was really glad when I read that ADR can be scripted. But what kind of scripting can ADR do? Is it based on the API or some other script language (Vbscript?? ). Thank you for any response.

     

     

    Please use plain text.
    Employee
    Posts: 7
    Registered: ‎09-05-2007

    Re: DWFxConverter

    05-23-2011 09:24 AM in reply to: sitereader
    Please use plain text.