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-2024 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 
531  static void ToWord(PDFDoc & in_pdfdoc, const UString & out_path, const WordOutputOptions& options);
532 
546  static void ToWord(PDFDoc & in_pdfdoc, const UString & out_path);
547 
563  static void ToExcel(const UString& in_filename, const UString& out_path, const ExcelOutputOptions& options);
564 
576  static void ToExcel(const UString& in_filename, const UString& out_path);
577 
595  static void ToExcel(PDFDoc& in_pdfdoc, const UString& out_path, const ExcelOutputOptions& options);
596 
610  static void ToExcel(PDFDoc& in_pdfdoc, const UString& out_path);
611 
627  static void ToPowerPoint(const UString& in_filename, const UString& out_path, const PowerPointOutputOptions& options);
628 
640  static void ToPowerPoint(const UString& in_filename, const UString& out_path);
641 
659  static void ToPowerPoint(PDFDoc& in_pdfdoc, const UString& out_path, const PowerPointOutputOptions& options);
660 
674  static void ToPowerPoint(PDFDoc& in_pdfdoc, const UString& out_path);
675 
696  static void ToEpub(const UString & in_filename, const UString & out_path, const HTMLOutputOptions& html_options, const EPUBOutputOptions& epub_options);
697 
714  static void ToEpub(const UString & in_filename, const UString & out_path, const HTMLOutputOptions& html_options);
715 
728  static void ToEpub(const UString & in_filename, const UString & out_path);
729 
748  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path, const HTMLOutputOptions& html_options, const EPUBOutputOptions& epub_options);
749 
764  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path, const HTMLOutputOptions& html_options);
765 
776  static void ToEpub(PDFDoc & in_pdfdoc, const UString & out_path);
777 
790  static void ToTiff(const UString & in_filename, const UString & out_path, const TiffOutputOptions& options);
791 
800  static void ToTiff(const UString & in_filename, const UString & out_path);
801 
814  static void ToTiff(PDFDoc & in_pdfdoc, const UString & out_path, const TiffOutputOptions& options);
815 
824  static void ToTiff(PDFDoc & in_pdfdoc, const UString & out_path);
825 
838  static void ToTiff(const UString & in_filename, Filters::Filter& out_filter, const TiffOutputOptions& options);
839 
848  static void ToTiff(const UString & in_filename, Filters::Filter& out_filter);
849 
862  static void ToTiff(PDFDoc & in_pdfdoc, Filters::Filter& out_filter, const TiffOutputOptions& options);
863 
872  static void ToTiff(PDFDoc & in_pdfdoc, Filters::Filter& out_filter);
873 
890  static Filters::Filter ToXod(const UString & in_filename, const XODOutputOptions& options);
891 
904  static Filters::Filter ToXod(const UString & in_filename);
905 
920  static Filters::Filter ToXod(PDFDoc & in_pdfdoc, const XODOutputOptions& options);
921 
932  static Filters::Filter ToXod(PDFDoc & in_pdfdoc);
934  // Experimental - Developer use only
935  static ConversionMonitor ToXodWithMonitor(PDFDoc & in_pdfdoc, const XODOutputOptions& options);
936  static ConversionMonitor ToXodWithMonitor(PDFDoc & in_pdfdoc);
937 
938 
960  static void WordToPDF( PDFDoc & in_pdfdoc, const UString & in_filename, WordToPDFOptions* options);
961 
988  static DocumentConversion WordToPDFConversion( PDFDoc & in_pdfdoc, const UString & in_filename, WordToPDFOptions* options);
989 
1011  static void WordToPDF( PDFDoc & in_pdfdoc, Filters::Filter in_stream, WordToPDFOptions* options);
1012 
1039  static DocumentConversion WordToPDFConversion( PDFDoc & in_pdfdoc, Filters::Filter in_stream, WordToPDFOptions* options);
1040 
1062  static void OfficeToPDF( PDFDoc & in_pdfdoc, const UString & in_filename, ConversionOptions* options);
1063 
1089  static DocumentConversion StreamingPDFConversion( PDFDoc & in_pdfdoc, const UString & in_filename, ConversionOptions* options);
1090 
1114  static DocumentConversion StreamingPDFConversion(const UString & in_filename, ConversionOptions* options);
1115 
1116  static Reflow CreateReflow(Page & in_page, const UString & json_zones);
1117 
1139  static void OfficeToPDF( PDFDoc & in_pdfdoc, Filters::Filter in_stream, ConversionOptions* options);
1140 
1166  static DocumentConversion StreamingPDFConversion( PDFDoc & in_pdfdoc, Filters::Filter in_stream, ConversionOptions* options);
1167 
1191  static DocumentConversion StreamingPDFConversion(Filters::Filter in_stream, ConversionOptions* options);
1192 
1212  static void ToPdf(PDFDoc & in_pdfdoc, const UString & in_filename);
1213 
1224  static void FromCAD(PDFDoc& in_pdfdoc, const UString& in_filename, CADConvertOptions* opts = 0);
1225 
1236  static void FromDICOM(PDFDoc& in_pdfdoc, const UString& in_filename, AdvancedImagingConvertOptions* opts = 0);
1237 
1238 
1246  static void FromSVG(PDFDoc& in_pdfdoc, const UString& in_filename, SVGConvertOptions* opts = 0);
1247 
1254  static void FromTiff(PDFDoc& in_pdfdoc, Filters::Filter in_data);
1255 
1279  static TemplateDocument CreateOfficeTemplate(const UString& in_filename, ConversionOptions* options);
1280 
1304  static TemplateDocument CreateOfficeTemplate(Filters::Filter in_stream, ConversionOptions* options);
1305 
1318  static bool RequiresPrinter(const UString & in_filename);
1319 
1320 
1321 private:
1322  Convert ();
1323  ~Convert ();
1324 };
1325 
1330 {
1331 public:
1340  void SetPrintMode(bool print_mode);
1341 
1346  void SetDPI(UInt32 dpi);
1347 
1352  void SetRenderPages(bool render);
1353 
1358  void SetThickenLines(bool thicken);
1359 
1365  void GenerateURLLinks(bool generate);
1366 
1368  {
1372  };
1373 
1382  void SetOverprint(enum OverprintPreviewMode mode);
1383 
1384  TRN_Obj m_obj;
1385 protected:
1386  friend class Convert;
1388 };
1389 
1394 {
1395 public:
1400  void SetOpenXps(bool openxps);
1401 };
1402 
1407 {
1408 public:
1409 
1411  e_internal_xfdf, // include the annotation file in the XOD output. This is the default option
1412  e_external_xfdf, // output the annotation file externally to the same output path with extension .xfdf.
1413  // This is not available when using streaming conversion
1414  e_flatten // flatten all annotations that are not link annotations
1415  };
1416 
1421  void SetExtractUsingZorder(bool use_zorder);
1422 
1427  void SetOutputThumbnails(bool include_thumbs);
1428 
1435  void SetThumbnailSize(UInt32 size);
1436 
1444  void SetThumbnailSize(UInt32 regular_size, UInt32 large_size);
1445 
1451  void SetElementLimit(UInt32 element_limit);
1452 
1459  void SetOpacityMaskWorkaround(bool opacity_render);
1460 
1469  void SetMaximumImagePixels(UInt32 max_pixels);
1470 
1477  void SetFlattenContent(enum Convert::FlattenFlag flatten);
1478 
1485 
1491  void SetPreferJPG(bool prefer_jpg);
1492 
1497  void SetJPGQuality(UInt32 quality);
1498 
1504  void SetSilverlightTextWorkaround(bool workaround);
1505 
1510  void SetAnnotationOutput(enum AnnotationOutputFlag annot_output);
1511 
1517  void SetExternalParts(bool generate);
1518 
1524  void SetEncryptPassword(const char* pass);
1525 
1533  void UseSilverlightFlashCompatible(bool compatible);
1534 };
1535 
1540 {
1541 public:
1543  {
1544  e_lang_auto = 0, /* Indicates automatic OCR language detection. */
1545  e_lang_catalan, /* Indicates the Catalan language for OCR. */
1546  e_lang_danish, /* Indicates the Danish language for OCR. */
1547  e_lang_german, /* Indicates the German language for OCR. */
1548  e_lang_english, /* Indicates the English language for OCR. */
1549  e_lang_spanish, /* Indicates the Spanish language for OCR. */
1550  e_lang_finnish, /* Indicates the Finnish language for OCR. */
1551  e_lang_french, /* Indicates the French language for OCR. */
1552  e_lang_italian, /* Indicates the Italian language for OCR. */
1553  e_lang_dutch, /* Indicates the Dutch language for OCR. */
1554  e_lang_norwegian, /* Indicates the Norwegian language for OCR. */
1555  e_lang_portuguese, /* Indicates the Portuguese language for OCR. */
1556  e_lang_polish, /* Indicates the Polish language for OCR. */
1557  e_lang_romanian, /* Indicates the Romanian language for OCR. */
1558  e_lang_russian, /* Indicates the Russian language for OCR. */
1559  e_lang_slovenian, /* Indicates the Slovenian language for OCR. */
1560  e_lang_swedish, /* Indicates the Swedish language for OCR. */
1561  e_lang_turkish /* Indicates the Turkish language for OCR. */
1562  };
1563 
1565  {
1568  };
1569 
1571 
1573 };
1574 
1579 {
1580 public:
1582  {
1583  e_Recover = 0, /* Recover as headers, footers, and/or footnotes. */
1584  e_DoNotDetect, /* Place in the body of the document. */
1585  e_DetectAndRemove /* Remove detected headers, footers, and/or footnotes. */
1586  };
1587 
1589 };
1590 
1595 {
1596 public:
1601 
1607  void SetPreferJPG(bool prefer_jpg);
1608 
1615  void SetJPGQuality(UInt32 quality);
1616 
1623  void SetDPI(UInt32 dpi);
1624 
1634  void SetMaximumImagePixels(UInt32 max_pixels);
1635 
1637  {
1638  e_fixed_position = 0, /* Content uses fixed positioning (default). */
1639  e_reflow_paragraphs, /* Deprecated. Text flows within paragraphs. */
1640  e_reflow_full /* Text flows freely edge-to-edge in a single column. */
1641  };
1642 
1655 
1661  void SetScale(double scale);
1662 
1668  void SetExternalLinks(bool enable);
1669 
1675  void SetInternalLinks(bool enable);
1676 
1682  void SetSimplifyText(bool enable);
1683 
1689  void SetReportFile(const UString& path);
1690 
1697  void SetTitle(const UString& title);
1698 
1706  void SetImageDPI(UInt32 dpi);
1707 
1713  void SetEmbedImages(bool embed);
1714 
1722  void SetFileConversionTimeoutSeconds(int seconds);
1723 
1730  void SetPages(int page_from, int page_to);
1731 
1737  void SetPDFPassword(const UString& password);
1738 
1740  {
1741  e_ocr_image_text = 0, /* Convert both images and pre-existing hidden text from previous OCR. Only applies to e_reflow_paragraphs. */
1742  e_ocr_image, /* Convert images only, ignoring pre-existing text from previous OCR, and do not perform any new OCR. */
1743  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). */
1744  e_ocr_off, /* Convert images only, ignoring pre-existing text from previous OCR, and do not perform any new OCR. */
1745  e_ocr_always /* Perform new OCR on all pages. (e_reflow_full mode). */
1746  };
1747 
1759 
1766  void SetSimpleLists(bool enable);
1767 
1773  void SetConnectHyphens(bool connect);
1774 
1782  void SetDisableVerticalSplit(bool disable);
1783 
1790  void SetNoPageWidth(bool enable);
1791 
1798 
1805 
1812 
1819 
1826 
1833 
1834 protected:
1835  TRN_Obj m_obj;
1836  friend class Convert;
1838 };
1839 
1844 {
1845 public:
1850 
1852  {
1857  };
1858 
1867 
1873  void SetPages(int page_from, int page_to);
1874 
1879  void SetPDFPassword(const UString& password);
1880 
1882  {
1883  e_ocr_image_text = 0, /* Deprecated. OCR will be performed. */
1884  e_ocr_image, /* Deprecated. OCR will not be performed. */
1885  e_ocr_text, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
1886  e_ocr_off, /* Indicates that OCR will not be performed. */
1887  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
1888  };
1889 
1897 
1902  void SetConnectHyphens(bool connect);
1903 
1909 
1915 
1921  void SetCustomOCRLanguage(const UString& ocrlang);
1922 
1927  void SetPrioritizeVisualAppearance(bool replica);
1928 
1934 
1940 
1946 
1952 
1953 protected:
1954  TRN_Obj m_obj;
1955  friend class Convert;
1957 };
1958 
1963 {
1964 public:
1969 
1975  void SetPages(int page_from, int page_to);
1976 
1981  void SetPDFPassword(const UString& password);
1982 
1988 
1994 
2000  void SetCustomOCRLanguage(const UString& ocrlang);
2001 
2003  {
2004  e_ocr_text = 2, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
2005  e_ocr_off, /* Indicates that OCR will not be performed. */
2006  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
2007  };
2008 
2016 
2021  void SetNonTableContent(bool non_tables);
2022 
2027  void SetSingleSheet(bool single_sheet);
2028 
2033  void SetPageSingleSheet(bool page_single);
2034 
2040 
2046 
2052 
2058 
2059 protected:
2060  TRN_Obj m_obj;
2061  friend class Convert;
2063 };
2064 
2069 {
2070 public:
2075 
2081  void SetPages(int page_from, int page_to);
2082 
2087  void SetPDFPassword(const UString& password);
2088 
2094 
2100 
2106  void SetCustomOCRLanguage(const UString& ocrlang);
2107 
2109  {
2110  e_ocr_text = 2, /* Indicates that OCR will be performed on scanned pages, and the recognized text replaces the image pixels underneath (default). */
2111  e_ocr_off, /* Indicates that OCR will not be performed. */
2112  e_ocr_always /* Indicates that OCR will always be performed on all pages, and the recognized text replaces the image pixels underneath. */
2113  };
2114 
2122 
2128 
2134 
2140 
2146 
2147 protected:
2148  TRN_Obj m_obj;
2149  friend class Convert;
2151 };
2152 
2157 {
2158 public:
2163 
2168  void SetExpanded(bool expanded);
2169 
2176  void SetReuseCover(bool reuse);
2177 protected:
2178  TRN_Obj m_obj;
2179  friend class Convert;
2181 };
2182 
2187 {
2188 public:
2189 
2193  SVGOutputOptions();
2194 
2199  void SetEmbedImages(bool embed_images);
2200 
2205  void SetNoFonts(bool no_fonts);
2206 
2212  void SetSvgFonts(bool svg_fonts);
2213 
2220  void SetEmbedFonts(bool embed_fonts);
2221 
2226  void SetNoUnicode(bool no_unicode);
2227 
2232  void SetIndividualCharPlacement(bool individual_char_placement);
2233 
2238  void SetRemoveCharPlacement(bool remove_char_placement);
2239 
2246  void SetFlattenContent(enum Convert::FlattenFlag flatten);
2247 
2254 
2260  void SetFlattenDPI(UInt32 dpi);
2261 
2270  void SetFlattenMaximumImagePixels(UInt32 max_pixels);
2271 
2276  void SetCompress(bool svgz);
2277 
2282  void SetOutputThumbnails(bool include_thumbs);
2283 
2289  void SetThumbnailSize(UInt32 size);
2290 
2295  void SetCreateXmlWrapper(bool xml);
2296 
2301  void SetDtd(bool dtd);
2302 
2307  void SetAnnots(bool annots);
2308 
2318 protected:
2319  TRN_Obj m_obj;
2320  friend class Convert;
2322 };
2323 
2328 {
2329 public:
2334 
2341  void SetBox(enum Page::Box type);
2342 
2349  void SetRotate(enum Page::Rotate rotation);
2350 
2356  void SetClip(double x1, double y1, double x2, double y2);
2357 
2363  void SetPages(const char* page_desc);
2364 
2374 
2380  void SetCMYK(bool enable);
2381 
2388  void SetDither(bool enable);
2389 
2396  void SetGray(bool enable);
2397 
2407  void SetMono(bool enable);
2408 
2415  void SetAnnots(bool enable);
2416 
2421  void SetSmooth(bool enable);
2422 
2431  void SetPrintmode(bool enable);
2432 
2444  void SetTransparentPage(bool enable);
2445 
2446 
2452  void SetPalettized(bool enable);
2453 
2460  void SetDPI(double dpi);
2461 
2473  void SetGamma(double gamma);
2474 
2478  void SetHRes(int hres);
2479 
2483  void SetVRes(int vres);
2484 
2485 
2486 protected:
2487  TRN_Obj m_obj;
2488  friend class Convert;
2490 };
2491 
2496 class Printer
2497 {
2498 public:
2513  static void Install(const UString & in_printerName = "PDFTron PDFNet");
2514 
2522  static void Uninstall();
2523 
2532  static const UString GetPrinterName();
2533 
2542  static void SetPrinterName(const UString & in_printerName = "PDFTron PDFNet");
2543 
2555  static bool IsInstalled(const UString & in_printerName = "PDFTron PDFNet");
2556 
2557  enum Mode {
2574  };
2575 
2581  static void SetMode(Mode mode);
2582 
2588  static Mode GetMode();
2589 
2590 
2591 };
2592 
2593 #include <Impl/Convert.inl>
2594 
2595  }; // namespace PDF
2596 }; // namespace pdftron
2597 
2598 #endif // PDFTRON_H_CPPPDFConvert
StructuredOutputOptions::SectionConversionSetting GetHeadersAndFootersSetting()
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 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)
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)
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 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 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 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 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)