source: trunk/poppler/mypoppler/poppler/PDFDocFactory.h @ 461

Last change on this file since 461 was 461, checked in by Silvan Scherrer, 11 years ago

poppler update to 0.14.2

File size: 1.6 KB
Line 
1//========================================================================
2//
3// PDFDocFactory.h
4//
5// This file is licensed under the GPLv2 or later
6//
7// Copyright 2010 Hib Eris <hib@hiberis.nl>
8// Copyright 2010 Albert Astals Cid <aacid@kde.org>
9//
10//========================================================================
11
12#ifndef PDFDOCFACTORY_H
13#define PDFDOCFACTORY_H
14
15#include "PDFDoc.h"
16
17class GooList;
18class GooString;
19class PDFDocBuilder;
20
21//------------------------------------------------------------------------
22// PDFDocFactory
23//
24// PDFDocFactory allows the construction of PDFDocs from different URIs.
25//
26// By default, it supports local files, 'file://' and 'fd:0' (stdin). When
27// compiled with libcurl, it also supports 'http://' and 'https://'.
28//
29// You can extend the supported URIs by giving a list of PDFDocBuilders to
30// the constructor, or by registering a new PDFDocBuilder afterwards.
31//------------------------------------------------------------------------
32
33class PDFDocFactory {
34
35public:
36
37  PDFDocFactory(GooList *pdfDocBuilders = NULL);
38  ~PDFDocFactory();
39
40  // Create a PDFDoc. Returns a PDFDoc. You should check this PDFDoc
41  // with PDFDoc::isOk() for failures.
42  // The caller is responsible for deleting ownerPassword, userPassWord and guiData.
43  PDFDoc *createPDFDoc(const GooString &uri, GooString *ownerPassword = NULL,
44      GooString *userPassword = NULL, void *guiDataA = NULL);
45
46  // Extend supported URIs with the ones from the PDFDocBuilder.
47  void registerPDFDocBuilder(PDFDocBuilder *pdfDocBuilder);
48
49private:
50
51  GooList *builders;
52
53};
54
55#endif /* PDFDOCFACTORY_H */
Note: See TracBrowser for help on using the repository browser.