mupdf
Loading...
Searching...
No Matches
clean.h File Reference
Include dependency graph for clean.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pdf_clean_options

Enumerations

enum  pdf_clean_options_structure { PDF_CLEAN_STRUCTURE_DROP = 0 , PDF_CLEAN_STRUCTURE_KEEP = 1 }
enum  pdf_clean_options_vectorize { PDF_CLEAN_VECTORIZE_NO = 0 , PDF_CLEAN_VECTORIZE_YES = 1 }

Functions

void pdf_clean_file (fz_context *ctx, char *infile, char *outfile, char *password, pdf_clean_options *opts, int retainlen, char *retainlist[])
void pdf_rearrange_pages (fz_context *ctx, pdf_document *doc, int count, const int *pages, pdf_clean_options_structure structure)
void pdf_vectorize_pages (fz_context *ctx, pdf_document *doc, int count, const int *new_page_list, pdf_clean_options_vectorize vectorize)

Enumeration Type Documentation

◆ pdf_clean_options_structure

Specifies whether the PDF's structure tree should be dropped or kept when rearranging or subsetting its pages.

PDF_CLEAN_STRUCTURE_DROP: Remove the structure tree entirely.

PDF_CLEAN_STRUCTURE_KEEP: Preserve the structure tree. When redacting a document, preserving the structure tree might leak information.

Enumerator
PDF_CLEAN_STRUCTURE_DROP 
PDF_CLEAN_STRUCTURE_KEEP 

◆ pdf_clean_options_vectorize

Enumerator
PDF_CLEAN_VECTORIZE_NO 
PDF_CLEAN_VECTORIZE_YES 

Function Documentation

◆ pdf_clean_file()

void pdf_clean_file ( fz_context * ctx,
char * infile,
char * outfile,
char * password,
pdf_clean_options * opts,
int retainlen,
char * retainlist[] )

◆ pdf_rearrange_pages()

void pdf_rearrange_pages ( fz_context * ctx,
pdf_document * doc,
int count,
const int * pages,
pdf_clean_options_structure structure )

◆ pdf_vectorize_pages()

void pdf_vectorize_pages ( fz_context * ctx,
pdf_document * doc,
int count,
const int * new_page_list,
pdf_clean_options_vectorize vectorize )