14 #ifndef FS_VECTORGRAPHICS_H_ 15 #define FS_VECTORGRAPHICS_H_ 18 #if defined(_WIN32) || defined(_WIN64) || (_FX_OS_ == _FX_MACOSX_) || (defined(__linux__) && defined(__x86_64__) && !defined(__ANDROID__)) 33 namespace vectorgraphics {
64 static void Initialize(
const wchar_t* library_path);
95 static void InsertSVGToPage(
const wchar_t* pdf_path,
const wchar_t* svg_path,
const wchar_t* out_pdf_path,
96 int page_index,
float x,
float y,
float width,
float height,
int dpi);
118 static void InsertSVGToPage(
const char* pdf_path,
const char* svg_path,
const char* out_pdf_path,
119 int page_index,
float x,
float y,
float width,
float height,
int dpi);
141 static void InsertSVGToPDF(
const wchar_t* pdf_path,
const wchar_t* svg_path,
const wchar_t* out_pdf_path,
142 int page_index,
float page_width_pt,
float page_height_pt,
int dpi);
164 static void InsertSVGToPDF(
const char* pdf_path,
const char* svg_path,
const char* out_pdf_path,
165 int page_index,
float page_width_pt,
float page_height_pt,
int dpi);
187 static void InsertWMFToPage(
const wchar_t* pdf_path,
const wchar_t* wmf_path,
const wchar_t* out_pdf_path,
188 int page_index,
float x,
float y,
float width,
float height,
int dpi);
209 static void InsertWMFToPage(
const char* pdf_path,
const char* wmf_path,
const char* out_pdf_path,
210 int page_index,
float x,
float y,
float width,
float height,
int dpi);
232 static void InsertWMFToPDF(
const wchar_t* pdf_path,
const wchar_t* wmf_path,
const wchar_t* out_pdf_path,
233 int page_index,
float page_width_pt,
float page_height_pt,
int dpi);
255 static void InsertWMFToPDF(
const char* pdf_path,
const char* wmf_path,
const char* out_pdf_path,
256 int page_index,
float page_width_pt,
float page_height_pt,
int dpi);
261 #endif // platform guard 262 #endif // FS_VECTORGRAPHICS_H_ static void InsertSVGToPDF(const wchar_t *pdf_path, const wchar_t *svg_path, const wchar_t *out_pdf_path, int page_index, float page_width_pt, float page_height_pt, int dpi)
将 SVG 文件作为新页面插入 PDF 文档。
static void InsertWMFToPDF(const wchar_t *pdf_path, const wchar_t *wmf_path, const wchar_t *out_pdf_path, int page_index, float page_width_pt, float page_height_pt, int dpi)
将 WMF/EMF 文件作为新页面插入 PDF 文档。
用于将矢量图形(SVG、WMF/EMF)插入 PDF 文件的类。
Definition: fs_vectorgraphics.h:48
static void InsertWMFToPage(const wchar_t *pdf_path, const wchar_t *wmf_path, const wchar_t *out_pdf_path, int page_index, float x, float y, float width, float height, int dpi)
将 WMF/EMF 文件插入已有 PDF 页面的指定矩形区域。
static void Initialize(const wchar_t *library_path)
通过加载 fxvectorgraphics 共享库来初始化矢量图形模块。
Definition: fs_basictypes.h:471
Foxit命名空间。
Definition: fs_pdf3d.h:26
static void InsertSVGToPage(const wchar_t *pdf_path, const wchar_t *svg_path, const wchar_t *out_pdf_path, int page_index, float x, float y, float width, float height, int dpi)
将 SVG 文件插入已有 PDF 页面的指定矩形区域。
static void Release()
释放矢量图形模块分配的所有资源。