index.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>libwkhtmltox: Main Page</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">libwkhtmltox
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.17 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. </div><!-- top -->
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. <div class="PageDoc"><div class="header">
  62. <div class="headertitle">
  63. <div class="title">libwkhtmltox Documentation</div> </div>
  64. </div><!--header-->
  65. <div class="contents">
  66. <div class="textblock"><p>libwkhtmltox is divided into several parts.</p>
  67. <h1><a class="anchor" id="PDFH"></a>
  68. To PDF c-bindings</h1>
  69. <p>The file <a class="el" href="pdf_8h.html">pdf.h</a> contains a fairly high level and stable pure c binding to wkhtmltopdf. These binding are well documented and do not depend on QT. Using this is the recommended way of interfacing with the PDF portion of libwkhtmltox.</p>
  70. <p>Using these binding it is relatively straight forward to convert one or more HTML document to a PDF file, using the following process:</p>
  71. <ul>
  72. <li>wkhtmltopdf_init is called.</li>
  73. <li>A <a class="el" href="structwkhtmltopdf__global__settings.html">wkhtmltopdf_global_settings</a> object is creating by calling wkhtmltopdf_create_global_settings.</li>
  74. <li>Non web page specific <a class="el" href="pagesettings.html">Setting</a> for the conversion are set by multiple calls to wkhtmltopdf_set_global_setting.</li>
  75. <li>A <a class="el" href="structwkhtmltopdf__converter.html">wkhtmltopdf_converter</a> object is created by calling wkhtmltopdf_create_converter, which consumes the global_settings instance.</li>
  76. <li>A number of object (web pages) are added to the conversion process, this is done by<ul>
  77. <li>Creating a <a class="el" href="structwkhtmltopdf__object__settings.html">wkhtmltopdf_object_settings</a> instance by calling wkhtmltopdf_create_object_settings.</li>
  78. <li>Setting web page specific <a class="el" href="pagesettings.html">Setting</a> by multiple calls to wkhtmltopdf_set_object_setting.</li>
  79. <li>Adding the object to the conversion process by calling wkhtmltopdf_add_object</li>
  80. </ul>
  81. </li>
  82. <li>A number of callback function are added to the converter object.</li>
  83. <li>The conversion is performed by calling wkhtmltopdf_convert.</li>
  84. <li>The converter object is destroyed by calling wkhtmltopdf_destroy_converter.</li>
  85. </ul>
  86. <h1><a class="anchor" id="IMAGEH"></a>
  87. To image c-bindings</h1>
  88. <p>The file image.h contains a fairly high level and stable pure c binding to wkhtmltoimage. These binding are well documented and do not depend on QT. Using this is the recommended way of interfacing with the image portion of libwkhtmltox.</p>
  89. <p>Using these binding it is relatively straight forward to convert one or more HTML document to a raster image or SVG document, using the following process:</p>
  90. <ul>
  91. <li>wkhtmltoimage_init is called.</li>
  92. <li>A wkhtmltoimage_global_settings object is creating by calling wkhtmltoimage_create_global_settings.</li>
  93. <li><a class="el" href="pagesettings.html">Setting</a> for the conversion are set by multiple calls to wkhtmltoimage_set_global_setting.</li>
  94. <li>A wkhtmltoimage_converter object is created by calling wkhtmltoimage_create_converter, which consumes the global_settings instance.</li>
  95. <li>A number of callback function are added to the converter object.</li>
  96. <li>The conversion is performed by calling wkhtmltoimage_convert.</li>
  97. <li>The converter object is destroyed by calling wkhtmltoimage_destroy_converter.</li>
  98. </ul>
  99. <h1><a class="anchor" id="RESTH"></a>
  100. The rest of the headers.</h1>
  101. <p>The rest of the headers directly exposes the C++ QT dependent class used internally by wkhtmltopdf and wkhtmltoimage. They are not fairly well documented and are not guaranteed to remain stable. unless you know what you are doing you should not use these bindings. </p>
  102. </div></div><!-- PageDoc -->
  103. </div><!-- contents -->
  104. <!-- start footer part -->
  105. <hr class="footer"/><address class="footer"><small>
  106. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  107. <img class="footer" src="doxygen.png" alt="doxygen"/>
  108. </a> 1.8.17
  109. </small></address>
  110. </body>
  111. </html>