|
virtual uint32 | getNumPages ()=0 |
| Return the number of pages in the document, if known.
|
|
virtual IPagePtr | getPage (uint32 index=0)=0 |
| Get the IPage from the document at the given index.
|
|
virtual bool | pageExists (uint32 index)=0 |
| Determine if a page with the given index exists in the document.
|
|
virtual void | insertPage (const IPagePtr &page, uint32 index=0, const IDocumentPtr &sourceDocument=IDocumentPtr())=0 |
| Insert a page into the document at the given index. Note that the page will not be cloned, and so any changes to the added page will affect all users of the page. The interactive forms will be updated with any widget annotations present on the page. Note that if the names of any widgets being added clash with existing widgets or fields they will be forcibly renamed. Provide a sourceDocument if possible for improved form merging.
|
|
virtual void | appendPage (const IPagePtr &page, const IDocumentPtr &sourceDocument=IDocumentPtr())=0 |
| Append a page to the document.
|
|
virtual void | removePage (uint32 index)=0 |
| Remove the page at the given index.
|
|
virtual void | removePage (const IPagePtr &page)=0 |
| Remove the given page from the document. If the page is not present, ane exception will result.
|
|
virtual void | findTarget (DOMid targetId, uint32 &pageNum)=0 |
| Find the page contatining the target with the given DOMid in the document, providing the index of the page within the document. Throws an IError if the target could not be found.
|
|
virtual IAnnotationPtr | findAnnotation (const IAnnotationReferencePtr &reference)=0 |
| Find the annotation with the given annotation reference within the document. Throws an IError if the target could not be found.
|
|
virtual IAnnotationPtr | findAnnotation (const IAnnotationReferencePtr &reference, uint32 &pageNum)=0 |
| Find the annotation with the given annotation reference within the document, providing the index of the page that contains the annotation. Throws an IError if the target could not be found.
|
|
virtual IDOMJobTkPtr | getJobTicket () const =0 |
| Get the document job ticket, if present.
|
|
virtual void | setJobTicket (const IDOMJobTkPtr &jobTicket)=0 |
| Set the document job ticket.
|
|
virtual COutputIntentVect | getOutputIntents () const =0 |
| Get the output intents, if present.
|
|
virtual IOptionalContentPtr | getOptionalContent () const =0 |
| Get the optional content if present.
|
|
virtual void | setOptionalContent (const IOptionalContentPtr &optionalContent)=0 |
| Set the optional content for the document, or NULL if if should be removed.
|
|
virtual IStructurePtr | getStructure () const =0 |
| Get the structure information if present.
|
|
virtual void | setStructure (const IStructurePtr &structure)=0 |
| Set the structure content for the document, or NULL if if should be removed.
|
|
virtual IDOMOutlinePtr | getOutline () const =0 |
| Get the document outline, if present.
|
|
virtual void | setOutline (const IDOMOutlinePtr &outline)=0 |
| Set the document outline, if present.
|
|
virtual IFormPtr | getForm () const =0 |
| Get the document interactive form, if present.
|
|
virtual void | setForm (const IFormPtr &form)=0 |
| Set the document interactive form. May be NULL.
|
|
virtual CFileSpecAsEmbeddedDataVect | getEmbeddedStreams ()=0 |
| Get any embedded streams or attachments attached to the document. This is currently a PDF-specific feature.
|
|
virtual void | addEmbeddedStream (const IFileSpecAsEmbeddedDataPtr &embeddedData)=0 |
| Add an embedded file stream to the document. This is currently a PDF-specific feature.
|
|
virtual CNamedDestinationVect | getNamedDestinations ()=0 |
| Get any named destinations present in the document.
|
|
virtual void | addNamedDestination (const INamedDestinationPtr &namedDestination)=0 |
| Add a named destination to the document. Note that this will override any named destination with the same name that may be present.
|
|
virtual void | setNamedDestinations (const CNamedDestinationVect &namedDestinations)=0 |
| Replace the named destinations in the document with the given vector. Note that if there are multiple destinations with the same name, the results are undefined.
|
|
virtual IThreadsPtr | getThreads () const =0 |
| Get the document threads, if present.
|
|
virtual IDocumentPtr | clone ()=0 |
| Clone an IDocument. Will also clone all the pages in the document.
|
|
virtual IPDFObjectPtr | lookupFarReference (const IPDFFarReferencePtr &farReference, IPDFObjectStorePtr &store)=0 |
| Attempt to find and resolve an indirect far reference to a PDF object. If found, the object store that contained it will be provided. If not found at the document level, the documents' pages will be searched. Objects which are controlled by formal Mako APIs may not be reachable, and may be overridden at output.
|
|
virtual IPDFObjectStorePtr | getObjectStore ()=0 |
| Obtain access to the document level object store. Objects which are controlled by formal Mako APIs may not be reachable, and may be overridden at output.
|
|
virtual IPDFObjectPtr | readPdfObject (const IPDFReferencePtr &reference)=0 |
| Raw access to the PDF object data base from an original PDF file. For informational purposes only; the objects returned from this interface must not be edited.
|
|
virtual IPDFDictionaryPtr | readPdfTrailerDictionary ()=0 |
| Raw access to the PDF trailer dictionary. For informational purposes only; the object returned from this interface must not be edited.
|
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
A document from an IDocumentAssembly, allowing for high level document and page mangement, and providing on-demand lazy loading of page markup.