![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "testing/helpers/write.h"#include <limits.h>#include <sstream>#include <string>#include <utility>#include <vector>#include "core/fxcrt/notreached.h"#include "public/cpp/fpdf_scopers.h"#include "public/fpdf_annot.h"#include "public/fpdf_attachment.h"#include "public/fpdf_edit.h"#include "public/fpdf_thumbnail.h"#include "testing/fx_string_testhelpers.h"#include "testing/image_diff/image_diff_png.h"Go to the source code of this file.
Enumerations | |
| enum class | ThumbnailDecodeType { kBitmap , kRawStream , kDecodedStream , kBitmap , kRawStream , kDecodedStream } |
| enum class | ThumbnailDecodeType { kBitmap , kRawStream , kDecodedStream , kBitmap , kRawStream , kDecodedStream } |
Functions | |
| std::string | WritePpm (const char *pdf_name, int num, void *buffer_void, int stride, int width, int height) |
| void | WriteText (FPDF_TEXTPAGE textpage, const char *pdf_name, int num) |
| void | WriteAnnot (FPDF_PAGE page, const char *pdf_name, int num) |
| std::string | WritePng (const char *pdf_name, int num, void *buffer, int stride, int width, int height) |
| bool | GetThumbnailFilename (char *name_buf, size_t name_buf_size, const char *pdf_name, int page_num, ThumbnailDecodeType decode_type) |
| void | WriteBufferToFile (const void *buf, size_t buflen, const char *filename, const char *filetype) |
| std::vector< uint8_t > | EncodeBitmapToPng (ScopedFPDFBitmap bitmap) |
| void | WriteAttachments (FPDF_DOCUMENT doc, const std::string &name) |
| void | WriteImages (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 | WriteDecodedThumbnailStream (FPDF_PAGE page, const char *pdf_name, int page_num) |
| void | WriteRawThumbnailStream (FPDF_PAGE page, const char *pdf_name, int page_num) |
| void | WriteThumbnail (FPDF_PAGE page, const char *pdf_name, int page_num) |
|
strong |
|
strong |
| std::vector< uint8_t > EncodeBitmapToPng | ( | ScopedFPDFBitmap | bitmap | ) |
| bool GetThumbnailFilename | ( | char * | name_buf, |
| size_t | name_buf_size, | ||
| const char * | pdf_name, | ||
| int | page_num, | ||
| ThumbnailDecodeType | decode_type ) |
Definition at line 644 of file write.cc.
References kBitmap, kDecodedStream, and kRawStream.
Definition at line 339 of file write.cc.
References FPDFANNOT_COLORTYPE_Color, FPDFANNOT_COLORTYPE_InteriorColor, FPDFPage_GetAnnot(), and FPDFPage_GetAnnotCount().
| void WriteAttachments | ( | FPDF_DOCUMENT | doc, |
| const std::string & | name ) |
Definition at line 714 of file write.cc.
References FPDFAttachment_GetFile(), FPDFAttachment_GetName(), FPDFDoc_GetAttachment(), and FPDFDoc_GetAttachmentCount().
Definition at line 838 of file write.cc.
References FPDFPage_GetDecodedThumbnailData().
Definition at line 769 of file write.cc.
References FPDFImageObj_GetBitmap(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
| std::string WritePng | ( | const char * | pdf_name, |
| int | num, | ||
| void * | buffer, | ||
| int | stride, | ||
| int | width, | ||
| int | height ) |
| std::string WritePpm | ( | const char * | pdf_name, |
| int | num, | ||
| void * | buffer_void, | ||
| int | stride, | ||
| int | width, | ||
| int | height ) |
Definition at line 868 of file write.cc.
References FPDFPage_GetRawThumbnailData().
| void WriteRenderedImages | ( | FPDF_DOCUMENT | doc, |
| FPDF_PAGE | page, | ||
| const char * | pdf_name, | ||
| int | page_num ) |
Definition at line 802 of file write.cc.
References FPDFImageObj_GetRenderedBitmap(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
| void WriteText | ( | FPDF_TEXTPAGE | textpage, |
| const char * | pdf_name, | ||
| int | num ) |
Definition at line 310 of file write.cc.
References FPDFText_CountChars(), and FPDFText_GetUnicode().
Definition at line 896 of file write.cc.
References FPDFPage_GetThumbnailAsBitmap().