是否有一個插件/擴展程序存在,用於將PDF文檔轉換爲Windows Server 2000機器上的JPG格式?PHP/WinServer PDF to JPG
2
A
回答
1
ImageMagick可能是最好的選擇。見例如此問題:How to get PDF first page and convert it to JPG
請注意,ImageMagick需要安裝Ghostscript才能處理PDF。
0
您可以安裝ImageMagick並通過system()
調用它。以下是將PDF轉換爲單獨頁面(以JPEG格式)的命令:
convert foobar.pdf foobar.jpg
一旦製作好臨時圖像,您就可以顯示它們。我認爲,你可以使用此命令提取第一頁:
convert sample.pdf[0] sample.jpg
0
正如佩卡的ImageMagick指出的是能夠通過Ghostscript做到這一點,有包裝的Ghostscript並讓您欣賞到多一點控制其他圖書館處理。 Andreas Heigl's PHP Ghostscript Wrapper就是一個例子。
根據您嘗試轉換的PDF,您可能會發現顏色被沖淡,這是由CMYK(或可能CMYKA)和RGB之間的轉換引起的。根據您的需要,您可能需要轉換爲TIFF(支持CMYK),然後使用具有更好顏色空間轉換算法的另一個庫。
相關問題
- 1. Uint8ClampedArray image to jpg/png
- 2. pdf到jpg與ImageMagick
- 3. rest to Latex to PDF
- 4. svg to html to pdf conversion
- 5. PDF爲JPG使用PHP
- 6. PDF到JPG本地轉換
- 7. Convertir UITableView to PDF
- 8. Itext Ilist to pdf
- 9. itextsharp postscript to PDF
- 10. PDF to Image - Magick ++
- 11. .eml to .pdf API
- 12. .cdr to pdf converion
- 13. Markdown to PDF
- 14. PDF to Apple Newsstand
- 15. 「Publish」to pdf
- 16. WPF:flowdocument to PDF
- 17. itext - pdf to html
- 18. PDF to PDF/A-2b without dUseCIEColor
- 19. 限制對資源的訪問.pdf .jpg
- 20. HTML to PDF問題
- 21. Bookmarklet to unframe PDF(IEEExplore)
- 22. HTML to PDF in ASP.NET
- 23. .doc to pdf using python
- 24. Imagemagick convert pdf to png
- 25. Active Admin view to PDF
- 26. maven hudson doc to pdf
- 27. PDF to XPS with java
- 28. Angular Js HTML to PDF
- 29. html to pdf with wkhtmltopdf
- 30. Ghostscript Multipage PDF to PNG