5#ifndef SAMPLES_HELPERS_WRITE_H_
6#define SAMPLES_HELPERS_WRITE_H_
11#include "public/fpdfview.h"
24void WriteText(FPDF_TEXTPAGE textpage,
const char* pdf_name,
int num);
25void WriteAnnot(FPDF_PAGE page,
const char* pdf_name,
int num);
34std::string WriteBmp(
const char* pdf_name,
40void WriteEmf(FPDF_PAGE page,
const char* pdf_name,
int num);
41void WritePS(FPDF_PAGE page,
const char* pdf_name,
int num);
45std::unique_ptr<SkWStream> WriteToSkWStream(
const std::string& pdf_name,
47 const std::string& extension);
48std::unique_ptr<SkWStream> WriteToSkWStream(
const std::string& pdf_name,
50 const std::string& extension,
51 std::string& filename);
52std::string WriteSkp(
const char* pdf_name,
int num,
const SkPicture& picture);
56void WriteImages(FPDF_PAGE page,
const char* pdf_name,
int page_num);
67void WriteThumbnail(FPDF_PAGE page,
const char* pdf_name,
int page_num);
#define FPDF_ANNOT_FILEATTACHMENT
#define FPDF_ANNOT_RICHMEDIA
#define FPDF_ANNOT_FLAG_INVISIBLE
#define FPDF_ANNOT_FLAG_NOROTATE
#define FPDF_ANNOT_FLAG_NOZOOM
#define FPDF_ANNOT_FLAG_HIDDEN
#define FPDF_ANNOT_FLAG_PRINT
#define FPDF_ANNOT_THREED
#define FPDF_ANNOT_STRIKEOUT
#define FPDF_ANNOT_UNDERLINE
#define FPDF_ANNOT_SCREEN
#define FPDF_ANNOT_FLAG_READONLY
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotCount(FPDF_PAGE page)
#define FPDF_ANNOT_WATERMARK
#define FPDF_ANNOT_XFAWIDGET
#define FPDF_ANNOT_WIDGET
#define FPDF_ANNOT_HIGHLIGHT
#define FPDF_ANNOT_TRAPNET
#define FPDF_ANNOT_SQUIGGLY
#define FPDF_ANNOT_FLAG_LOCKED
#define FPDF_ANNOT_SQUARE
#define FPDF_ANNOT_FREETEXT
#define FPDF_ANNOT_FLAG_NOVIEW
#define FPDF_ANNOT_POLYGON
@ FPDFANNOT_COLORTYPE_InteriorColor
@ FPDFANNOT_COLORTYPE_Color
#define FPDF_ANNOT_FLAG_TOGGLENOVIEW
#define FPDF_ANNOT_CIRCLE
#define FPDF_ANNOT_PRINTERMARK
#define FPDF_ANNOT_POLYLINE
FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetAttachmentCount(FPDF_DOCUMENT document)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetName(FPDF_ATTACHMENT attachment, FPDF_WCHAR *buffer, unsigned long buflen)
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_GetAttachment(FPDF_DOCUMENT document, int index)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_GetFile(FPDF_ATTACHMENT attachment, void *buffer, unsigned long buflen, unsigned long *out_buflen)
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPage_GetObject(FPDF_PAGE page, int index)
FPDF_EXPORT int FPDF_CALLCONV FPDFPageObj_GetType(FPDF_PAGEOBJECT page_object)
#define FPDF_PAGEOBJ_PATH
#define FPDF_PAGEOBJ_TEXT
#define FPDF_PAGEOBJ_SHADING
#define FPDF_PAGEOBJ_IMAGE
#define FPDF_PAGEOBJ_FORM
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_CountObjects(FPDF_PAGE page)
FPDF_EXPORT int FPDF_CALLCONV FPDFText_CountChars(FPDF_TEXTPAGE text_page)
FPDF_EXPORT unsigned int FPDF_CALLCONV FPDFText_GetUnicode(FPDF_TEXTPAGE text_page, int index)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFPage_GetRawThumbnailData(FPDF_PAGE page, void *buffer, unsigned long buflen)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFPage_GetDecodedThumbnailData(FPDF_PAGE page, void *buffer, unsigned long buflen)
#define FPDFBitmap_Unknown
bool GetThumbnailFilename(char *name_buf, size_t name_buf_size, const char *pdf_name, int page_num, ThumbnailDecodeType decode_type)
void WriteDecodedThumbnailStream(FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteRenderedImages(FPDF_DOCUMENT doc, FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteBufferToFile(const void *buf, size_t buflen, const char *filename, const char *filetype)
void WriteRawThumbnailStream(FPDF_PAGE page, const char *pdf_name, int page_num)
std::vector< uint8_t > EncodeBitmapToPng(ScopedFPDFBitmap bitmap)
void WriteAnnot(FPDF_PAGE page, const char *pdf_name, int num)
void WriteImages(FPDF_PAGE page, const char *pdf_name, int page_num)
std::string WritePng(const char *pdf_name, int num, void *buffer, int stride, int width, int height)
void WriteThumbnail(FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteText(FPDF_TEXTPAGE textpage, const char *pdf_name, int num)
std::string WritePpm(const char *pdf_name, int num, void *buffer_void, int stride, int width, int height)
void WriteAttachments(FPDF_DOCUMENT doc, const std::string &name)