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,98 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashFontFile.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
//========================================================================
|
|
8
|
-
//
|
|
9
|
-
// Modified under the Poppler project - http://poppler.freedesktop.org
|
|
10
|
-
//
|
|
11
|
-
// All changes made under the Poppler project to this file are licensed
|
|
12
|
-
// under GPL version 2 or later
|
|
13
|
-
//
|
|
14
|
-
// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
|
|
15
|
-
// Copyright (C) 2008, 2010, 2018 Albert Astals Cid <aacid@kde.org>
|
|
16
|
-
// Copyright (C) 2022 Oliver Sander <oliver.sander@tu-dresden.de>
|
|
17
|
-
//
|
|
18
|
-
// To see a description of the changes please see the Changelog file that
|
|
19
|
-
// came with your tarball or type make ChangeLog if you are building from git
|
|
20
|
-
//
|
|
21
|
-
//========================================================================
|
|
22
|
-
|
|
23
|
-
#ifndef SPLASHFONTFILE_H
|
|
24
|
-
#define SPLASHFONTFILE_H
|
|
25
|
-
|
|
26
|
-
#include <string>
|
|
27
|
-
#include <vector>
|
|
28
|
-
|
|
29
|
-
#include "SplashTypes.h"
|
|
30
|
-
#include "poppler_private_export.h"
|
|
31
|
-
|
|
32
|
-
class SplashFontEngine;
|
|
33
|
-
class SplashFont;
|
|
34
|
-
class SplashFontFileID;
|
|
35
|
-
|
|
36
|
-
//------------------------------------------------------------------------
|
|
37
|
-
// SplashFontFile
|
|
38
|
-
//------------------------------------------------------------------------
|
|
39
|
-
|
|
40
|
-
class POPPLER_PRIVATE_EXPORT SplashFontSrc
|
|
41
|
-
{
|
|
42
|
-
public:
|
|
43
|
-
SplashFontSrc();
|
|
44
|
-
|
|
45
|
-
SplashFontSrc(const SplashFontSrc &) = delete;
|
|
46
|
-
SplashFontSrc &operator=(const SplashFontSrc &) = delete;
|
|
47
|
-
|
|
48
|
-
void setFile(const std::string &file);
|
|
49
|
-
void setBuf(char *bufA, int buflenA);
|
|
50
|
-
void setBuf(std::vector<unsigned char> &&bufA);
|
|
51
|
-
|
|
52
|
-
void ref();
|
|
53
|
-
void unref();
|
|
54
|
-
|
|
55
|
-
bool isFile;
|
|
56
|
-
std::string fileName;
|
|
57
|
-
std::vector<unsigned char> buf;
|
|
58
|
-
|
|
59
|
-
private:
|
|
60
|
-
~SplashFontSrc();
|
|
61
|
-
int refcnt;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
class SplashFontFile
|
|
65
|
-
{
|
|
66
|
-
public:
|
|
67
|
-
virtual ~SplashFontFile();
|
|
68
|
-
|
|
69
|
-
SplashFontFile(const SplashFontFile &) = delete;
|
|
70
|
-
SplashFontFile &operator=(const SplashFontFile &) = delete;
|
|
71
|
-
|
|
72
|
-
// Create a new SplashFont, i.e., a scaled instance of this font
|
|
73
|
-
// file.
|
|
74
|
-
virtual SplashFont *makeFont(SplashCoord *mat, const SplashCoord *textMat) = 0;
|
|
75
|
-
|
|
76
|
-
// Get the font file ID.
|
|
77
|
-
SplashFontFileID *getID() { return id; }
|
|
78
|
-
|
|
79
|
-
// Increment the reference count.
|
|
80
|
-
void incRefCnt();
|
|
81
|
-
|
|
82
|
-
// Decrement the reference count. If the new value is zero, delete
|
|
83
|
-
// the SplashFontFile object.
|
|
84
|
-
void decRefCnt();
|
|
85
|
-
|
|
86
|
-
bool doAdjustMatrix;
|
|
87
|
-
|
|
88
|
-
protected:
|
|
89
|
-
SplashFontFile(SplashFontFileID *idA, SplashFontSrc *srcA);
|
|
90
|
-
|
|
91
|
-
SplashFontFileID *id;
|
|
92
|
-
SplashFontSrc *src;
|
|
93
|
-
int refCnt;
|
|
94
|
-
|
|
95
|
-
friend class SplashFontEngine;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
#endif
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashFontFileID.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
//========================================================================
|
|
8
|
-
//
|
|
9
|
-
// Modified under the Poppler project - http://poppler.freedesktop.org
|
|
10
|
-
//
|
|
11
|
-
// All changes made under the Poppler project to this file are licensed
|
|
12
|
-
// under GPL version 2 or later
|
|
13
|
-
//
|
|
14
|
-
// Copyright (C) 2018 Albert Astals Cid <aacid@kde.org>
|
|
15
|
-
//
|
|
16
|
-
// To see a description of the changes please see the Changelog file that
|
|
17
|
-
// came with your tarball or type make ChangeLog if you are building from git
|
|
18
|
-
//
|
|
19
|
-
//========================================================================
|
|
20
|
-
|
|
21
|
-
#ifndef SPLASHFONTFILEID_H
|
|
22
|
-
#define SPLASHFONTFILEID_H
|
|
23
|
-
|
|
24
|
-
#include "poppler_private_export.h"
|
|
25
|
-
|
|
26
|
-
//------------------------------------------------------------------------
|
|
27
|
-
// SplashFontFileID
|
|
28
|
-
//------------------------------------------------------------------------
|
|
29
|
-
|
|
30
|
-
class POPPLER_PRIVATE_EXPORT SplashFontFileID
|
|
31
|
-
{
|
|
32
|
-
public:
|
|
33
|
-
SplashFontFileID();
|
|
34
|
-
virtual ~SplashFontFileID();
|
|
35
|
-
SplashFontFileID(const SplashFontFileID &) = delete;
|
|
36
|
-
SplashFontFileID &operator=(const SplashFontFileID &) = delete;
|
|
37
|
-
virtual bool matches(SplashFontFileID *id) = 0;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
#endif
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashGlyphBitmap.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
#ifndef SPLASHGLYPHBITMAP_H
|
|
8
|
-
#define SPLASHGLYPHBITMAP_H
|
|
9
|
-
|
|
10
|
-
//------------------------------------------------------------------------
|
|
11
|
-
// SplashGlyphBitmap
|
|
12
|
-
//------------------------------------------------------------------------
|
|
13
|
-
|
|
14
|
-
struct SplashGlyphBitmap
|
|
15
|
-
{
|
|
16
|
-
int x, y, w, h; // offset and size of glyph
|
|
17
|
-
bool aa; // anti-aliased: true means 8-bit alpha
|
|
18
|
-
// bitmap; false means 1-bit
|
|
19
|
-
unsigned char *data; // bitmap data
|
|
20
|
-
bool freeData; // true if data memory should be freed
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
#endif
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashMath.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
//========================================================================
|
|
8
|
-
//
|
|
9
|
-
// Modified under the Poppler project - http://poppler.freedesktop.org
|
|
10
|
-
//
|
|
11
|
-
// All changes made under the Poppler project to this file are licensed
|
|
12
|
-
// under GPL version 2 or later
|
|
13
|
-
//
|
|
14
|
-
// Copyright (C) 2009-2011 Albert Astals Cid <aacid@kde.org>
|
|
15
|
-
// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
|
|
16
|
-
// Copyright (C) 2020 Jean Ghali <jghali@libertysurf.fr>
|
|
17
|
-
//
|
|
18
|
-
// To see a description of the changes please see the Changelog file that
|
|
19
|
-
// came with your tarball or type make ChangeLog if you are building from git
|
|
20
|
-
//
|
|
21
|
-
//========================================================================
|
|
22
|
-
|
|
23
|
-
#ifndef SPLASHMATH_H
|
|
24
|
-
#define SPLASHMATH_H
|
|
25
|
-
|
|
26
|
-
#include "poppler-config.h"
|
|
27
|
-
|
|
28
|
-
#include <cmath>
|
|
29
|
-
#include "SplashTypes.h"
|
|
30
|
-
|
|
31
|
-
static inline SplashCoord splashAbs(SplashCoord x)
|
|
32
|
-
{
|
|
33
|
-
#if defined(USE_FLOAT)
|
|
34
|
-
return fabsf(x);
|
|
35
|
-
#else
|
|
36
|
-
return fabs(x);
|
|
37
|
-
#endif
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
static inline int splashFloor(SplashCoord x)
|
|
41
|
-
{
|
|
42
|
-
#if defined(USE_FLOAT)
|
|
43
|
-
return (int)floorf(x);
|
|
44
|
-
#elif defined(__GNUC__) && defined(__i386__)
|
|
45
|
-
// floor() and (int)() are implemented separately, which results
|
|
46
|
-
// in changing the FPCW multiple times - so we optimize it with
|
|
47
|
-
// some inline assembly
|
|
48
|
-
unsigned short oldCW, newCW, t;
|
|
49
|
-
int result;
|
|
50
|
-
|
|
51
|
-
__asm__ volatile("fldl %4\n"
|
|
52
|
-
"fnstcw %0\n"
|
|
53
|
-
"movw %0, %3\n"
|
|
54
|
-
"andw $0xf3ff, %3\n"
|
|
55
|
-
"orw $0x0400, %3\n"
|
|
56
|
-
"movw %3, %1\n" // round down
|
|
57
|
-
"fldcw %1\n"
|
|
58
|
-
"fistpl %2\n"
|
|
59
|
-
"fldcw %0\n"
|
|
60
|
-
: "=m"(oldCW), "=m"(newCW), "=m"(result), "=r"(t)
|
|
61
|
-
: "m"(x));
|
|
62
|
-
return result;
|
|
63
|
-
#elif defined(_WIN32) && defined(_M_IX86)
|
|
64
|
-
// floor() and (int)() are implemented separately, which results
|
|
65
|
-
// in changing the FPCW multiple times - so we optimize it with
|
|
66
|
-
// some inline assembly
|
|
67
|
-
unsigned short oldCW, newCW;
|
|
68
|
-
int result;
|
|
69
|
-
|
|
70
|
-
__asm fld QWORD PTR x;
|
|
71
|
-
__asm fnstcw WORD PTR oldCW;
|
|
72
|
-
__asm mov ax, WORD PTR oldCW;
|
|
73
|
-
__asm and ax, 0xf3ff;
|
|
74
|
-
__asm or ax, 0x0400;
|
|
75
|
-
__asm mov WORD PTR newCW, ax; // round down
|
|
76
|
-
__asm fldcw WORD PTR newCW;
|
|
77
|
-
__asm fistp DWORD PTR result;
|
|
78
|
-
__asm fldcw WORD PTR oldCW;
|
|
79
|
-
return result;
|
|
80
|
-
#else
|
|
81
|
-
if (x > 0) {
|
|
82
|
-
return (int)x;
|
|
83
|
-
} else {
|
|
84
|
-
return (int)floor(x);
|
|
85
|
-
}
|
|
86
|
-
#endif
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
static inline int splashCeil(SplashCoord x)
|
|
90
|
-
{
|
|
91
|
-
#if defined(USE_FLOAT)
|
|
92
|
-
return (int)ceilf(x);
|
|
93
|
-
#elif defined(__GNUC__) && defined(__i386__)
|
|
94
|
-
// ceil() and (int)() are implemented separately, which results
|
|
95
|
-
// in changing the FPCW multiple times - so we optimize it with
|
|
96
|
-
// some inline assembly
|
|
97
|
-
unsigned short oldCW, newCW, t;
|
|
98
|
-
int result;
|
|
99
|
-
|
|
100
|
-
__asm__ volatile("fldl %4\n"
|
|
101
|
-
"fnstcw %0\n"
|
|
102
|
-
"movw %0, %3\n"
|
|
103
|
-
"andw $0xf3ff, %3\n"
|
|
104
|
-
"orw $0x0800, %3\n"
|
|
105
|
-
"movw %3, %1\n" // round up
|
|
106
|
-
"fldcw %1\n"
|
|
107
|
-
"fistpl %2\n"
|
|
108
|
-
"fldcw %0\n"
|
|
109
|
-
: "=m"(oldCW), "=m"(newCW), "=m"(result), "=r"(t)
|
|
110
|
-
: "m"(x));
|
|
111
|
-
return result;
|
|
112
|
-
#elif defined(_WIN32) && defined(_M_IX86)
|
|
113
|
-
// ceil() and (int)() are implemented separately, which results
|
|
114
|
-
// in changing the FPCW multiple times - so we optimize it with
|
|
115
|
-
// some inline assembly
|
|
116
|
-
unsigned short oldCW, newCW;
|
|
117
|
-
int result;
|
|
118
|
-
|
|
119
|
-
__asm fld QWORD PTR x;
|
|
120
|
-
__asm fnstcw WORD PTR oldCW;
|
|
121
|
-
__asm mov ax, WORD PTR oldCW;
|
|
122
|
-
__asm and ax, 0xf3ff;
|
|
123
|
-
__asm or ax, 0x0800;
|
|
124
|
-
__asm mov WORD PTR newCW, ax; // round up
|
|
125
|
-
__asm fldcw WORD PTR newCW;
|
|
126
|
-
__asm fistp DWORD PTR result;
|
|
127
|
-
__asm fldcw WORD PTR oldCW;
|
|
128
|
-
return result;
|
|
129
|
-
#else
|
|
130
|
-
return (int)ceil(x);
|
|
131
|
-
#endif
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
static inline int splashRound(SplashCoord x)
|
|
135
|
-
{
|
|
136
|
-
#if defined(__GNUC__) && defined(__i386__)
|
|
137
|
-
// this could use round-to-nearest mode and avoid the "+0.5",
|
|
138
|
-
// but that produces slightly different results (because i+0.5
|
|
139
|
-
// sometimes rounds up and sometimes down using the even rule)
|
|
140
|
-
unsigned short oldCW, newCW, t;
|
|
141
|
-
int result;
|
|
142
|
-
|
|
143
|
-
x += 0.5;
|
|
144
|
-
__asm__ volatile("fldl %4\n"
|
|
145
|
-
"fnstcw %0\n"
|
|
146
|
-
"movw %0, %3\n"
|
|
147
|
-
"andw $0xf3ff, %3\n"
|
|
148
|
-
"orw $0x0400, %3\n"
|
|
149
|
-
"movw %3, %1\n" // round down
|
|
150
|
-
"fldcw %1\n"
|
|
151
|
-
"fistpl %2\n"
|
|
152
|
-
"fldcw %0\n"
|
|
153
|
-
: "=m"(oldCW), "=m"(newCW), "=m"(result), "=r"(t)
|
|
154
|
-
: "m"(x));
|
|
155
|
-
return result;
|
|
156
|
-
#elif defined(_WIN32) && defined(_M_IX86)
|
|
157
|
-
// this could use round-to-nearest mode and avoid the "+0.5",
|
|
158
|
-
// but that produces slightly different results (because i+0.5
|
|
159
|
-
// sometimes rounds up and sometimes down using the even rule)
|
|
160
|
-
unsigned short oldCW, newCW;
|
|
161
|
-
int result;
|
|
162
|
-
|
|
163
|
-
x += 0.5;
|
|
164
|
-
__asm fld QWORD PTR x;
|
|
165
|
-
__asm fnstcw WORD PTR oldCW;
|
|
166
|
-
__asm mov ax, WORD PTR oldCW;
|
|
167
|
-
__asm and ax, 0xf3ff;
|
|
168
|
-
__asm or ax, 0x0400;
|
|
169
|
-
__asm mov WORD PTR newCW, ax; // round down
|
|
170
|
-
__asm fldcw WORD PTR newCW;
|
|
171
|
-
__asm fistp DWORD PTR result;
|
|
172
|
-
__asm fldcw WORD PTR oldCW;
|
|
173
|
-
return result;
|
|
174
|
-
#else
|
|
175
|
-
return (int)splashFloor(x + 0.5);
|
|
176
|
-
#endif
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
static inline SplashCoord splashAvg(SplashCoord x, SplashCoord y)
|
|
180
|
-
{
|
|
181
|
-
return 0.5 * (x + y);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
static inline SplashCoord splashSqrt(SplashCoord x)
|
|
185
|
-
{
|
|
186
|
-
#if defined(USE_FLOAT)
|
|
187
|
-
return sqrtf(x);
|
|
188
|
-
#else
|
|
189
|
-
return sqrt(x);
|
|
190
|
-
#endif
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
static inline SplashCoord splashPow(SplashCoord x, SplashCoord y)
|
|
194
|
-
{
|
|
195
|
-
#if defined(USE_FLOAT)
|
|
196
|
-
return powf(x, y);
|
|
197
|
-
#else
|
|
198
|
-
return pow(x, y);
|
|
199
|
-
#endif
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
static inline SplashCoord splashDist(SplashCoord x0, SplashCoord y0, SplashCoord x1, SplashCoord y1)
|
|
203
|
-
{
|
|
204
|
-
SplashCoord dx, dy;
|
|
205
|
-
dx = x1 - x0;
|
|
206
|
-
dy = y1 - y0;
|
|
207
|
-
return splashSqrt(dx * dx + dy * dy);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
static inline bool splashCheckDet(SplashCoord m11, SplashCoord m12, SplashCoord m21, SplashCoord m22, SplashCoord epsilon)
|
|
211
|
-
{
|
|
212
|
-
return fabs(m11 * m22 - m12 * m21) >= epsilon;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
#endif
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashPath.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
//========================================================================
|
|
8
|
-
//
|
|
9
|
-
// Modified under the Poppler project - http://poppler.freedesktop.org
|
|
10
|
-
//
|
|
11
|
-
// All changes made under the Poppler project to this file are licensed
|
|
12
|
-
// under GPL version 2 or later
|
|
13
|
-
//
|
|
14
|
-
// Copyright (C) 2018, 2019, 2021 Albert Astals Cid <aacid@kde.org>
|
|
15
|
-
// Copyright (C) 2018 Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
|
16
|
-
//
|
|
17
|
-
// To see a description of the changes please see the Changelog file that
|
|
18
|
-
// came with your tarball or type make ChangeLog if you are building from git
|
|
19
|
-
//
|
|
20
|
-
//========================================================================
|
|
21
|
-
|
|
22
|
-
#ifndef SPLASHPATH_H
|
|
23
|
-
#define SPLASHPATH_H
|
|
24
|
-
|
|
25
|
-
#include "SplashTypes.h"
|
|
26
|
-
#include "poppler_private_export.h"
|
|
27
|
-
|
|
28
|
-
//------------------------------------------------------------------------
|
|
29
|
-
// SplashPathPoint
|
|
30
|
-
//------------------------------------------------------------------------
|
|
31
|
-
|
|
32
|
-
struct SplashPathPoint
|
|
33
|
-
{
|
|
34
|
-
SplashCoord x, y;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
//------------------------------------------------------------------------
|
|
38
|
-
// SplashPath.flags
|
|
39
|
-
//------------------------------------------------------------------------
|
|
40
|
-
|
|
41
|
-
// first point on each subpath sets this flag
|
|
42
|
-
#define splashPathFirst 0x01
|
|
43
|
-
|
|
44
|
-
// last point on each subpath sets this flag
|
|
45
|
-
#define splashPathLast 0x02
|
|
46
|
-
|
|
47
|
-
// if the subpath is closed, its first and last points must be
|
|
48
|
-
// identical, and must set this flag
|
|
49
|
-
#define splashPathClosed 0x04
|
|
50
|
-
|
|
51
|
-
// curve control points set this flag
|
|
52
|
-
#define splashPathCurve 0x08
|
|
53
|
-
|
|
54
|
-
//------------------------------------------------------------------------
|
|
55
|
-
// SplashPathHint
|
|
56
|
-
//------------------------------------------------------------------------
|
|
57
|
-
|
|
58
|
-
struct SplashPathHint
|
|
59
|
-
{
|
|
60
|
-
int ctrl0, ctrl1;
|
|
61
|
-
int firstPt, lastPt;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
//------------------------------------------------------------------------
|
|
65
|
-
// SplashPath
|
|
66
|
-
//------------------------------------------------------------------------
|
|
67
|
-
|
|
68
|
-
class POPPLER_PRIVATE_EXPORT SplashPath
|
|
69
|
-
{
|
|
70
|
-
public:
|
|
71
|
-
// Create an empty path.
|
|
72
|
-
SplashPath();
|
|
73
|
-
~SplashPath();
|
|
74
|
-
|
|
75
|
-
SplashPath(const SplashPath &) = delete;
|
|
76
|
-
SplashPath &operator=(const SplashPath &) = delete;
|
|
77
|
-
SplashPath(SplashPath &&path) noexcept;
|
|
78
|
-
|
|
79
|
-
// Append <path> to <this>.
|
|
80
|
-
void append(SplashPath *path);
|
|
81
|
-
|
|
82
|
-
// Start a new subpath.
|
|
83
|
-
SplashError moveTo(SplashCoord x, SplashCoord y);
|
|
84
|
-
|
|
85
|
-
// Add a line segment to the last subpath.
|
|
86
|
-
SplashError lineTo(SplashCoord x, SplashCoord y);
|
|
87
|
-
|
|
88
|
-
// Add a third-order (cubic) Bezier curve segment to the last
|
|
89
|
-
// subpath.
|
|
90
|
-
SplashError curveTo(SplashCoord x1, SplashCoord y1, SplashCoord x2, SplashCoord y2, SplashCoord x3, SplashCoord y3);
|
|
91
|
-
|
|
92
|
-
// Close the last subpath, adding a line segment if necessary. If
|
|
93
|
-
// <force> is true, this adds a line segment even if the current
|
|
94
|
-
// point is equal to the first point in the subpath.
|
|
95
|
-
SplashError close(bool force = false);
|
|
96
|
-
|
|
97
|
-
// Add a stroke adjustment hint. The controlling segments are
|
|
98
|
-
// <ctrl0> and <ctrl1> (where segments are identified by their first
|
|
99
|
-
// point), and the points to be adjusted are <firstPt> .. <lastPt>.
|
|
100
|
-
void addStrokeAdjustHint(int ctrl0, int ctrl1, int firstPt, int lastPt);
|
|
101
|
-
|
|
102
|
-
// Add (<dx>, <dy>) to every point on this path.
|
|
103
|
-
void offset(SplashCoord dx, SplashCoord dy);
|
|
104
|
-
|
|
105
|
-
// Get the points on the path.
|
|
106
|
-
int getLength() { return length; }
|
|
107
|
-
void getPoint(int i, double *x, double *y, unsigned char *f)
|
|
108
|
-
{
|
|
109
|
-
*x = pts[i].x;
|
|
110
|
-
*y = pts[i].y;
|
|
111
|
-
*f = flags[i];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Get the current point.
|
|
115
|
-
bool getCurPt(SplashCoord *x, SplashCoord *y);
|
|
116
|
-
|
|
117
|
-
// Reserve space for at least n points
|
|
118
|
-
void reserve(int n);
|
|
119
|
-
|
|
120
|
-
protected:
|
|
121
|
-
void grow(int nPts);
|
|
122
|
-
bool noCurrentPoint() { return curSubpath == length; }
|
|
123
|
-
bool onePointSubpath() { return curSubpath == length - 1; }
|
|
124
|
-
bool openSubpath() { return curSubpath < length - 1; }
|
|
125
|
-
|
|
126
|
-
SplashPathPoint *pts; // array of points
|
|
127
|
-
unsigned char *flags; // array of flags
|
|
128
|
-
int length, size; // length/size of the pts and flags arrays
|
|
129
|
-
int curSubpath; // index of first point in last subpath
|
|
130
|
-
|
|
131
|
-
SplashPathHint *hints; // list of hints
|
|
132
|
-
int hintsLength, hintsSize;
|
|
133
|
-
|
|
134
|
-
friend class SplashXPath;
|
|
135
|
-
friend class Splash;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
#endif
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
//========================================================================
|
|
2
|
-
//
|
|
3
|
-
// SplashPattern.h
|
|
4
|
-
//
|
|
5
|
-
//========================================================================
|
|
6
|
-
|
|
7
|
-
//========================================================================
|
|
8
|
-
//
|
|
9
|
-
// Modified under the Poppler project - http://poppler.freedesktop.org
|
|
10
|
-
//
|
|
11
|
-
// All changes made under the Poppler project to this file are licensed
|
|
12
|
-
// under GPL version 2 or later
|
|
13
|
-
//
|
|
14
|
-
// Copyright (C) 2010, 2011, 2014 Thomas Freitag <Thomas.Freitag@alfa.de>
|
|
15
|
-
// Copyright (C) 2018, 2020, 2021 Albert Astals Cid <aacid@kde.org>
|
|
16
|
-
//
|
|
17
|
-
// To see a description of the changes please see the Changelog file that
|
|
18
|
-
// came with your tarball or type make ChangeLog if you are building from git
|
|
19
|
-
//
|
|
20
|
-
//========================================================================
|
|
21
|
-
|
|
22
|
-
#ifndef SPLASHPATTERN_H
|
|
23
|
-
#define SPLASHPATTERN_H
|
|
24
|
-
|
|
25
|
-
#include "SplashTypes.h"
|
|
26
|
-
#include "poppler_private_export.h"
|
|
27
|
-
|
|
28
|
-
class SplashScreen;
|
|
29
|
-
|
|
30
|
-
//------------------------------------------------------------------------
|
|
31
|
-
// SplashPattern
|
|
32
|
-
//------------------------------------------------------------------------
|
|
33
|
-
|
|
34
|
-
class SplashPattern
|
|
35
|
-
{
|
|
36
|
-
public:
|
|
37
|
-
SplashPattern();
|
|
38
|
-
|
|
39
|
-
virtual SplashPattern *copy() const = 0;
|
|
40
|
-
|
|
41
|
-
virtual ~SplashPattern();
|
|
42
|
-
|
|
43
|
-
SplashPattern(const SplashPattern &) = delete;
|
|
44
|
-
SplashPattern &operator=(const SplashPattern &) = delete;
|
|
45
|
-
|
|
46
|
-
// Return the color value for a specific pixel.
|
|
47
|
-
virtual bool getColor(int x, int y, SplashColorPtr c) = 0;
|
|
48
|
-
|
|
49
|
-
// Test if x,y-position is inside pattern.
|
|
50
|
-
virtual bool testPosition(int x, int y) = 0;
|
|
51
|
-
|
|
52
|
-
// Returns true if this pattern object will return the same color
|
|
53
|
-
// value for all pixels.
|
|
54
|
-
virtual bool isStatic() = 0;
|
|
55
|
-
|
|
56
|
-
// Returns true if this pattern colorspace is CMYK.
|
|
57
|
-
virtual bool isCMYK() = 0;
|
|
58
|
-
|
|
59
|
-
private:
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
//------------------------------------------------------------------------
|
|
63
|
-
// SplashSolidColor
|
|
64
|
-
//------------------------------------------------------------------------
|
|
65
|
-
|
|
66
|
-
class POPPLER_PRIVATE_EXPORT SplashSolidColor : public SplashPattern
|
|
67
|
-
{
|
|
68
|
-
public:
|
|
69
|
-
explicit SplashSolidColor(SplashColorConstPtr colorA);
|
|
70
|
-
|
|
71
|
-
SplashPattern *copy() const override { return new SplashSolidColor(color); }
|
|
72
|
-
|
|
73
|
-
~SplashSolidColor() override;
|
|
74
|
-
|
|
75
|
-
bool getColor(int x, int y, SplashColorPtr c) override;
|
|
76
|
-
|
|
77
|
-
bool testPosition(int x, int y) override { return false; }
|
|
78
|
-
|
|
79
|
-
bool isStatic() override { return true; }
|
|
80
|
-
|
|
81
|
-
bool isCMYK() override { return false; }
|
|
82
|
-
|
|
83
|
-
private:
|
|
84
|
-
SplashColor color;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
//------------------------------------------------------------------------
|
|
88
|
-
// SplashGouraudColor (needed for gouraudTriangleShadedFill)
|
|
89
|
-
//------------------------------------------------------------------------
|
|
90
|
-
|
|
91
|
-
class SplashGouraudColor : public SplashPattern
|
|
92
|
-
{
|
|
93
|
-
public:
|
|
94
|
-
~SplashGouraudColor() override;
|
|
95
|
-
|
|
96
|
-
virtual bool isParameterized() = 0;
|
|
97
|
-
|
|
98
|
-
virtual int getNTriangles() = 0;
|
|
99
|
-
|
|
100
|
-
virtual void getParametrizedTriangle(int i, double *x0, double *y0, double *color0, double *x1, double *y1, double *color1, double *x2, double *y2, double *color2) = 0;
|
|
101
|
-
|
|
102
|
-
virtual void getNonParametrizedTriangle(int i, SplashColorMode mode, double *x0, double *y0, SplashColorPtr color0, double *x1, double *y1, SplashColorPtr color1, double *x2, double *y2, SplashColorPtr color2) = 0;
|
|
103
|
-
|
|
104
|
-
virtual void getParameterizedColor(double t, SplashColorMode mode, SplashColorPtr c) = 0;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
#endif
|