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;
40 static constexpr unsigned BufferSize = 4096;
103 enum class PdfLiteralDataType : uint8_t
141 void EnqueueToken(
const std::string_view&
token, PdfTokenType
type);
196 using TokenizerPair = std::pair<std::string, PdfTokenType>;
197 using TokenizerQueque = std::deque<TokenizerPair>;
200 std::shared_ptr<charbuff> m_buffer;
201 PdfTokenizerOptions m_options;
202 TokenizerQueque m_tokenQueque;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
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