![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IDIGITALPUBLISHINGFACADE } |
| enum | FolioOrientation { kOrientationAuto = 0x0, kOrientationPortrait = 0x1, kOrientationLandscape = 0x2, kOrientationBoth = kOrientationPortrait | kOrientationLandscape, kInvalidFolioOrientation = 0xffffffff } |
| enum | FolioBindingDirection { kLeftEdgeBinding = 0x0, kRightEdgeBinding = 0x1 } |
| enum | ObjectFormat { kXMLObjectFormat, kBinaryObjectFormat, kInvalidObjectFormat = 0xffffffff } |
Public Member Functions | |
| virtual DigitalPublishingMetadata * | CreateMetadata () const =0 |
| virtual ErrorCode | SetMetadataDate (DigitalPublishingMetadata *metadata, DigitalPublishingDateTime const &date) const =0 |
| virtual ErrorCode | SetMetadataUpdateDate (DigitalPublishingMetadata *metadata, DigitalPublishingDateTime const &date) const =0 |
| virtual ErrorCode | SetMetadataFolioNumber (DigitalPublishingMetadata *metadata, WideString const &number) const =0 |
| virtual ErrorCode | SetMetadataMagazineTitle (DigitalPublishingMetadata *metadata, WideString const &title) const =0 |
| virtual ErrorCode | SetMetadataDescription (DigitalPublishingMetadata *metadata, WideString const &desc) const =0 |
| virtual ErrorCode | SetMetadataCategory (DigitalPublishingMetadata *metadata, WideString const &category) const =0 |
| virtual ErrorCode | SetMetadataArticleTitle (DigitalPublishingMetadata *metadata, WideString const &title) const =0 |
| virtual ErrorCode | SetMetadataArticleAuthor (DigitalPublishingMetadata *metadata, WideString const &author) const =0 |
| virtual ErrorCode | SetMetadataArticleKicker (DigitalPublishingMetadata *metadata, WideString const &kicker) const =0 |
| virtual ErrorCode | SetMetadataArticleIsAdvertisement (DigitalPublishingMetadata *metadata, bool16 isAd) const =0 |
| virtual ErrorCode | SetMetadataArticleTags (DigitalPublishingMetadata *metadata, K2Vector< WideString > const &tags) const =0 |
| virtual ErrorCode | AddMetadataKeyValue (DigitalPublishingMetadata *metadata, WideString const &key, WideString const &value) const =0 |
| virtual bool16 | GetMetadataValueForKey (DigitalPublishingMetadata *metadata, WideString const &key, WideString &value) const =0 |
| virtual void | DisposeMetadata (DigitalPublishingMetadata *metadata) const =0 |
| virtual ErrorCode | CreateMiniFolio (IDocument const *portrait, IDocument const *landscape, MiniFolioOptions const &options, DigitalPublishingMetadata const *metadata, IDFile const &folioFile) const =0 |
| virtual DigitalPublishingFolio * | CreateFolio () const =0 |
| virtual ErrorCode | SetFolioMetadata (DigitalPublishingFolio *folio, DigitalPublishingMetadata const *metadata) const =0 |
| virtual ErrorCode | SetFolioOrientation (DigitalPublishingFolio *folio, FolioOrientation orientation=kOrientationBoth) const =0 |
| virtual ErrorCode | SetFolioTargetDimensions (DigitalPublishingFolio *folio, uint32 wideDimension, uint32 narrowDimension) const =0 |
| virtual ErrorCode | SetContentStackIDMap (DigitalPublishingFolio *folio, id_digpub::ObjectPtr const &contentStackIDMap) const =0 |
| virtual ErrorCode | AddDirectoryToFolio (DigitalPublishingFolio *folio, IDFile const &directory) const =0 |
| virtual ErrorCode | SetFolioBindingDirection (DigitalPublishingFolio *folio, FolioBindingDirection direction) const =0 |
| virtual ErrorCode | AddMiniFolioToFolio (DigitalPublishingFolio *folio, IDFile const &miniFolio) const =0 |
| virtual ErrorCode | AddDocumentPairToFolio (DigitalPublishingFolio *folio, IDocument const *portrait, IDocument const *landscape, MiniFolioOptions const &options, DigitalPublishingMetadata const *metadata) const =0 |
| virtual ErrorCode | ExportFolioToPackage (DigitalPublishingFolio *folio, IDFile const &packageFile) const =0 |
| virtual ErrorCode | ExportFolioToDirectory (DigitalPublishingFolio *folio, IDFile const &manifestFile, IDPath const &articleDirectory) const =0 |
| virtual ErrorCode | ExportFolioToDirectoryPackage (DigitalPublishingFolio *folio, IDFile const &packageFile) const =0 |
| virtual void | DisposeFolio (DigitalPublishingFolio *folio) const =0 |
| virtual id_digpub::ObjectPtr | CreateEmptyDictionary () const =0 |
| virtual bool | WriteDigPubObjectToStream (id_digpub::ObjectPtr const &obj, IPMStream *s, ObjectFormat format=kBinaryObjectFormat) const =0 |
| virtual bool | ReadDigPubObjectFromStream (id_digpub::ObjectPtr &obj, IPMStream *s, ObjectFormat format=kInvalidObjectFormat) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Static Public Member Functions | |
| static ErrorCode | SetMetadataArticleHideFromTOC (DigitalPublishingMetadata *metadata, bool16 hideFromTOC) |
| static ErrorCode | SetMetadataArticleIntent (DigitalPublishingMetadata *metadata, WideString const &intent) |
| static ErrorCode | SetMetadataArticleSection (DigitalPublishingMetadata *metadata, WideString const §ion) |
| static ErrorCode | SetMetadataArticleIsTrustedContent (DigitalPublishingMetadata *metadata, bool16 isTrustedContent) |
FolioBindingDirection – Right-Edge Binding
FolioOrientations
ObjectFormats
| pure virtual |
Adds a directory to a folio to be packaged along with the mini-folios.
| folio | The folio being created |
| directory | The location of the directory to add |
| pure virtual |
Adds a pair of document, assumed to represent a single article in its two orientations, to a folio.
| folio | The folio being created |
| portrait | The document representing the folio's portrait orientation |
| landscape | The document representing the folio's landscape orientation |
| options | The options to use while creating the folio file |
| metadata | The metadata to associate with the article |
| pure virtual |
Sets an arbitrary metadata item. All values must be encoded as strings.
All attributes set through this API are considered optional and are ignored by the viewer application.
| metadata | The target metadata |
| key | The key for the metadata item |
| value | The key's value |
| pure virtual |
Adds a mini-folio to a folio.
| folio | The folio being created |
| miniFolio | The location of the mini folio to add |
| pure virtual |
Factory method for creating an instance of an empty dictionary.
| pure virtual |
Creates a new folio instance. The returned instance is owned by the caller and must be deleted by a call to DisposeFolio
| pure virtual |
Creates an instance of a metadata object
| pure virtual |
Creates a 'mini' folio for a pair of InDesign documents, using the specified options
| portrait | The document representing the folio's portrait orientation |
| landscape | The document representing the folio's landscape orientation |
| options | The options to use while creating the folio file |
| folioFile | The location in which to create the folio file |
| return | an ErrorCode describing the status of the call |
| pure virtual |
Disposes an instance of a DigitalPublishingFolio created by a call to CreateFolio
| folio | The folio to dispose |
| pure virtual |
Disposes of a metadata instance.
| metadata | The metadata to be disposed of |
| pure virtual |
Exports a flattened folio to a manifest file and a series of mini-folios.
| folio | The folio to export |
| manifestFile | The location for the package being exported |
| articleDirectory | The location, relative to manifestFile's parent directory, in which the mini-folios are saved |
| pure virtual |
Exports a folio to a manifest file and a directory structure (i.e. June folio format) package.
| folio | The folio to export |
| packageFile | The location for the package being exported |
| pure virtual |
Exports a folio to a single package.
| folio | The folio to export |
| packageFile | The location for the package being exported |
| pure virtual |
Gets an arbitrary metadata item. All returned values are encoded as strings.
| metadata | The target metadata |
| key | The key to retreive |
| value | Out parameter: will contain the value for the key if successful |
| pure virtual |
Reads an object to a stream, assumed to be opened for reading, using the specified format as a hint. If you know the format used to write the stream originally, you may specify it. If not, use the default value to cause this routine to examine the bytes in the stream to determine what format was used.
| obj | The root object to write |
| s | The stream to write to |
| format | The format to use |
| pure virtual |
Sets the content stack ID map for a folio
| folio | The folio to which the content stack ID map should be set |
| contentStackIDMap | An ObjectPtr created from CreateEmptyDictionary() filled with key/value pairs mapping document names to content stack IDs. This is used when fixing up navTo hyperlinks. |
| pure virtual |
FMR Right Edge Binding Sets the binding direction for a folio
| folio | The folio to which the binding direciton should be set |
| direction | The binding direction to set for the folio |
| pure virtual |
Sets the metadata for a folio
| folio | The folio to which the metadata should be added |
| metadata | The metadata to add to the folio |
| pure virtual |
Sets the orientation for a folio
| folio | The folio to which the orientation should be set |
| orientation | The orientation to set for the folio (defaults to kOrientationBoth) |
| pure virtual |
Sets the target dimensions for a folio. May be called more than once for multiple target sizes, although all mini-folios must support all requested output dimensions.
| folio | The folio to which the target dimensions should be set |
| wideDimension | The wide dimension to set for the folio (larger of the numbers) |
| narrowDimension | The narrow dimension to set for the folio (smaller of the numbers) |
| pure virtual |
Sets the author for an article
This attribute is required. It is used by the viewer in the scrubber and browser views.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| author | The article's author |
| inlinestatic |
Sets whether an article should be hidden from the Table of Contents (TOC)
This attribute is optional. It is used by the viewer to determine whether an article should be shown in the table of contents or not. The default is false. If the attribute is not provided, but the IsAdvertisement attribute is provided and is true, the article will not be shown in the TOC.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| hideFromTOC | Boolean value indicating whether article should be hidden from the TOC |
| inlinestatic |
Set the intent for the article.
This attribute is optional. It is used by the viewer to navigate to a specific article.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| intent | WideString string designating the article's intent |
| pure virtual |
Sets whether an article is an advertisement
This attribute is optional. It is used by the viewer to determine if the article is an advertisement. The default is false.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| isAd | Boolean value indicating whether article is an advertisement |
| inlinestatic |
Sets whether or not article content is trusted.
This attribute is optional. It is used to allow access to V1 Library JSAPI. This attribute is relevant only for HTML stack type.
| metadata | The target metadata |
| isTrustedContent | Boolean value indicating whether an HTML article content should be trusted. |
| pure virtual |
Sets the "kicker" for an article. This is a short descriptive phrase or callout.
This attribute is optional. If included, it is used by the viewer in the scrubber, browser, and table of contents views.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| kicker | The article's kicker |
| inlinestatic |
Set the section for the article.
This attribute is optional. It is used to define the section the article belongs to.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| section | WideString string designating the article's section |
| pure virtual |
Sets the tags for an article. These are short textual items that can be used to informally classify an article.
This attribute is optional. If included, it is used by the viewer in the scrubber and browser views.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| title | The article's title |
| pure virtual |
Sets the title for an article
This attribute is required. It is used by the viewer in the scrubber, browser, and table of contents views.
Note: This attribute is ignored if applied to a folio.
| metadata | The target metadata |
| title | The article's title |
| pure virtual |
Sets the category for a folio
This attribute is optional. It is not currently used by the viewer.
Note: This attribute is ignored if applied to an article.
| metadata | The target metadata |
| category | The folio's category |
| pure virtual |
Sets the date when the folio was originally created
This attribute is required. It is not currently used by the viewer.
Note: This attribute is ignored if applied to an article.
| metadata | The target metadata |
| date | The date the folio was created |
| pure virtual |
Sets the description for a folio or an article
This attribute is optional. When applied to an article, it is currently used by the viewer in the browser view. It is not currently used when applied to a folio.
| metadata | The target metadata |
| desc | The folio's description |
| pure virtual |
Sets the folio's number. This, along with the folio's magazine title, should uniquely identify this folio.
This attribute is required. It is displayed by the viewer in the header section.
Note: This attribute is ignored if applied to an article.
| metadata | The target metadata |
| number | The folio number for the folio, as a string |
| pure virtual |
Sets the folio's magazine title
This attribute is required. It is displayed by the viewer in the header section.
Note: This attribute is ignored if applied to an article.
| metadata | The target metadata |
| title | The title of the folio's magazine |
| pure virtual |
Sets the date when the folio was last updated
This attribute is optional. It is not currently used by the viewer.
Note: This attribute is ignored if applied to an article.
| metadata | The target metadata |
| date | The date the folio was last updated |
| pure virtual |
Writes an object to a stream, assumed to be opened for writing, using the specified format.
| obj | The root object to write |
| s | The stream to write to |
| format | The format to use |