CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishDocument.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
26//
27// PdfPublishDocument.h
28//
30
31#ifndef _PDF_PUBLISH_DOCUMENT_INCLUDED_
32#define _PDF_PUBLISH_DOCUMENT_INCLUDED_
33
35#include "PdfPublishPage.h"
36#include "PdfPublishBookmark.h"
38
40#include "Pdf/PdfVersion.h"
41
46namespace OdPdfPublish{
47
54class PDFPUBLISH_TOOLKIT OdDocument : public OdObject
55{
56 //DOM-IGNORE-BEGIN
57protected:
59 //DOM-IGNORE-END
60public:
61 //DOM-IGNORE-BEGIN
64 //DOM-IGNORE-END
65
69 virtual ~OdDocument();
70
78
86 void setInformation(const OdString& title, const OdString& author, const OdString& subject, const OdString& creator);
87
98 void addJavaScript(const OdString& name, const OdString& source, const Source::Type source_type = Source::kCode);
99
108 void addIconImage(const OdString& name, const OdImagePtr& image);
109
117 void addPage(const OdPagePtr& page);
118
126 void addAttachment(const OdAttachedFilePtr& file);
127
133 void setCollection(const OdCollectionPtr& collection);
134
159 void setUserPassword(const OdString& user_password);
160
185 void setOwnerPassword(const OdString& owner_password);
186
192
200 void appendRootBookmark(const OdBookmarkPtr bookmark);
201
211 void setRootBookmarks(const OdBookmarkPtrArray& bookmarks);
212
220
230 void getInformation(OdString& title, OdString& author, OdString& subject, OdString& creator) const;
231
240 void getJavaScripts(OdStringArray& names, OdStringArray& sources, OdSourceTypeArray& source_types) const;
241
252 void getIconImages(OdStringArray& names, OdImagePtrArray& images) const;
253
263 void getPages(OdPagePtrArray& pages) const;
264
271 void getAttachments(OdAttachedFilePtrArray& files) const;
272
279 void getCollection(OdCollectionPtr& collection) const;
280
306 void getUserPassword(OdString& user_password) const;
307
333 void getOwnerPassword(OdString& owner_password) const;
334
340
349 void getRootBookmarks(OdBookmarkPtrArray& bookmarks) const;
350
356
362};
363
368
369}
370#endif // _PDF_PUBLISH_DOCUMENT_INCLUDED_
371
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define PDFPUBLISH_TOOLKIT
OdArray< OdString > OdStringArray
Definition StringArray.h:32
void getIconImages(OdStringArray &names, OdImagePtrArray &images) const
void getVersion(OdPDF::PDFFormatVersions &version) const
ODRX_DECLARE_MEMBERS(OdDocument)
void setUserPassword(const OdString &user_password)
void setAccessPermissionFlags(const AccessPermissions::AccessPermissionsFlags flags)
void addJavaScript(const OdString &name, const OdString &source, const Source::Type source_type=Source::kCode)
void getUserPassword(OdString &user_password) const
void getRootBookmarks(OdBookmarkPtrArray &bookmarks) const
void setHostServices(OdDbBaseHostAppServices *pHostApp)
void addPage(const OdPagePtr &page)
void getAttachments(OdAttachedFilePtrArray &files) const
void getInformation(OdString &title, OdString &author, OdString &subject, OdString &creator) const
void setCollection(const OdCollectionPtr &collection)
void getJavaScripts(OdStringArray &names, OdStringArray &sources, OdSourceTypeArray &source_types) const
void appendRootBookmark(const OdBookmarkPtr bookmark)
void getPages(OdPagePtrArray &pages) const
void setVersion(const OdPDF::PDFFormatVersions version)
void setInformation(const OdString &title, const OdString &author, const OdString &subject, const OdString &creator)
AccessPermissions::AccessPermissionsFlags getAccessPermissionFlags() const
void setRootBookmarks(const OdBookmarkPtrArray &bookmarks)
void addAttachment(const OdAttachedFilePtr &file)
void getOwnerPassword(OdString &owner_password) const
void addIconImage(const OdString &name, const OdImagePtr &image)
void getCollection(OdCollectionPtr &collection) const
OdDbBaseHostAppServices * appServices() const
void setOwnerPassword(const OdString &owner_password)
GLuint const GLchar * name
Definition gles2_ext.h:265
GLsizei GLsizei GLchar * source
Definition gles2_ext.h:282
PDFFormatVersions
Definition PdfVersion.h:44
OdArray< Source::Type > OdSourceTypeArray