11#include <podofo/auxiliary/InputDevice.h>
12#include "PdfStatefulEncrypt.h"
20enum class PdfPostScriptLanguageLevel : uint8_t
26struct PODOFO_API PdfTokenizerOptions final
28 PdfPostScriptLanguageLevel LanguageLevel = PdfPostScriptLanguageLevel::L2;
29 bool ReadReferences =
true;
41 static constexpr unsigned BufferSize = 4096;
104 enum class PdfLiteralDataType : uint8_t
142 void EnqueueToken(
const std::string_view&
token, PdfTokenType
type);
198 using TokenizerPair = std::pair<std::string, PdfTokenType>;
199 using TokenizerQueque = std::deque<TokenizerPair>;
202 std::shared_ptr<charbuff> m_buffer;
203 PdfTokenizerOptions m_options;
204 TokenizerQueque m_tokenQueque;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
This class is a parser for general PostScript content in PDF documents.
Definition PdfPostScriptTokenizer.h:30
A simple tokenizer for PDF files and PDF content streams.
Definition PdfTokenizer.h:36
bool TryReadNextToken(InputStreamDevice &device, std::string_view &token)
Reads the next token from the current file position ignoring all comments.
bool TryPeekNextToken(InputStreamDevice &device, std::string_view &token)
Try peek the next token from the current file position ignoring all comments, without actually consum...
void ReadNextVariant(InputStreamDevice &device, const std::string_view &token, PdfTokenType tokenType, PdfVariant &variant, const PdfStatefulEncrypt *encrypt)
Read the next variant from the current file position ignoring all comments.
A variant data type which supports all data types supported by the PDF standard.
Definition PdfVariant.h:33
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16