//======================================================================== // // FileDescriptorPDFDocBuilder.h // // This file is licensed under the GPLv2 or later // // Copyright 2010 Hib Eris // Copyright 2010, 2018, 2022 Albert Astals Cid // Copyright 2021 Oliver Sander // Copyright 2021 Christian Persch // //======================================================================== #ifndef FDPDFDOCBUILDER_H #define FDPDFDOCBUILDER_H #include "PDFDocBuilder.h" //------------------------------------------------------------------------ // FileDescriptorPDFDocBuilder // // The FileDescriptorPDFDocBuilder implements a PDFDocBuilder that read from a file descriptor. //------------------------------------------------------------------------ class FileDescriptorPDFDocBuilder : public PDFDocBuilder { public: std::unique_ptr buildPDFDoc(const GooString &uri, const std::optional &ownerPassword = {}, const std::optional &userPassword = {}, void *guiDataA = nullptr) override; bool supports(const GooString &uri) override; private: int parseFdFromUri(const GooString &uri); }; #endif /* FDPDFDOCBUILDER_H */