README.txt 1.1 KB

1234567891011121314151617
  1. 1. Download the PDFHummus/PDFWriter source code: https://github.com/galkahana/PDF-Writer
  2. This library only has build instructions for MSVC toolchains within Visual Studio 2017/2019.
  3. create folders PDFWriter\dependencies\lib\ and PDFWriter\dependencies\include
  4. 2. Use VCPKG to install the following libraries necessary for PDFHummus:
  5. libtiff, libjpeg, libpng, and zlib
  6. 3. Download freetype from: git://git.savannah.gnu.org/freetype/freetype2.git
  7. From the freetype2 source code root directory use Msys and run the following commands:
  8. mingw32-make setup mingw32
  9. mingw32-make
  10. cp -r include\* ..\PDFHummus\PDFWriter\dependencies\include\
  11. cp objs\libfreetype.a ..\PDFHummus\PDFWriter\dependencies\lib\
  12. 4. The PDFHummus/PDFWriter source code includes a copy of the source code for LibAesgm in a folder with the same name.
  13. Go into this folder and run the following commands to generate the library:
  14. // fpermissive is needed because the author chose to implicitly switch between pointers of uint_8 and char.
  15. g++ -c -fpermissive *.o
  16. ar -cvq aesgm.lib *.o
  17. g++ -I "C:\Users\bad-p\Downloads\PDFHummus-build\PDFHummus\LibAesgm"