/README.md

https://github.com/limingjie/pdf_to_image · Markdown · 114 lines · 84 code · 30 blank · 0 comment · 0 complexity · 733dfc7e780d4975d74b14f98b49dcb6 MD5 · raw file

  1. # PDF to Image
  2. To easily and quickly convert PDF document to images.
  3. ## Snapshots
  4. - Windows 7
  5. ![Windows](https://github.com/limingjie/pdf_to_image/blob/master/screenshots/windows.png?raw=true)
  6. - Archlinux (Xfce4)
  7. ![Archlinux](https://github.com/limingjie/pdf_to_image/blob/master/screenshots/archlinux.png?raw=true)
  8. ## Download
  9. - **[GitHub](https://github.com/limingjie/pdf_to_image/releases)**
  10. - **[Baidu Cloud](http://pan.baidu.com/s/1ntrDD7z)**
  11. ## Release Note
  12. ### Version 0.2.2beta
  13. - Custom image resolution, [72, 1000]dpi.
  14. ### Version 0.2.1pre
  15. - [Issue #2] Specify export directory.
  16. ### Version 0.2
  17. - Open password protected PDF.
  18. - New Large (600dpi) quality.
  19. - [Windows] Static link to CRT, remove dll dependency.
  20. - [Issue #1] Not valid Win32 application on Windows XP.
  21. ### Version 0.1pre
  22. - Convert PDF to PNG images.
  23. - Web (72dpi) and Print (300dpi) quality.
  24. - Select pages.
  25. ## Manual Build
  26. ### Linux (g++)
  27. - Create Development Directory (For linking MuPDF 3rd party libraries)
  28. ```console
  29. cd
  30. mkdir Development
  31. cd Development
  32. ```
  33. - Build and Install FLTK
  34. ```console
  35. curl -O http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz
  36. tar zxvf fltk-1.3.3-source.tar.gz
  37. cd fltk-1.3.3-source
  38. make
  39. make install
  40. ```
  41. - Build and Install MuPDF
  42. ```console
  43. curl -O http://mupdf.com/downloads/archive/mupdf-1.7a-source.tar.gz
  44. tar zxvf mupdf-1.7a-source.tar.gz
  45. cd mupdf-1.7a-source
  46. make build=release
  47. make build=release install
  48. ```
  49. - Build PDF to Image
  50. ```console
  51. git clone --depth=1 https://github.com/limingjie/pdf_to_image
  52. cd pdf_to_image
  53. make
  54. ```
  55. ### Windows (Visual Studio 2013)
  56. - Build FLTK (Or use pre-build fltk library)
  57. - Download and extract [fltk-1.3.3-source.tar.gz](http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz).
  58. - Install CMake, generate Visual Studio solution and project files.
  59. - Open Visual Studio solution.
  60. - In Properties, change Configuration -> C/C++ -> Code Generation ->
  61. Runtime Library to **Multi-threaded (/MT)** for following projects.
  62. - fltk
  63. - fltk_forms
  64. - fltk_gl
  65. - fltk_images
  66. - fltk_jpeg
  67. - fltk_png
  68. - fltk_z
  69. - Build these projects.
  70. - Build MuPDF (Or use pre-build MuPDF library)
  71. - Download and extract [mupdf-1.7a-source.tar.gz](http://mupdf.com/downloads/archive/mupdf-1.7a-source.tar.gz).
  72. - Open mupdf-1.7a-source\platform\win32\mupdf.sln.
  73. - In Properties, change Configuration -> C/C++ -> Code Generation ->
  74. Runtime Library to **Multi-threaded (/MT)** for all projects.
  75. - Build the solution.
  76. - Using FLTK and MuPDF pre-build libraries
  77. - In fltk folder, extract fltk-1.3.3-prebuilt-x86-x64.7z.
  78. - In mupdf folder, extract mupdf-1.7a-prebuilt-x86-x64.7z.
  79. - Build PDF to Image
  80. - Open vs2013\pdf_to_image.sln
  81. - Build the solution.
  82. ## Author
  83. - [Mingjie Li](mailto:limingjie@outlook.com)
  84. - [GitHub](https://github.com/limingjie)