node-poppler 5.1.4 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +13 -13
- package/src/index.js +20 -8
- package/API.md +0 -465
- package/CHANGELOG.md +0 -976
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Annot.h +0 -1783
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/AnnotStampImageHelper.h +0 -68
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Array.h +0 -92
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/BBoxOutputDev.h +0 -54
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CMap.h +0 -128
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CachedFile.h +0 -149
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoFontEngine.h +0 -122
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoOutputDev.h +0 -468
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoRescaleBox.h +0 -60
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Catalog.h +0 -318
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CertificateInfo.h +0 -129
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharCodeToUnicode.h +0 -143
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharTypes.h +0 -24
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlCachedFile.h +0 -37
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlPDFDocBuilder.h +0 -32
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/DateInfo.h +0 -44
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Decrypt.h +0 -147
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Dict.h +0 -126
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Error.h +0 -59
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ErrorCodes.h +0 -54
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FDPDFDocBuilder.h +0 -36
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FILECacheLoader.h +0 -34
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FileSpec.h +0 -85
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontEncodingTables.h +0 -20
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontInfo.h +0 -109
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Form.h +0 -734
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Function.h +0 -251
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Gfx.h +0 -373
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxFont.h +0 -466
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState.h +0 -1759
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState_helpers.h +0 -90
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GlobalParams.h +0 -221
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Hints.h +0 -91
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JArithmeticDecoder.h +0 -131
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JBIG2Stream.h +0 -130
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JPEG2000Stream.h +0 -54
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JSInfo.h +0 -65
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Lexer.h +0 -113
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Linearization.h +0 -43
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Link.h +0 -566
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/LocalPDFDocBuilder.h +0 -32
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/MarkedContentOutputDev.h +0 -132
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Movie.h +0 -123
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToCharCode.h +0 -52
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToUnicodeTable.h +0 -4300
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Object.h +0 -678
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OptionalContent.h +0 -117
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Outline.h +0 -122
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OutputDev.h +0 -379
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDoc.h +0 -419
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocBuilder.h +0 -47
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocEncoding.h +0 -43
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocFactory.h +0 -58
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSOutputDev.h +0 -549
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSTokenizer.h +0 -47
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Page.h +0 -273
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PageTransition.h +0 -105
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Parser.h +0 -76
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PopplerCache.h +0 -65
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PreScanOutputDev.h +0 -148
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ProfileData.h +0 -35
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Rendition.h +0 -164
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SecurityHandler.h +0 -131
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Sound.h +0 -82
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SplashOutputDev.h +0 -413
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream-CCITT.h +0 -334
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream.h +0 -1504
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructElement.h +0 -406
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructTreeRoot.h +0 -89
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/TextOutputDev.h +0 -918
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UTF.h +0 -112
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCClassTables.h +0 -983
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCompTables.h +0 -328
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeDecompTables.h +0 -7181
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMap.h +0 -128
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapFuncs.h +0 -35
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapTables.h +0 -84
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeTypeTable.h +0 -49
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ViewerPreferences.h +0 -87
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/XRef.h +0 -325
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-destination.h +0 -69
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-document.h +0 -135
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-embedded-file.h +0 -55
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font-private.h +0 -68
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font.h +0 -95
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-global.h +0 -132
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-image.h +0 -74
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-renderer.h +0 -77
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-transition.h +0 -85
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page.h +0 -225
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-rectangle.h +0 -66
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-toc.h +0 -72
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-version.h +0 -39
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler_cpp_export.h +0 -42
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiBase.h +0 -66
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiEncodings.h +0 -43
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiIdentifier.h +0 -52
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiTrueType.h +0 -190
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1.h +0 -70
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1C.h +0 -263
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-action.h +0 -454
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-annot.h +0 -333
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-attachment.h +0 -123
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-date.h +0 -32
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-document.h +0 -541
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-enums.h +0 -191
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-features.h +0 -88
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-form-field.h +0 -254
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-layer.h +0 -50
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-macros.h +0 -42
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-media.h +0 -80
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-movie.h +0 -81
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-page.h +0 -424
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-structure-element.h +0 -425
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler.h +0 -259
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooCheckedOps.h +0 -116
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooLikely.h +0 -22
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooString.h +0 -262
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooTimer.h +0 -59
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/ImgWriter.h +0 -39
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/JpegWriter.h +0 -69
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/PNGWriter.h +0 -68
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/TiffWriter.h +0 -70
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gdir.h +0 -96
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gfile.h +0 -156
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gmem.h +0 -201
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/grandom.h +0 -21
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gstrtod.h +0 -45
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler-config.h +0 -155
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler_private_export.h +0 -42
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/Splash.h +0 -336
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashBitmap.h +0 -127
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashClip.h +0 -131
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashErrorCodes.h +0 -50
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFont.h +0 -71
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontEngine.h +0 -72
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontFile.h +0 -64
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFont.h +0 -116
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontEngine.h +0 -89
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFile.h +0 -98
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFileID.h +0 -40
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashGlyphBitmap.h +0 -23
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashMath.h +0 -215
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPath.h +0 -138
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPattern.h +0 -107
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashScreen.h +0 -87
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashState.h +0 -132
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashTypes.h +0 -248
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPath.h +0 -95
- package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPathScanner.h +0 -136
- package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-cpp.pc +0 -12
- package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-glib.pc +0 -12
- package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler.pc +0 -10
- package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-cpp.lib +0 -0
- package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-glib.lib +0 -0
- package/src/lib/win32/poppler-22.04.0/Library/lib/poppler.lib +0 -0
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfattach.1 +0 -60
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfdetach.1 +0 -94
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdffonts.1 +0 -128
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfimages.1 +0 -265
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfinfo.1 +0 -198
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfseparate.1 +0 -60
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftocairo.1 +0 -346
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftohtml.1 +0 -118
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftoppm.1 +0 -230
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftops.1 +0 -267
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftotext.1 +0 -157
- package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfunite.1 +0 -43
- package/src/lib/win32/poppler-22.04.0/share/poppler/CMakeLists.txt +0 -309
- package/src/lib/win32/poppler-22.04.0/share/poppler/Makefile +0 -333
- package/tsconfig.json +0 -9
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2009, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2020, Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
|
4
|
-
* Copyright (C) 2021, Albert Astals Cid <aacid@kde.org>
|
|
5
|
-
*
|
|
6
|
-
* This program is free software; you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU General Public License as published by
|
|
8
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
9
|
-
* any later version.
|
|
10
|
-
*
|
|
11
|
-
* This program is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU General Public License
|
|
17
|
-
* along with this program; if not, write to the Free Software
|
|
18
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
#ifndef POPPLER_FONT_H
|
|
22
|
-
#define POPPLER_FONT_H
|
|
23
|
-
|
|
24
|
-
#include "poppler-global.h"
|
|
25
|
-
|
|
26
|
-
#include <vector>
|
|
27
|
-
|
|
28
|
-
namespace poppler {
|
|
29
|
-
|
|
30
|
-
class document;
|
|
31
|
-
class document_private;
|
|
32
|
-
class font_info_private;
|
|
33
|
-
class font_iterator;
|
|
34
|
-
class font_iterator_private;
|
|
35
|
-
|
|
36
|
-
class POPPLER_CPP_EXPORT font_info
|
|
37
|
-
{
|
|
38
|
-
public:
|
|
39
|
-
enum type_enum
|
|
40
|
-
{
|
|
41
|
-
unknown,
|
|
42
|
-
type1,
|
|
43
|
-
type1c,
|
|
44
|
-
type1c_ot,
|
|
45
|
-
type3,
|
|
46
|
-
truetype,
|
|
47
|
-
truetype_ot,
|
|
48
|
-
cid_type0,
|
|
49
|
-
cid_type0c,
|
|
50
|
-
cid_type0c_ot,
|
|
51
|
-
cid_truetype,
|
|
52
|
-
cid_truetype_ot
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
font_info();
|
|
56
|
-
font_info(const font_info &fi);
|
|
57
|
-
~font_info();
|
|
58
|
-
|
|
59
|
-
std::string name() const;
|
|
60
|
-
std::string file() const;
|
|
61
|
-
bool is_embedded() const;
|
|
62
|
-
bool is_subset() const;
|
|
63
|
-
type_enum type() const;
|
|
64
|
-
|
|
65
|
-
font_info &operator=(const font_info &fi);
|
|
66
|
-
|
|
67
|
-
private:
|
|
68
|
-
explicit font_info(font_info_private &dd);
|
|
69
|
-
|
|
70
|
-
font_info_private *d;
|
|
71
|
-
friend class font_iterator;
|
|
72
|
-
friend class page;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
class POPPLER_CPP_EXPORT font_iterator : public poppler::noncopyable
|
|
76
|
-
{
|
|
77
|
-
public:
|
|
78
|
-
~font_iterator();
|
|
79
|
-
|
|
80
|
-
std::vector<font_info> next();
|
|
81
|
-
bool has_next() const;
|
|
82
|
-
int current_page() const;
|
|
83
|
-
|
|
84
|
-
private:
|
|
85
|
-
font_iterator(int, document_private *dd);
|
|
86
|
-
|
|
87
|
-
font_iterator_private *d;
|
|
88
|
-
friend class document;
|
|
89
|
-
friend class page;
|
|
90
|
-
friend class page_private;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
#endif
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2010, Patrick Spendrin <ps_ml@gmx.de>
|
|
4
|
-
* Copyright (C) 2014, Hans-Peter Deifel <hpdeifel@gmx.de>
|
|
5
|
-
* Copyright (C) 2018, Adam Reichold <adam.reichold@t-online.de>
|
|
6
|
-
* Copyright (C) 2021, Albert Astals Cid <aacid@kde.org>
|
|
7
|
-
*
|
|
8
|
-
* This program is free software; you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU General Public License as published by
|
|
10
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
11
|
-
* any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU General Public License
|
|
19
|
-
* along with this program; if not, write to the Free Software
|
|
20
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
#ifndef POPPLER_GLOBAL_H
|
|
24
|
-
#define POPPLER_GLOBAL_H
|
|
25
|
-
|
|
26
|
-
#include "poppler_cpp_export.h"
|
|
27
|
-
|
|
28
|
-
#include <iosfwd>
|
|
29
|
-
#include <string>
|
|
30
|
-
#include <vector>
|
|
31
|
-
|
|
32
|
-
namespace poppler {
|
|
33
|
-
|
|
34
|
-
/// \cond DOXYGEN_SKIP_THIS
|
|
35
|
-
namespace detail {
|
|
36
|
-
|
|
37
|
-
class POPPLER_CPP_EXPORT noncopyable
|
|
38
|
-
{
|
|
39
|
-
public:
|
|
40
|
-
noncopyable(const noncopyable &) = delete;
|
|
41
|
-
const noncopyable &operator=(const noncopyable &) = delete;
|
|
42
|
-
|
|
43
|
-
protected:
|
|
44
|
-
noncopyable();
|
|
45
|
-
~noncopyable();
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
typedef detail::noncopyable noncopyable;
|
|
51
|
-
/// \endcond
|
|
52
|
-
|
|
53
|
-
enum rotation_enum
|
|
54
|
-
{
|
|
55
|
-
rotate_0,
|
|
56
|
-
rotate_90,
|
|
57
|
-
rotate_180,
|
|
58
|
-
rotate_270
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
enum page_box_enum
|
|
62
|
-
{
|
|
63
|
-
media_box,
|
|
64
|
-
crop_box,
|
|
65
|
-
bleed_box,
|
|
66
|
-
trim_box,
|
|
67
|
-
art_box
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
enum permission_enum
|
|
71
|
-
{
|
|
72
|
-
perm_print,
|
|
73
|
-
perm_change,
|
|
74
|
-
perm_copy,
|
|
75
|
-
perm_add_notes,
|
|
76
|
-
perm_fill_forms,
|
|
77
|
-
perm_accessibility,
|
|
78
|
-
perm_assemble,
|
|
79
|
-
perm_print_high_resolution
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
enum case_sensitivity_enum
|
|
83
|
-
{
|
|
84
|
-
case_sensitive,
|
|
85
|
-
case_insensitive
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
typedef std::vector<char> byte_array;
|
|
89
|
-
|
|
90
|
-
typedef unsigned int /* time_t */ time_type;
|
|
91
|
-
|
|
92
|
-
// to disable warning only for this occurrence
|
|
93
|
-
#ifdef _MSC_VER
|
|
94
|
-
# pragma warning(push)
|
|
95
|
-
# pragma warning(disable : 4251) /* class 'A' needs to have dll interface for to be used by clients of class 'B'. */
|
|
96
|
-
#endif
|
|
97
|
-
class POPPLER_CPP_EXPORT ustring : public std::basic_string<unsigned short>
|
|
98
|
-
{
|
|
99
|
-
public:
|
|
100
|
-
ustring();
|
|
101
|
-
ustring(size_type len, value_type ch);
|
|
102
|
-
~ustring();
|
|
103
|
-
|
|
104
|
-
byte_array to_utf8() const;
|
|
105
|
-
std::string to_latin1() const;
|
|
106
|
-
|
|
107
|
-
static ustring from_utf8(const char *str, int len = -1);
|
|
108
|
-
static ustring from_latin1(const std::string &str);
|
|
109
|
-
|
|
110
|
-
private:
|
|
111
|
-
// forbid implicit std::string conversions
|
|
112
|
-
explicit ustring(const std::string &);
|
|
113
|
-
explicit operator std::string() const;
|
|
114
|
-
ustring &operator=(const std::string &);
|
|
115
|
-
};
|
|
116
|
-
#ifdef _MSC_VER
|
|
117
|
-
# pragma warning(pop)
|
|
118
|
-
#endif
|
|
119
|
-
|
|
120
|
-
POPPLER_CPP_EXPORT time_type convert_date(const std::string &date);
|
|
121
|
-
|
|
122
|
-
POPPLER_CPP_EXPORT std::ostream &operator<<(std::ostream &stream, const byte_array &array);
|
|
123
|
-
|
|
124
|
-
POPPLER_CPP_EXPORT bool set_data_dir(const std::string &new_data_dir);
|
|
125
|
-
|
|
126
|
-
typedef void (*debug_func)(const std::string &, void *);
|
|
127
|
-
|
|
128
|
-
POPPLER_CPP_EXPORT void set_debug_error_function(debug_func debug_function, void *closure);
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
#endif
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2010, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2018, Zsombor Hollay-Horvath <hollay.horvath@gmail.com>
|
|
4
|
-
*
|
|
5
|
-
* This program is free software; you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
8
|
-
* any later version.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU General Public License
|
|
16
|
-
* along with this program; if not, write to the Free Software
|
|
17
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
#ifndef POPPLER_IMAGE_H
|
|
21
|
-
#define POPPLER_IMAGE_H
|
|
22
|
-
|
|
23
|
-
#include "poppler-global.h"
|
|
24
|
-
#include "poppler-rectangle.h"
|
|
25
|
-
|
|
26
|
-
namespace poppler {
|
|
27
|
-
|
|
28
|
-
class image_private;
|
|
29
|
-
|
|
30
|
-
class POPPLER_CPP_EXPORT image
|
|
31
|
-
{
|
|
32
|
-
public:
|
|
33
|
-
enum format_enum
|
|
34
|
-
{
|
|
35
|
-
format_invalid,
|
|
36
|
-
format_mono,
|
|
37
|
-
format_rgb24,
|
|
38
|
-
format_argb32,
|
|
39
|
-
format_gray8,
|
|
40
|
-
format_bgr24
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
image();
|
|
44
|
-
image(int iwidth, int iheight, format_enum iformat);
|
|
45
|
-
image(char *idata, int iwidth, int iheight, format_enum iformat);
|
|
46
|
-
image(const image &img);
|
|
47
|
-
~image();
|
|
48
|
-
|
|
49
|
-
bool is_valid() const;
|
|
50
|
-
format_enum format() const;
|
|
51
|
-
int width() const;
|
|
52
|
-
int height() const;
|
|
53
|
-
char *data();
|
|
54
|
-
const char *const_data() const;
|
|
55
|
-
int bytes_per_row() const;
|
|
56
|
-
|
|
57
|
-
image copy(const rect &r = rect()) const;
|
|
58
|
-
|
|
59
|
-
bool save(const std::string &file_name, const std::string &out_format, int dpi = -1) const;
|
|
60
|
-
|
|
61
|
-
static std::vector<std::string> supported_image_formats();
|
|
62
|
-
|
|
63
|
-
image &operator=(const image &img);
|
|
64
|
-
|
|
65
|
-
private:
|
|
66
|
-
void detach();
|
|
67
|
-
|
|
68
|
-
image_private *d;
|
|
69
|
-
friend class image_private;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
#endif
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2010, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2018, Zsombor Hollay-Horvath <hollay.horvath@gmail.com>
|
|
4
|
-
*
|
|
5
|
-
* This program is free software; you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
8
|
-
* any later version.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU General Public License
|
|
16
|
-
* along with this program; if not, write to the Free Software
|
|
17
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
#ifndef POPPLER_PAGE_RENDERER_H
|
|
21
|
-
#define POPPLER_PAGE_RENDERER_H
|
|
22
|
-
|
|
23
|
-
#include "poppler-global.h"
|
|
24
|
-
#include "poppler-image.h"
|
|
25
|
-
|
|
26
|
-
namespace poppler {
|
|
27
|
-
|
|
28
|
-
typedef unsigned int argb;
|
|
29
|
-
|
|
30
|
-
class page;
|
|
31
|
-
class page_renderer_private;
|
|
32
|
-
|
|
33
|
-
class POPPLER_CPP_EXPORT page_renderer : public poppler::noncopyable
|
|
34
|
-
{
|
|
35
|
-
public:
|
|
36
|
-
enum render_hint
|
|
37
|
-
{
|
|
38
|
-
antialiasing = 0x00000001,
|
|
39
|
-
text_antialiasing = 0x00000002,
|
|
40
|
-
text_hinting = 0x00000004
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
enum line_mode_enum
|
|
44
|
-
{
|
|
45
|
-
line_default,
|
|
46
|
-
line_solid,
|
|
47
|
-
line_shape
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
page_renderer();
|
|
51
|
-
~page_renderer();
|
|
52
|
-
|
|
53
|
-
argb paper_color() const;
|
|
54
|
-
void set_paper_color(argb c);
|
|
55
|
-
|
|
56
|
-
unsigned int render_hints() const;
|
|
57
|
-
void set_render_hint(render_hint hint, bool on = true);
|
|
58
|
-
void set_render_hints(unsigned int hints);
|
|
59
|
-
|
|
60
|
-
image::format_enum image_format() const;
|
|
61
|
-
void set_image_format(image::format_enum format);
|
|
62
|
-
|
|
63
|
-
line_mode_enum line_mode() const;
|
|
64
|
-
void set_line_mode(line_mode_enum mode);
|
|
65
|
-
|
|
66
|
-
image render_page(const page *p, double xres = 72.0, double yres = 72.0, int x = -1, int y = -1, int w = -1, int h = -1, rotation_enum rotate = rotate_0) const;
|
|
67
|
-
|
|
68
|
-
static bool can_render();
|
|
69
|
-
|
|
70
|
-
private:
|
|
71
|
-
page_renderer_private *d;
|
|
72
|
-
friend class page_renderer_private;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
#endif
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2009, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2021, Albert Astals Cid <aacid@kde.org>
|
|
4
|
-
*
|
|
5
|
-
* This program is free software; you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
8
|
-
* any later version.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU General Public License
|
|
16
|
-
* along with this program; if not, write to the Free Software
|
|
17
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
#ifndef POPPLER_PAGE_TRANSITION_H
|
|
21
|
-
#define POPPLER_PAGE_TRANSITION_H
|
|
22
|
-
|
|
23
|
-
#include "poppler-global.h"
|
|
24
|
-
|
|
25
|
-
class Object;
|
|
26
|
-
|
|
27
|
-
namespace poppler {
|
|
28
|
-
|
|
29
|
-
class page;
|
|
30
|
-
class page_transition_private;
|
|
31
|
-
|
|
32
|
-
class POPPLER_CPP_EXPORT page_transition
|
|
33
|
-
{
|
|
34
|
-
public:
|
|
35
|
-
enum type_enum
|
|
36
|
-
{
|
|
37
|
-
replace = 0,
|
|
38
|
-
split,
|
|
39
|
-
blinds,
|
|
40
|
-
box,
|
|
41
|
-
wipe,
|
|
42
|
-
dissolve,
|
|
43
|
-
glitter,
|
|
44
|
-
fly,
|
|
45
|
-
push,
|
|
46
|
-
cover,
|
|
47
|
-
uncover,
|
|
48
|
-
fade
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
enum alignment_enum
|
|
52
|
-
{
|
|
53
|
-
horizontal = 0,
|
|
54
|
-
vertical
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
enum direction_enum
|
|
58
|
-
{
|
|
59
|
-
inward = 0,
|
|
60
|
-
outward
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
page_transition(const page_transition &pt);
|
|
64
|
-
~page_transition();
|
|
65
|
-
|
|
66
|
-
type_enum type() const;
|
|
67
|
-
int duration() const;
|
|
68
|
-
alignment_enum alignment() const;
|
|
69
|
-
direction_enum direction() const;
|
|
70
|
-
int angle() const;
|
|
71
|
-
double scale() const;
|
|
72
|
-
bool is_rectangular() const;
|
|
73
|
-
|
|
74
|
-
page_transition &operator=(const page_transition &pt);
|
|
75
|
-
|
|
76
|
-
private:
|
|
77
|
-
explicit page_transition(Object *params);
|
|
78
|
-
|
|
79
|
-
page_transition_private *d;
|
|
80
|
-
friend class page;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
#endif
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
|
|
3
|
-
* Copyright (C) 2018, 2020, Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
|
4
|
-
* Copyright (C) 2018-2021, Albert Astals Cid <aacid@kde.org>
|
|
5
|
-
* Copyright (C) 2018, Zsombor Hollay-Horvath <hollay.horvath@gmail.com>
|
|
6
|
-
* Copyright (C) 2018, Aleksey Nikolaev <nae202@gmail.com>
|
|
7
|
-
* Copyright (C) 2020, Jiri Jakes <freedesktop@jirijakes.eu>
|
|
8
|
-
* Copyright (C) 2020, Adam Reichold <adam.reichold@t-online.de>
|
|
9
|
-
*
|
|
10
|
-
* This program is free software; you can redistribute it and/or modify
|
|
11
|
-
* it under the terms of the GNU General Public License as published by
|
|
12
|
-
* the Free Software Foundation; either version 2, or (at your option)
|
|
13
|
-
* any later version.
|
|
14
|
-
*
|
|
15
|
-
* This program is distributed in the hope that it will be useful,
|
|
16
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18
|
-
* GNU General Public License for more details.
|
|
19
|
-
*
|
|
20
|
-
* You should have received a copy of the GNU General Public License
|
|
21
|
-
* along with this program; if not, write to the Free Software
|
|
22
|
-
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
#ifndef POPPLER_PAGE_H
|
|
26
|
-
#define POPPLER_PAGE_H
|
|
27
|
-
|
|
28
|
-
#include "poppler-global.h"
|
|
29
|
-
#include "poppler-rectangle.h"
|
|
30
|
-
|
|
31
|
-
#include <memory>
|
|
32
|
-
|
|
33
|
-
namespace poppler {
|
|
34
|
-
|
|
35
|
-
struct text_box_data;
|
|
36
|
-
class POPPLER_CPP_EXPORT text_box
|
|
37
|
-
{
|
|
38
|
-
friend class page;
|
|
39
|
-
|
|
40
|
-
public:
|
|
41
|
-
text_box(text_box &&) noexcept;
|
|
42
|
-
text_box &operator=(text_box &&) noexcept;
|
|
43
|
-
|
|
44
|
-
~text_box();
|
|
45
|
-
|
|
46
|
-
ustring text() const;
|
|
47
|
-
rectf bbox() const;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
\since 0.68
|
|
51
|
-
*/
|
|
52
|
-
int rotation() const;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
Get a bbox for the i-th glyph
|
|
56
|
-
|
|
57
|
-
This method returns a rectf of the bounding box for
|
|
58
|
-
the i-th glyph in the text_box.
|
|
59
|
-
|
|
60
|
-
\note The text_box object owns the rectf objects,
|
|
61
|
-
the caller is not needed to free them.
|
|
62
|
-
|
|
63
|
-
\warning For too large glyph index, rectf(0,0,0,0)
|
|
64
|
-
is returned. The number of the glyphs and ustring
|
|
65
|
-
codepoints might be different in some complex scripts.
|
|
66
|
-
*/
|
|
67
|
-
rectf char_bbox(size_t i) const;
|
|
68
|
-
bool has_space_after() const;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
\since 0.89
|
|
72
|
-
*/
|
|
73
|
-
bool has_font_info() const;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
Get a writing mode for the i-th glyph
|
|
77
|
-
|
|
78
|
-
This method returns an enum of the writing mode
|
|
79
|
-
for the i-th glyph in the text_box.
|
|
80
|
-
|
|
81
|
-
\note Usually all glyphs in one text_box have the
|
|
82
|
-
same writing mode. Thus the default value of the
|
|
83
|
-
glyph index is 0.
|
|
84
|
-
*/
|
|
85
|
-
enum writing_mode_enum
|
|
86
|
-
{
|
|
87
|
-
invalid_wmode = -1,
|
|
88
|
-
horizontal_wmode = 0,
|
|
89
|
-
vertical_wmode = 1
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
\since 0.89
|
|
94
|
-
*/
|
|
95
|
-
writing_mode_enum get_wmode(int i = 0) const;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
Get a font size of this text_box instance.
|
|
99
|
-
|
|
100
|
-
This method return a double floating value of the
|
|
101
|
-
font size from the text_box instance.
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
\since 0.89
|
|
106
|
-
*/
|
|
107
|
-
double get_font_size() const;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
Get a font name for the i-th glyph
|
|
111
|
-
|
|
112
|
-
This method returns a std::string object holding
|
|
113
|
-
the font name for the i-th glyph.
|
|
114
|
-
|
|
115
|
-
\note The randomization prefix of the embedded fonts
|
|
116
|
-
are not removed. The font names including these
|
|
117
|
-
prefixes are insuffucient to determine whether the
|
|
118
|
-
two fonts are same or different.
|
|
119
|
-
|
|
120
|
-
\note The clients should not assume that the
|
|
121
|
-
encoding of the font name is one of the ASCII,
|
|
122
|
-
Latin1 or UTF-8. Some legacy PDF producers used
|
|
123
|
-
in CJK market use GBK, Big5, Wansung or Shift-JIS.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
\since 0.89
|
|
128
|
-
*/
|
|
129
|
-
std::string get_font_name(int i = 0) const;
|
|
130
|
-
|
|
131
|
-
private:
|
|
132
|
-
explicit text_box(text_box_data *data);
|
|
133
|
-
|
|
134
|
-
std::unique_ptr<text_box_data> m_data;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
class document;
|
|
138
|
-
class document_private;
|
|
139
|
-
class page_private;
|
|
140
|
-
class page_transition;
|
|
141
|
-
|
|
142
|
-
class POPPLER_CPP_EXPORT page : public poppler::noncopyable
|
|
143
|
-
{
|
|
144
|
-
public:
|
|
145
|
-
enum orientation_enum
|
|
146
|
-
{
|
|
147
|
-
landscape,
|
|
148
|
-
portrait,
|
|
149
|
-
seascape,
|
|
150
|
-
upside_down
|
|
151
|
-
};
|
|
152
|
-
enum search_direction_enum
|
|
153
|
-
{
|
|
154
|
-
search_from_top,
|
|
155
|
-
search_next_result,
|
|
156
|
-
search_previous_result
|
|
157
|
-
};
|
|
158
|
-
enum text_layout_enum
|
|
159
|
-
{
|
|
160
|
-
physical_layout,
|
|
161
|
-
raw_order_layout,
|
|
162
|
-
non_raw_non_physical_layout ///< \since 0.88
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
~page();
|
|
166
|
-
|
|
167
|
-
orientation_enum orientation() const;
|
|
168
|
-
double duration() const;
|
|
169
|
-
rectf page_rect(page_box_enum box = crop_box) const;
|
|
170
|
-
ustring label() const;
|
|
171
|
-
|
|
172
|
-
page_transition *transition() const;
|
|
173
|
-
|
|
174
|
-
bool search(const ustring &text, rectf &r, search_direction_enum direction, case_sensitivity_enum case_sensitivity, rotation_enum rotation = rotate_0) const;
|
|
175
|
-
ustring text(const rectf &rect = rectf()) const;
|
|
176
|
-
ustring text(const rectf &rect, text_layout_enum layout_mode) const;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
Returns a list of text of the page
|
|
180
|
-
|
|
181
|
-
This method returns a std::vector of text_box that contain all
|
|
182
|
-
the text of the page, with roughly one text word of text
|
|
183
|
-
per text_box item.
|
|
184
|
-
|
|
185
|
-
For text written in western languages (left-to-right and
|
|
186
|
-
up-to-down), the std::vector contains the text in the proper
|
|
187
|
-
order.
|
|
188
|
-
|
|
189
|
-
\since 0.63
|
|
190
|
-
|
|
191
|
-
\note The page object owns the text_box objects as unique_ptr,
|
|
192
|
-
the caller is not needed to free them.
|
|
193
|
-
|
|
194
|
-
\warning This method is not tested with Asian scripts
|
|
195
|
-
*/
|
|
196
|
-
std::vector<text_box> text_list() const;
|
|
197
|
-
|
|
198
|
-
/*
|
|
199
|
-
* text_list_option_enum is a bitmask-style flags for text_list(),
|
|
200
|
-
* 0 means the default & simplest behaviour.
|
|
201
|
-
*/
|
|
202
|
-
enum text_list_option_enum
|
|
203
|
-
{
|
|
204
|
-
text_list_include_font = 1 // \since 0.89
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
Extended version of text_list() taking an option flag.
|
|
209
|
-
The option flag should be the multiple of text_list_option_enum.
|
|
210
|
-
|
|
211
|
-
\since 0.89
|
|
212
|
-
*/
|
|
213
|
-
std::vector<text_box> text_list(int opt_flag) const;
|
|
214
|
-
|
|
215
|
-
private:
|
|
216
|
-
page(document_private *doc, int index);
|
|
217
|
-
|
|
218
|
-
page_private *d;
|
|
219
|
-
friend class page_private;
|
|
220
|
-
friend class document;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
#endif
|