Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Document.h
1/*
2 * AOI_Document
3 * Copyright (c) 2007 Aurelon BV. All rights reserved.
4 *
5 */
6#pragma once
7
8#include "./AOI_Page.h"
9#include "./AOI_Rectangle.h"
10#include "./AOI_Ellipse.h"
11#include "./AOI_Path.h"
12#include "./AOI_Text.h"
13#include "./AOI_Raster.h"
14#include "./AOI_Multigon.h"
15#include "./AOI_Dimension.h"
16#include "./AOI_PlaceHolder.h"
17
18#include <ACPL/CString.h>
19
20class AOI_Instance;
21
22namespace aur {
23 namespace PDF {
24 class Document;
25 class Instance;
26 }
27 namespace ACPL {
28 class FileSpec;
29 }
30}
31
32typedef const char* SpotColorName;
33
34class AOIAPI AOI_Document
35{
36 friend class AOI_Renderer;
37 friend class AOI_TIFFRenderer;
38 friend class AOI_Object_Text;
39 friend class AOI_Object_Raster;
40 friend class AOI_Style_Color;
41 friend class AOI_SoftProofRenderer;
42 aur::PDF::Instance* mInstance;
43 aur::PDF::Document* mDocument;
44 aur::ACPL::FileSpec* mPDFSpec;
45 SpotColorName* mSpotColorList;
46 aur::ACPL::FileSpec* mImageSpec;
47 bool mUseSimpleRenderer;
48public:
51
52 void Open( const aur::ACPL::FileSpec& path, const char* ownerPassword = NULL, const char* userPassword = NULL );
53 void Open( const char16_t* path );
54 void CloseFile( bool keepVM, bool createDefaults );
55 ExceptionCode ConvertPStoPDF( const aur::ACPL::FileSpec& pathToPS, const aur::ACPL::FileSpec& pathToPDF );
56 ExceptionCode SaveAsPDF( const aur::ACPL::FileSpec& path );
57 uint32_t GetPageCount() const;
58 AOI_Page* GetPage( uint32_t ) const;
59 bool TraverseNext( AOI_Object*& ) const;
60 AOI_ColorSpacePtr GetDocumentColorSpace() const;
61 AOI_ColorSpacePtr GetLabColorSpace() const;
62 AOI_ColorSpacePtr GetDeviceGrayColorSpace() const;
63 AOI_ColorSpacePtr GetDeviceRGBColorSpace() const;
64 AOI_ColorSpacePtr GetDeviceCMYKColorSpace() const;
65 bool BlackAndWhiteDoc() const;
66 bool FontExists( bool onlyUsed ) const;
67 SpotColorName* GetSpotColorList();
68 AOI_Object* HitTest( AOI_Point p, int16_t snapDistance, bool& stroke, AOI_Color* outColor = NULL );
69 void SimpleImage();
70};
71
72class AOIAPI AOI_DocumentInfo
73{
74public:
75 int64_t fileSize;
76 size_t pageCount;
77 float width;
78 float height;
79 AOI_ColorSpaceEnum space;
80 bool encrypted;
81 bool denyPrint;
82 bool denyChange;
83 bool denyCopy;
84 bool denyNotes;
85#if ACPL_WIN
86# pragma warning(disable:4251)
87#endif
88 aur::ACPL::StringList fonts;
89#if ACPL_WIN
90# pragma warning(default:4251)
91#endif
92 aur::ACPL::String fileType;
93 aur::ACPL::String description;
94 aur::ACPL::String artist; // name of the camera owner
95 aur::ACPL::String software; // Exif software version
96 aur::ACPL::String make;
97 aur::ACPL::String model;
98 uint16_t orientation;
99 float xResolution;
100 float yResolution;
101 uint32_t pixelWidth;
102 uint32_t pixelHeight;
103 uint16_t resolutionUnit;
104 aur::ACPL::String dateTime;
105 // EXIF IFD Attribute information
106 float exposureTime;
107 float Fnumber;
108 uint16_t ISOSpeedRating;
109 float exposureBiasValue;
110
111 AOI_DocumentInfo();
112 bool GetInfo( const aur::ACPL::FileSpec& path );
113};
PDF Document.
Instance of the AOI engine.
Text object.
Definition AOI_Text.h:38
Base class for all graphic objects.
Definition AOI_Object.h:13
Page in the document.
Definition AOI_Page.h:11
Coordinate.
Definition AOI_Types.h:137
Renderer / RIP.
Color fill.
Definition AOI_Style.h:56