LibreOffice Module sdext (master) 1
Typedefs | Functions | Variables
pdfunzip.cxx File Reference
#include <stdio.h>
#include <string_view>
#include <sal/main.h>
#include <osl/file.h>
#include <osl/thread.h>
#include <rtl/alloc.h>
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
#include <o3tl/string_view.hxx>
#include <pdfparse.hxx>
Include dependency graph for pdfunzip.cxx:

Go to the source code of this file.

Typedefs

typedef int(* PDFFileHdl) (const char *, const char *, PDFFile *)
 

Functions

static void printHelp (const char *pExe)
 
static int handleFile (const char *pInFile, const char *pOutFile, const char *pPassword, PDFFileHdl pHdl)
 
static int write_unzipFile (const char *pInFile, const char *pOutFile, PDFFile *pPDFFile)
 
static int write_addStreamArray (const char *pOutFile, PDFArray *pStreams, PDFFile *pPDFFile, const char *pInFile)
 
static int write_addStreams (const char *pInFile, const char *pOutFile, PDFFile *pPDFFile)
 
static int write_fonts (const char *i_pInFile, const char *i_pOutFile, PDFFile *i_pPDFFile)
 
static int write_objects (const char *i_pInFile, const char *i_pOutFile, PDFFile *i_pPDFFile)
 
 SAL_IMPLEMENT_MAIN_WITH_ARGS (argc, argv)
 

Variables

static std::vector< std::pair< sal_Int32, sal_Int32 > > s_aEmitObjects
 

Typedef Documentation

◆ PDFFileHdl

typedef int(* PDFFileHdl) (const char *, const char *, PDFFile *)

Definition at line 222 of file pdfunzip.cxx.

Function Documentation

◆ handleFile()

static int handleFile ( const char *  pInFile,
const char *  pOutFile,
const char *  pPassword,
PDFFileHdl  pHdl 
)
static

◆ printHelp()

static void printHelp ( const char *  pExe)
static

Definition at line 37 of file pdfunzip.cxx.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ SAL_IMPLEMENT_MAIN_WITH_ARGS()

SAL_IMPLEMENT_MAIN_WITH_ARGS ( argc  ,
argv   
)

◆ write_addStreamArray()

static int write_addStreamArray ( const char *  pOutFile,
PDFArray pStreams,
PDFFile pPDFFile,
const char *  pInFile 
)
static

◆ write_addStreams()

static int write_addStreams ( const char *  pInFile,
const char *  pOutFile,
PDFFile pPDFFile 
)
static

◆ write_fonts()

static int write_fonts ( const char *  i_pInFile,
const char *  i_pOutFile,
PDFFile i_pPDFFile 
)
static

◆ write_objects()

static int write_objects ( const char *  i_pInFile,
const char *  i_pOutFile,
PDFFile i_pPDFFile 
)
static

◆ write_unzipFile()

static int write_unzipFile ( const char *  pInFile,
const char *  pOutFile,
PDFFile pPDFFile 
)
static

Variable Documentation

◆ s_aEmitObjects

std::vector< std::pair< sal_Int32, sal_Int32 > > s_aEmitObjects
static

Definition at line 399 of file pdfunzip.cxx.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS(), and write_objects().