DWFToolkit::DWF6PackagePublisher Class Reference
[DWF Publisher API]

#include "dwf/publisher/impl/DWF6PackagePublisher.h"

Collaboration diagram for DWFToolkit::DWF6PackagePublisher:

Collaboration graph
[legend]
List of all members.

Detailed Description

A publisher implementation for producing DWF package files.

Since:
7.4.0
This is a reference implementation of the DWFPublisher base class for creating DWF packages.

Due to the composite nature of the the visitors, even this class can be used to extract additional data to other output pipes during the creation of the DWF package.

Todo:
Implement a full version for composite DWF packages.
Examples:

3DPublish/3DPublish_UTF8.cpp.

Definition at line 74 of file DWF6PackagePublisher.h.

Public Member Functions

_DWFTK_API DWF6PackagePublisher (const DWFFile &rDWFFile, const DWFString &zPassword="", const DWFString &zSourceProductVendor="", const DWFString &zSourceProductName="", const DWFString &zSourceProductVersion="", const DWFString &zPublisherProductVendor="", const DWFString &zPublisherProductVersion="", bool bNoPasswordSalting=true) throw ( DWFException )
virtual _DWFTK_API ~DWF6PackagePublisher () throw ()
_DWFTK_API void enablePasswordSalting (bool bEnable) throw ()
_DWFTK_API void addSignatureRequest (DWFSignatureRequest *pSignatureRequest) throw ( DWFException )

Protected Member Functions

virtual DWFPackageWritergetPackageWriter () throw ( DWFException )
virtual DWFGraphicResourcegetGraphicResource () throw ( DWFException )


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWF6PackagePublisher::DWF6PackagePublisher const DWFFile rDWFFile,
const DWFString zPassword = "",
const DWFString zSourceProductVendor = "",
const DWFString zSourceProductName = "",
const DWFString zSourceProductVersion = "",
const DWFString zPublisherProductVendor = "",
const DWFString zPublisherProductVersion = "",
bool  bNoPasswordSalting = true
throw ( DWFException )
 

Constructor

This documentation has been copied from DWFPackageWriter::write():

This method exposes the standard DWF package properties directly. It is highly recommended that at DWF publishers set these correctly with as much detail as possible.

Setting standard DWF package properties:

                Autodesk DWF Writer is a printer driver DLL that is used to generate DWF packages
                through the Windows printing system, it is a component that another application
                would use (indirectly) to publish the DWF.  The following is an example of how
                it might populate these properties when printing from Microsoft Word:
       
                zSourceProductVendor    = L"Microsoft Corporation"          <--- from Word 2003
                zSourceProductName      = L"Microsoft Office 2003"          <--- from Word 2003
                zSourceProductVersion   = L"11.0.5604"                      <--- from Word 2003
                zDWFProductVendor       = L"Autodesk, Inc."                 <--- from DWF Writer 2
                zDWFProductVersion      = L"2.0.4.0"                        <--- from DWF Writer 2

Parameters:
rDWFFile The destination DWF package file name.
zPassword An optional password to protect the DWF package.
zSourceProductVendor A standard property detailing the vendor of the software that the produced the original content and used the DWF product in order to produce the DWF package.
zSourceProductName A standard property detailing the name of the software that the produced the original content and used the DWF product in order to produce the DWF package.
zSourceProductVersion A standard property detailing the version of the software that the produced the original content and used the DWF product in order to produce the DWF package.
zPublisherProductVendor A standard property that details the vendor of the software component that was used by the source product to publish the DWF package.
zPublisherProductVersion A standard property that details the version of the software component that was used by the source product to publish the DWF package.
bNoPasswordSalting If password salting is enabled it prevents the usage of zip password recovery tools to determine the password from the DWF package.
Exceptions:
DWFException 

virtual _DWFTK_API DWFToolkit::DWF6PackagePublisher::~DWF6PackagePublisher  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

_DWFTK_API void DWFToolkit::DWF6PackagePublisher::addSignatureRequest DWFSignatureRequest pSignatureRequest  )  throw ( DWFException )
 

Adds a request that a signature be generated when the DWF package is created. This pointer will be deleted with the DWFCORE_FREE_OBJECT macro.

Parameters:
pSignatureRequest A class describing the signature that is being requested.
Exceptions:
DWFException 

_DWFTK_API void DWFToolkit::DWF6PackagePublisher::enablePasswordSalting bool  bEnable  )  throw ()
 

The will salt any provided password to prevent usage of zip password recovery tools. Note: this will make the DWF package non-PKZIP compliant.

Parameters:
bEnable Set this to true to enable salting.
Exceptions:
None 


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:40:44 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5