Foxit PDF SDK
fs_vectorgraphics.h
浏览该文件的文档.
1 
14 #ifndef FS_VECTORGRAPHICS_H_
15 #define FS_VECTORGRAPHICS_H_
16 
17 #include "common/fs_common.h"
18 #if defined(_WIN32) || defined(_WIN64) || (_FX_OS_ == _FX_MACOSX_) || (defined(__linux__) && defined(__x86_64__) && !defined(__ANDROID__))
19 
25 namespace foxit {
29 namespace addon {
33 namespace vectorgraphics {
48 class VectorGraphics FS_FINAL : public Base {
49  public:
64  static void Initialize(const wchar_t* library_path);
65 
73  static void Release();
74 
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);
97 
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);
120 
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);
143 
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);
166 
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);
189 
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);
211 
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);
234 
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);
257 };
258 } // namespace vectorgraphics
259 } // namespace addon
260 } // namespace foxit
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()
释放矢量图形模块分配的所有资源。