Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-10 10:23:45

0001 //========================================================================
0002 //
0003 // FileDescriptorPDFDocBuilder.h
0004 //
0005 // This file is licensed under the GPLv2 or later
0006 //
0007 // Copyright 2010 Hib Eris <hib@hiberis.nl>
0008 // Copyright 2010, 2018, 2022 Albert Astals Cid <aacid@kde.org>
0009 // Copyright 2021 Oliver Sander <oliver.sander@tu-dresden.de>
0010 // Copyright 2021 Christian Persch <chpe@src.gnome.org>
0011 //
0012 //========================================================================
0013 
0014 #ifndef FDPDFDOCBUILDER_H
0015 #define FDPDFDOCBUILDER_H
0016 
0017 #include "PDFDocBuilder.h"
0018 
0019 //------------------------------------------------------------------------
0020 // FileDescriptorPDFDocBuilder
0021 //
0022 // The FileDescriptorPDFDocBuilder implements a PDFDocBuilder that read from a file descriptor.
0023 //------------------------------------------------------------------------
0024 
0025 class FileDescriptorPDFDocBuilder : public PDFDocBuilder
0026 {
0027 
0028 public:
0029     std::unique_ptr<PDFDoc> buildPDFDoc(const GooString &uri, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr) override;
0030     bool supports(const GooString &uri) override;
0031 
0032 private:
0033     int parseFdFromUri(const GooString &uri);
0034 };
0035 
0036 #endif /* FDPDFDOCBUILDER_H */