pdfHummusTest1.cpp 490 B

123456789101112131415
  1. /* Found that previous library was complied with the MSVC compiler and not compatible with GNU toolchain. Tried to use Msys with PDFHummus Cmake build tools and it was hard-coded
  2. * to MSVC. So building for GNU compiler will take some modification of Cmake.
  3. *
  4. */
  5. #include <stdlib.h>
  6. #include <iostream>
  7. #include "PDFWriter.h"
  8. int main(){
  9. PDFWriter pdfWriter;
  10. pdfWriter.StartPDF("c:\\myFile.pdf",ePDFVersion13);
  11. // ...add content to PDF file...
  12. pdfWriter.EndPDF();
  13. }