All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Convert.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2026 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFConvert
6 #define PDFTRON_H_CPPPDFConvert
7 
8 #include <PDF/PDFDoc.h>
9 #include <PDF/Page.h>
10 #include <PDF/PDFRasterizer.h>
11 #include <PDF/DocumentConversion.h>
12 #include <PDF/TemplateDocument.h>
13 #include <PDF/WordToPDFOptions.h>
14 #include <PDF/CADConvertOptions.h>
16 #include <PDF/SVGConvertOptions.h>
17 #include <PDF/Reflow.h>
18 #include <C/PDF/TRN_Convert.h>
19 #include <SDF/Obj.h>
20 #include <SDF/ObjSet.h>
21 
22 namespace pdftron{
23  namespace PDF {
24 
26 // Experimental - Developer use only
28 {
29 public:
30  bool Next();
31  bool Ready();
32  UInt32 Progress();
35  void Destroy();
39 
43  operator bool () { return mp_impl!=0;}
44 #ifndef SWIGHIDDEN
45  TRN_ConversionMonitor mp_impl;
46  ConversionMonitor(TRN_ConversionMonitor impl, bool is_owner);
47  bool m_owner;
48 #endif
49 };
51 
52 class XPSOutputOptions;
53 class XODOutputOptions;
54 class HTMLOutputOptions;
55 class WordOutputOptions;
56 class ExcelOutputOptions;
58 class EPUBOutputOptions;
59 class SVGOutputOptions;
60 class TiffOutputOptions;
61 class Printer;
106 class Convert
107 {
108 public:
119 
131  };
132 
133  enum FlattenFlag {
151 
158  };
159 
169  static void FromXps(PDFDoc & in_pdfdoc, const UString & in_filename);
170 
182  static void FromXps(PDFDoc & in_pdfdoc, const char* buf, size_t buf_sz);
183 
194  static void FromEmf(PDFDoc & in_pdfdoc, const UString & in_filename);
195 
220  static void FromText(PDFDoc & in_pdfdoc, const UString& in_filename, const SDF::Obj& in_options = SDF::Obj());
221 
231  static void ToEmf(PDFDoc & in_pdfdoc, const UString & in_filename);
232 
242  static void ToEmf(Page & in_page, const UString & in_filename);
243 
244 
254  static void ToSvg(PDFDoc & in_pdfdoc, const UString & in_filename, const SVGOutputOptions& in_options);
255 
263  static void ToSvg(PDFDoc & in_pdfdoc, const UString & in_filename);
264 
274  static void ToSvg(Page & in_page, const UString & in_filename, const SVGOutputOptions& in_options);
275 
283  static void ToSvg(Page & in_page, const UString & in_filename);
284 
297  static void ToXps(PDFDoc & in_pdfdoc, const UString & in_filename, const XPSOutputOptions& options);
298 
307  static void ToXps(PDFDoc & in_pdfdoc, const UString & in_filename);
308 
325  static void ToXps(const UString & in_inputFilename, const UString & in_outputFilename, const XPSOutputOptions& options);
326 
339  static void ToXps(const UString & in_inputFilename, const UString & in_outputFilename);
340 
357  static void ToXod(const UString & in_filename, const UString & out_filename, const XODOutputOptions& options);
358 
371  static void ToXod(const UString & in_filename, const UString & out_filename);
372 
387  static void ToXod(PDFDoc & in_pdfdoc, const UString & out_filename, const XODOutputOptions& options);
388 
399  static void ToXod(PDFDoc & in_pdfdoc, const UString & out_filename);
400 
422  static void ToHtml(const UString & in_filename, const UString & out_path, const HTMLOutputOptions& options);
423 
437  static void ToHtml(const UString & in_filename, const UString & out_path);
438 
439 
448  static UString PageToHtml(const Page & page);
449 
450  static UString PageToHtmlZoned(const Page & page, const UString & json_zones);
451 
470  static void ToHtml(PDFDoc & in_pdfdoc, const UString & out_path, const HTMLOutputOptions& options);
471 
482  static void ToHtml(PDFDoc & in_pdfdoc, const UString & out_path);
483 
499  static void ToWord(const UString & in_filename, const UString & out_path, const WordOutputOptions& options);
500 
512  static void ToWord(const UString & in_filename, const UString & out_path);
513 
525  static void ToWord(PDFDoc& in_pdfdoc, Filters::Filter& out_filter);
526 
540  static void ToWord(PDFDoc& in_pdfdoc, Filters::Filter& out_filter, const WordOutputOptions& options);
541 
559  static void ToWord(PDFDoc & in_pdfdoc, const UString & out_path, const WordOutputOptions& options);
560 
574  static void ToWord(PDFDoc & in_pdfdoc, const UString & out_path);
575 
591  static void ToExcel(const UString& in_filename, const UString& out_path, const ExcelOutputOptions& options);
592 
604  static void ToExcel(const UString& in_filename, const UString& out_path);
605 
623  static void ToExcel(PDFDoc& in_pdfdoc, const UString& out_path, const ExcelOutputOptions& options);
624 
638  static void ToExcel(PDFDoc& in_pdfdoc, const UString& out_path);
639 
653  static void ToExcel(PDFDoc& in_pdfdoc, Filters::Filter& out_filter);
654 
670  static void ToExcel(PDFDoc& in_pdfdoc, Filters::Filter& out_filter, const ExcelOutputOptions& options);
671 
687  static void ToPowerPoint(const UString& in_filename, const UString& out_path, const PowerPointOutputOptions& options);
688 
700  static void ToPowerPoint(const UString& in_filename, const UString& out_path);
701 
719  static void ToPowerPoint(PDFDoc& in_pdfdoc, const UString& out_path, const PowerPointOutputOptions& options);
720 
734  static void ToPowerPoint(PDFDoc& in_pdfdoc, const UString& out_path);
735 
749  static void ToPowerPoint(PDFDoc& in_pdfdoc, Filters::Filter& out_filter);
750 
768  static void ToPowerPoint(PDFDoc& in_pdfdoc, Filters::Filter& out_filter, const PowerPointOutputOptions& options);
769 
790  static void ToEpub(const UString & in_filename, const UString & out_path, const HTMLOutputOptions& html_options, const EPUBOutputOptions& epub_options);
791 
808  static void ToEpub(const UString & in_filename, const UString & out_path, const HTMLOutputOptions& html_options);
809 
822  static void ToEpub(const UString & in_filename, const UString & out_path);
823 
842  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path, const HTMLOutputOptions& html_options, const EPUBOutputOptions& epub_options);
843 
858  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path, const HTMLOutputOptions& html_options);
859 
870  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path);
871 
884  static void ToTiff(const UString & in_filename, const UString & out_path, const TiffOutputOptions& options);
885 
894  static void ToTiff(const UString & in_filename, const UString & out_path);
895 
908  static void ToTiff(PDFDoc & in_pdfdoc, const UString & out_path, const TiffOutputOptions& options);
909 
918  static void ToTiff(PDFDoc & in_pdfdoc, const UString & out_path);
919 
932  static void ToTiff(const UString & in_filename, Filters::Filter& out_filter, const TiffOutputOptions& options);
933 
942  static void ToTiff(const UString & in_filename, Filters::Filter& out_filter);
943 
956  static void ToTiff(PDFDoc & in_pdfdoc, Filters::Filter& out_filter, const TiffOutputOptions& options);
957 
966  static void ToTiff(PDFDoc & in_pdfdoc, Filters::Filter& out_filter);
967 
984  static Filters::Filter ToXod(const UString & in_filename, const XODOutputOptions& options);
985 
998  static Filters::Filter ToXod(const UString & in_filename);
999 
1014  static Filters::Filter ToXod(PDFDoc & in_pdfdoc, const XODOutputOptions& options);
1015 
1026  static Filters::Filter ToXod(PDFDoc & in_pdfdoc);
1028  // Experimental - Developer use only
1029  static ConversionMonitor ToXodWithMonitor(PDFDoc & in_pdfdoc, const XODOutputOptions& options);
1030  static ConversionMonitor ToXodWithMonitor(PDFDoc & in_pdfdoc);
1031 
1032 
1054  static void WordToPDF( PDFDoc & in_pdfdoc, const UString & in_filename, WordToPDFOptions* options);
1055 
1082  static DocumentConversion WordToPDFConversion( PDFDoc & in_pdfdoc, const UString & in_filename, WordToPDFOptions* options);
1083 
1105  static void WordToPDF( PDFDoc & in_pdfdoc, Filters::Filter in_stream, WordToPDFOptions* options);
1106 
1133  static DocumentConversion WordToPDFConversion( PDFDoc & in_pdfdoc, Filters::Filter in_stream, WordToPDFOptions* options);
1134 
1156  static void OfficeToPDF( PDFDoc & in_pdfdoc, const UString & in_filename, ConversionOptions* options);
1157 
1183  static DocumentConversion StreamingPDFConversion( PDFDoc & in_pdfdoc, const UString & in_filename, ConversionOptions* options);
1184 
1208  static DocumentConversion StreamingPDFConversion(const UString & in_filename, ConversionOptions* options);
1209 
1210  static Reflow CreateReflow(Page & in_page, const UString & json_zones);
1211 
1233  static void OfficeToPDF( PDFDoc & in_pdfdoc, Filters::Filter in_stream, ConversionOptions* options);
1234 
1260  static DocumentConversion StreamingPDFConversion( PDFDoc & in_pdfdoc, Filters::Filter in_stream, ConversionOptions* options);
1261 
1285  static DocumentConversion StreamingPDFConversion(Filters::Filter in_stream, ConversionOptions* options);
1286 
1306  static void ToPdf(PDFDoc & in_pdfdoc, const UString & in_filename);
1307 
1318  static void FromCAD(PDFDoc& in_pdfdoc, const UString& in_filename, CADConvertOptions* opts = 0);
1319 
1330  static void FromDICOM(PDFDoc& in_pdfdoc, const UString& in_filename, AdvancedImagingConvertOptions* opts = 0);
1331 
1332 
1340  static void FromSVG(PDFDoc& in_pdfdoc, const UString& in_filename, SVGConvertOptions* opts = 0);
1341 
1348  static void FromTiff(PDFDoc& in_pdfdoc, Filters::Filter in_data);
1349 
1373  static TemplateDocument CreateOfficeTemplate(const UString& in_filename, ConversionOptions* options);
1374 
1398  static TemplateDocument CreateOfficeTemplate(Filters::Filter in_stream, ConversionOptions* options);
1399 
1412  static bool RequiresPrinter(const UString & in_filename);
1413 
1414 
1415 private:
1416  Convert ();
1417  ~Convert ();
1418 };
1419 
1424 {
1425 public:
1434  void SetPrintMode(bool print_mode);
1435 
1440  void SetDPI(UInt32 dpi);
1441 
1446  void SetRenderPages(bool render);
1447 
1452  void SetThickenLines(bool thicken);
1453 
1459  void GenerateURLLinks(bool generate);
1460 
1462  {
1466  };
1467 
1476  void SetOverprint(enum OverprintPreviewMode mode);
1477 
1478  TRN_Obj m_obj;
1479 protected:
1480  friend class Convert;
1482 };
1483 
1488 {
1489 public:
1494  void SetOpenXps(bool openxps);
1495 };
1496 
1501 {
1502 public:
1503 
1505  e_internal_xfdf, // include the annotation file in the XOD output. This is the default option
1506  e_external_xfdf, // output the annotation file externally to the same output path with extension .xfdf.
1507  // This is not available when using streaming conversion
1508  e_flatten, // flatten all annotations
1509  e_flatten_except_links, // flatten all annotations that are not link annotations
1510  };
1511 
1516  void SetExtractUsingZorder(bool use_zorder);
1517 
1522  void SetOutputThumbnails(bool include_thumbs);
1523 
1530  void SetThumbnailSize(UInt32 size);
1531 
1539  void SetThumbnailSize(UInt32 regular_size, UInt32 large_size);
1540 
1546  void SetElementLimit(UInt32 element_limit);
1547 
1554  void SetOpacityMaskWorkaround(bool opacity_render);
1555 
1564  void SetMaximumImagePixels(UInt32 max_pixels);
1565 
1572  void SetFlattenContent(enum Convert::FlattenFlag flatten);
1573 
1580 
1586  void SetPreferJPG(bool prefer_jpg);
1587 
1592  void SetJPGQuality(UInt32 quality);
1593 
1599  void SetSilverlightTextWorkaround(bool workaround);
1600 
1605  void SetAnnotationOutput(enum AnnotationOutputFlag annot_output);
1606 
1612  void SetExternalParts(bool generate);
1613 
1619  void SetEncryptPassword(const char* pass);
1620 
1628  void UseSilverlightFlashCompatible(bool compatible);
1629 };
1630 
1635 {
1636 public:
1638  {
1639  e_lang_auto = 0, /* Indicates automatic OCR language detection. */
1640  e_lang_catalan, /* Indicates the Catalan language for OCR. */
1641  e_lang_danish, /* Indicates the Danish language for OCR. */
1642  e_lang_german, /* Indicates the German language for OCR. */
1643  e_lang_english, /* Indicates the English language for OCR. */
1644  e_lang_spanish, /* Indicates the Spanish language for OCR. */
1645  e_lang_finnish, /* Indicates the Finnish language for OCR. */
1646  e_lang_french, /* Indicates the French language for OCR. */
1647  e_lang_italian, /* Indicates the Italian language for OCR. */
1648  e_lang_dutch, /* Indicates the Dutch language for OCR. */
1649  e_lang_norwegian, /* Indicates the Norwegian language for OCR. */
1650  e_lang_portuguese, /* Indicates the Portuguese language for OCR. */
1651  e_lang_polish, /* Indicates the Polish language for OCR. */
1652  e_lang_romanian, /* Indicates the Romanian language for OCR. */
1653  e_lang_russian, /* Indicates the Russian language for OCR. */
1654  e_lang_slovenian, /* Indicates the Slovenian language for OCR. */
1655  e_lang_swedish, /* Indicates the Swedish language for OCR. */
1656  e_lang_turkish /* Indicates the Turkish language for OCR. */
1657  };
1658 
1660  {
1664  };
1665 
1667 
1669 };
1670 
1675 {
1676 public:
1678  {
1679  e_Recover = 0, /* Recover as headers, footers, and/or footnotes. */
1680  e_DoNotDetect, /* Place in the body of the document. */
1681  e_DetectAndRemove /* Remove detected headers, footers, and/or footnotes. */
1682  };
1683 
1685 };
1686 
1691 {
1692 public:
1697 
1703  void SetPreferJPG(bool prefer_jpg);
1704 
1711  void SetJPGQuality(UInt32 quality);
1712 
1719  void SetDPI(UInt32 dpi);
1720 
1730  void SetMaximumImagePixels(UInt32 max_pixels);
1731 
1733  {
1734  e_fixed_position = 0, /* Content uses fixed positioning (default). */
1735  e_reflow_paragraphs, /* Deprecated. Text flows within paragraphs. */
1736  e_reflow_full /* Text flows freely edge-to-edge in a single column. */
1737  };
1738 
1751 
1757  void SetScale(double scale);
1758 
1764  void SetExternalLinks(bool enable);
1765 
1771  void SetInternalLinks(bool enable);
1772 
1778  void SetSimplifyText(bool enable);
1779 
1785  void SetReportFile(const UString& path);
1786 
1793  void SetTitle(const UString& title);
1794 
1802  void SetImageDPI(UInt32 dpi);
1803 
1809  void SetEmbedImages(bool embed);
1810 
1818  void SetFileConversionTimeoutSeconds(int seconds);
1819 
1826  void SetPages(int page_from, int page_to);
1827 
1833  void SetPDFPassword(const UString& password);
1834 
1836  {
1837  e_ocr_image_text = 0, /* Convert both images and pre-existing hidden text from previous OCR. Only applies to e_reflow_paragraphs. */
1838  e_ocr_image, /* Convert images only, ignoring pre-existing text from previous OCR, and do not perform any new OCR. */
1839  e_ocr_text, /* Convert pre-existing text from previous OCR only (e_reflow_paragraphs mode). Perform new OCR on scanned pages (e_reflow_full mode). */
1840  e_ocr_off, /* Convert images only, ignoring pre-existing text from previous OCR, and do not perform any new OCR. */
1841  e_ocr_always /* Perform new OCR on all pages. (e_reflow_full mode). */
1842  };
1843 
1855 
1862  void SetSimpleLists(bool enable);
1863 
1869  void SetConnectHyphens(bool connect);
1870 
1878  void SetDisableVerticalSplit(bool disable);
1879 
1886  void SetNoPageWidth(bool enable);
1887 
1894 
1901 
1908 
1915 
1922 
1929 
1936  void SetTextRecoveryNSE(bool use_ocr);
1937 
1945  void SetCustomOption(const UString& opt_name, const UString& opt_value);
1946 
1954  void SetCustomOption(const UString& opt_name, int opt_value);
1955 
1956 protected:
1957  TRN_Obj m_obj;
1958  friend class Convert;
1960 };
1961 
1966 {
1967 public:
1972 
1974  {
1979  };
1980 
1989 
1995  void SetPages(int page_from, int page_to);
1996 
2001  void SetPDFPassword(const UString& password);
2002 
2004  {
2005  e_ocr_image_text = 0, /* Deprecated. OCR will be performed. */
2006  e_ocr_image, /* Deprecated. OCR will not be performed. */
2007  e_ocr_text, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
2008  e_ocr_off, /* Indicates that OCR will not be performed. */
2009  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
2010  };
2011 
2019 
2025  void SetTextRecoveryNSE(bool use_ocr);
2026 
2032  void SetDetectTOC(bool detect_toc);
2033 
2040  void SetCustomOption(const UString& opt_name, const UString& opt_value);
2041 
2048  void SetCustomOption(const UString& opt_name, int opt_value);
2049 
2054  void SetConnectHyphens(bool connect);
2055 
2061 
2067 
2073  void SetCustomOCRLanguage(const UString& ocrlang);
2074 
2079  void SetPrioritizeVisualAppearance(bool replica);
2080 
2086 
2092 
2098 
2104 
2105 protected:
2106  TRN_Obj m_obj;
2107  friend class Convert;
2109 };
2110 
2115 {
2116 public:
2121 
2127  void SetPages(int page_from, int page_to);
2128 
2133  void SetPDFPassword(const UString& password);
2134 
2140 
2146 
2152  void SetCustomOCRLanguage(const UString& ocrlang);
2153 
2155  {
2156  e_ocr_text = 2, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
2157  e_ocr_off, /* Indicates that OCR will not be performed. */
2158  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
2159  };
2160 
2168 
2174  void SetTextRecoveryNSE(bool use_ocr);
2175 
2182  void SetCustomOption(const UString& opt_name, const UString& opt_value);
2183 
2190  void SetCustomOption(const UString& opt_name, int opt_value);
2191 
2196  void SetNonTableContent(bool non_tables);
2197 
2202  void SetSingleSheet(bool single_sheet);
2203 
2208  void SetPageSingleSheet(bool page_single);
2209 
2215 
2221 
2227 
2233 
2234 protected:
2235  TRN_Obj m_obj;
2236  friend class Convert;
2238 };
2239 
2244 {
2245 public:
2250 
2256  void SetPages(int page_from, int page_to);
2257 
2262  void SetPDFPassword(const UString& password);
2263 
2269 
2275 
2281  void SetCustomOCRLanguage(const UString& ocrlang);
2282 
2284  {
2285  e_ocr_text = 2, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
2286  e_ocr_off, /* Indicates that OCR will not be performed. */
2287  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
2288  };
2289 
2297 
2303  void SetTextRecoveryNSE(bool use_ocr);
2304 
2311  void SetCustomOption(const UString& opt_name, const UString& opt_value);
2312 
2319  void SetCustomOption(const UString& opt_name, int opt_value);
2320 
2326 
2332 
2338 
2344 
2345 protected:
2346  TRN_Obj m_obj;
2347  friend class Convert;
2349 };
2350 
2355 {
2356 public:
2361 
2366  void SetExpanded(bool expanded);
2367 
2374  void SetReuseCover(bool reuse);
2375 protected:
2376  TRN_Obj m_obj;
2377  friend class Convert;
2379 };
2380 
2385 {
2386 public:
2387 
2391  SVGOutputOptions();
2392 
2397  void SetEmbedImages(bool embed_images);
2398 
2403  void SetNoFonts(bool no_fonts);
2404 
2410  void SetSvgFonts(bool svg_fonts);
2411 
2418  void SetEmbedFonts(bool embed_fonts);
2419 
2424  void SetNoUnicode(bool no_unicode);
2425 
2430  void SetIndividualCharPlacement(bool individual_char_placement);
2431 
2436  void SetRemoveCharPlacement(bool remove_char_placement);
2437 
2444  void SetFlattenContent(enum Convert::FlattenFlag flatten);
2445 
2452 
2458  void SetFlattenDPI(UInt32 dpi);
2459 
2468  void SetFlattenMaximumImagePixels(UInt32 max_pixels);
2469 
2474  void SetCompress(bool svgz);
2475 
2480  void SetOutputThumbnails(bool include_thumbs);
2481 
2487  void SetThumbnailSize(UInt32 size);
2488 
2493  void SetCreateXmlWrapper(bool xml);
2494 
2499  void SetDtd(bool dtd);
2500 
2505  void SetAnnots(bool annots);
2506 
2516 protected:
2517  TRN_Obj m_obj;
2518  friend class Convert;
2520 };
2521 
2526 {
2527 public:
2532 
2539  void SetBox(enum Page::Box type);
2540 
2547  void SetRotate(enum Page::Rotate rotation);
2548 
2554  void SetClip(double x1, double y1, double x2, double y2);
2555 
2561  void SetPages(const char* page_desc);
2562 
2572 
2578  void SetCMYK(bool enable);
2579 
2586  void SetDither(bool enable);
2587 
2594  void SetGray(bool enable);
2595 
2605  void SetMono(bool enable);
2606 
2613  void SetAnnots(bool enable);
2614 
2619  void SetSmooth(bool enable);
2620 
2629  void SetPrintmode(bool enable);
2630 
2642  void SetTransparentPage(bool enable);
2643 
2644 
2650  void SetPalettized(bool enable);
2651 
2658  void SetDPI(double dpi);
2659 
2671  void SetGamma(double gamma);
2672 
2676  void SetHRes(int hres);
2677 
2681  void SetVRes(int vres);
2682 
2683 
2684 protected:
2685  TRN_Obj m_obj;
2686  friend class Convert;
2688 };
2689 
2694 class Printer
2695 {
2696 public:
2711  static void Install(const UString & in_printerName = "PDFTron PDFNet");
2712 
2720  static void Uninstall();
2721 
2730  static const UString GetPrinterName();
2731 
2740  static void SetPrinterName(const UString & in_printerName = "PDFTron PDFNet");
2741 
2753  static bool IsInstalled(const UString & in_printerName = "PDFTron PDFNet");
2754 
2755  enum Mode {
2772  };
2773 
2779  static void SetMode(Mode mode);
2780 
2786  static Mode GetMode();
2787 
2788 
2789 };
2790 
2791 #include <Impl/Convert.inl>
2792 
2793  }; // namespace PDF
2794 }; // namespace pdftron
2795 
2796 #endif // PDFTRON_H_CPPPDFConvert
StructuredOutputOptions::SectionConversionSetting GetHeadersAndFootersSetting()
void SetTextRecoveryNSE(bool use_ocr)
void SetThumbnailSize(UInt32 size)
void SetSearchableImageSetting(SearchableImageSetting setting)
void SetSearchableImageSetting(SearchableImageSetting setting)
StructuredOutputOptions::SectionConversionSetting GetFootnotesSetting()
void SetFootnotesSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetExternalLinks(bool enable)
void SetExternalParts(bool generate)
StructuredOutputOptions::SectionConversionSetting GetFootnotesSetting()
void SetPDFPassword(const UString &password)
void SetEmbedFonts(bool embed_fonts)
void SetPreferredOCREngine(OutputOptionsOCR::PreferredOCREngine engine)
void SetCustomOption(const UString &opt_name, const UString &opt_value)
void SetFlattenContent(enum Convert::FlattenFlag flatten)
static TemplateDocument CreateOfficeTemplate(const UString &in_filename, ConversionOptions *options)
void SetPages(const char *page_desc)
static void FromCAD(PDFDoc &in_pdfdoc, const UString &in_filename, CADConvertOptions *opts=0)
void SetCustomOCRLanguage(const UString &ocrlang)
void SetCreateXmlWrapper(bool xml)
void SetPreferredOCREngine(OutputOptionsOCR::PreferredOCREngine engine)
void SetFlattenThreshold(enum Convert::FlattenThresholdFlag threshold)
static void SetPrinterName(const UString &in_printerName="PDFTron PDFNet")
void SetExtractUsingZorder(bool use_zorder)
void SetRotate(enum Page::Rotate rotation)
void SetPages(int page_from, int page_to)
void SetFlattenMaximumImagePixels(UInt32 max_pixels)
void SetNonTableContent(bool non_tables)
static DocumentConversion StreamingPDFConversion(PDFDoc &in_pdfdoc, const UString &in_filename, ConversionOptions *options)
pdftron::PDF::ExcelOutputOptions ExcelOutputOptions
Definition: Convert.h:113
void SetSingleSheet(bool single_sheet)
void SetSimpleLists(bool enable)
void SetOpacityMaskWorkaround(bool opacity_render)
pdftron::PDF::HTMLOutputOptions HTMLOutputOptions
Definition: Convert.h:111
pdftron::PDF::WordOutputOptions WordOutputOptions
Definition: Convert.h:112
pdftron::PDF::XODOutputOptions XODOutputOptions
Definition: Convert.h:110
StructuredOutputOptions::SectionConversionSetting GetFootnotesSetting()
static void ToEmf(PDFDoc &in_pdfdoc, const UString &in_filename)
void SetPages(int page_from, int page_to)
static void FromXps(PDFDoc &in_pdfdoc, const UString &in_filename)
void SetPrioritizeVisualAppearance(bool replica)
void SetMaximumImagePixels(UInt32 max_pixels)
void SetThumbnailSize(UInt32 size)
void SetFootnotesSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetRemoveCharPlacement(bool remove_char_placement)
static Mode GetMode()
void SetConnectHyphens(bool connect)
void SetPDFPassword(const UString &password)
static Reflow CreateReflow(Page &in_page, const UString &json_zones)
ConversionMonitor & operator=(const ConversionMonitor &other)
pdftron::PDF::XPSOutputOptions XPSOutputOptions
Definition: Convert.h:109
void SetCustomOCRLanguage(const UString &ocrlang)
void SetReportFile(const UString &path)
TRN_ConversionMonitor mp_impl
Definition: Convert.h:45
void SetCustomOCRLanguage(const UString &ocrlang)
static const UString GetPrinterName()
pdftron::PDF::Printer Printer
Definition: Convert.h:118
void SetPages(int page_from, int page_to)
void SetSearchableImageSetting(SearchableImageSetting setting)
static void FromEmf(PDFDoc &in_pdfdoc, const UString &in_filename)
void SetWordOutputFormat(WordOutputFormat format)
void SetOutputThumbnails(bool include_thumbs)
static UString PreferredOCRChoiceToString(PreferredOCREngine engine)
static void ToPowerPoint(const UString &in_filename, const UString &out_path, const PowerPointOutputOptions &options)
static ConversionMonitor ToXodWithMonitor(PDFDoc &in_pdfdoc, const XODOutputOptions &options)
static void FromDICOM(PDFDoc &in_pdfdoc, const UString &in_filename, AdvancedImagingConvertOptions *opts=0)
void SetMaximumImagePixels(UInt32 max_pixels)
static void ToXod(const UString &in_filename, const UString &out_filename, const XODOutputOptions &options)
void SetTitle(const UString &title)
void SetFlattenDPI(UInt32 dpi)
pdftron::PDF::EPUBOutputOptions EPUBOutputOptions
Definition: Convert.h:115
void SetPDFPassword(const UString &password)
void SetTextRecoveryNSE(bool use_ocr)
static void ToHtml(const UString &in_filename, const UString &out_path, const HTMLOutputOptions &options)
StructuredOutputOptions::SectionConversionSetting GetHeadersAndFootersSetting()
void SetOverprint(PDFRasterizer::OverprintPreviewMode mode)
void SetDisableVerticalSplit(bool disable)
void SetPageSingleSheet(bool page_single)
void SetLanguage(OutputOptionsOCR::LanguageChoice language)
void SetLanguage(OutputOptionsOCR::LanguageChoice language)
void SetIndividualCharPlacement(bool individual_char_placement)
void SetFootnotesSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetPrintMode(bool print_mode)
static void FromText(PDFDoc &in_pdfdoc, const UString &in_filename, const SDF::Obj &in_options=SDF::Obj())
void SetPalettized(bool enable)
static UString PageToHtmlZoned(const Page &page, const UString &json_zones)
void SetJPGQuality(UInt32 quality)
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
void SetHeadersAndFootersSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetConnectHyphens(bool connect)
static void FromSVG(PDFDoc &in_pdfdoc, const UString &in_filename, SVGConvertOptions *opts=0)
static void ToSvg(PDFDoc &in_pdfdoc, const UString &in_filename, const SVGOutputOptions &in_options)
static DocumentConversion WordToPDFConversion(PDFDoc &in_pdfdoc, const UString &in_filename, WordToPDFOptions *options)
StructuredOutputOptions::SectionConversionSetting GetHeadersAndFootersSetting()
void SetSilverlightTextWorkaround(bool workaround)
void SetTransparentPage(bool enable)
void SetOverprint(enum OverprintPreviewMode mode)
void SetPDFPassword(const UString &password)
void SetHeadersAndFootersSetting(StructuredOutputOptions::SectionConversionSetting option)
pdftron::PDF::TiffOutputOptions TiffOutputOptions
Definition: Convert.h:117
void SetEmbedImages(bool embed_images)
void GenerateURLLinks(bool generate)
void SetPreferJPG(bool prefer_jpg)
static StructuredOutputOptions::SectionConversionSetting SectionConversionSettingFromOption(TRN_Obj &obj)
void SetSimplifyText(bool enable)
void SetHeadersAndFootersSetting(StructuredOutputOptions::SectionConversionSetting option)
pdftron::PDF::SVGOutputOptions SVGOutputOptions
Definition: Convert.h:116
void UseSilverlightFlashCompatible(bool compatible)
void SetTextRecoveryNSE(bool use_ocr)
static bool IsInstalled(const UString &in_printerName="PDFTron PDFNet")
void SetExpanded(bool expanded)
static void ToPdf(PDFDoc &in_pdfdoc, const UString &in_filename)
static void SetMode(Mode mode)
void SetFlattenThreshold(enum Convert::FlattenThresholdFlag threshold)
void SetPrintmode(bool enable)
void SetLanguage(OutputOptionsOCR::LanguageChoice language)
void SetClip(double x1, double y1, double x2, double y2)
void SetHeadersAndFootersSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetPreferJPG(bool prefer_jpg)
void SetInternalLinks(bool enable)
static void ToXps(PDFDoc &in_pdfdoc, const UString &in_filename, const XPSOutputOptions &options)
static bool RequiresPrinter(const UString &in_filename)
void SetCustomOption(const UString &opt_name, const UString &opt_value)
void SetPreferredOCREngine(OutputOptionsOCR::PreferredOCREngine engine)
static UString LanguageChoiceToString(LanguageChoice language)
StructuredOutputOptions::SectionConversionSetting GetHeadersAndFootersSetting()
static void Uninstall()
void SetFootnotesSetting(StructuredOutputOptions::SectionConversionSetting option)
void SetSvgFonts(bool svg_fonts)
void SetLanguage(OutputOptionsOCR::LanguageChoice language)
void SetCustomOption(const UString &opt_name, const UString &opt_value)
void SetNoFonts(bool no_fonts)
void SetFileConversionTimeoutSeconds(int seconds)
void SetOutputThumbnails(bool include_thumbs)
void SetNoPageWidth(bool enable)
void SetOverprint(enum PDFRasterizer::OverprintPreviewMode mode)
void SetAnnotationOutput(enum AnnotationOutputFlag annot_output)
void SetSearchableImageSetting(SearchableImageSetting setting)
void SetPreferredOCREngine(OutputOptionsOCR::PreferredOCREngine engine)
void SetJPGQuality(UInt32 quality)
static void WordToPDF(PDFDoc &in_pdfdoc, const UString &in_filename, WordToPDFOptions *options)
void SetPages(int page_from, int page_to)
static void ToWord(const UString &in_filename, const UString &out_path, const WordOutputOptions &options)
static void ToEpub(const UString &in_filename, const UString &out_path, const HTMLOutputOptions &html_options, const EPUBOutputOptions &epub_options)
static void ToExcel(const UString &in_filename, const UString &out_path, const ExcelOutputOptions &options)
StructuredOutputOptions::SectionConversionSetting GetFootnotesSetting()
void SetContentReflowSetting(ContentReflowSetting reflow)
void SetBox(enum Page::Box type)
void SetNoUnicode(bool no_unicode)
void SetDetectTOC(bool detect_toc)
void SetEncryptPassword(const char *pass)
static void Install(const UString &in_printerName="PDFTron PDFNet")
static void ToTiff(const UString &in_filename, const UString &out_path, const TiffOutputOptions &options)
static void FromTiff(PDFDoc &in_pdfdoc, Filters::Filter in_data)
void SetFlattenContent(enum Convert::FlattenFlag flatten)
void SetCustomOption(const UString &opt_name, const UString &opt_value)
void SetElementLimit(UInt32 element_limit)
pdftron::PDF::PowerPointOutputOptions PowerPointOutputOptions
Definition: Convert.h:114
static void OfficeToPDF(PDFDoc &in_pdfdoc, const UString &in_filename, ConversionOptions *options)
static UString PageToHtml(const Page &page)
void SetOpenXps(bool openxps)