1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +00:00

pdf: Add function to render a page of a PDF to a bitmap

Use like so:

    Build/lagom/bin/pdf --render foo.png --page=50 path/to.pdf
This commit is contained in:
Nico Weber 2023-07-11 13:25:36 -04:00 committed by Sam Atkins
parent 8c13b83a84
commit c3f78d9561
3 changed files with 58 additions and 2 deletions

View file

@ -561,7 +561,7 @@ if (BUILD_LAGOM)
endif()
add_executable(pdf ../../Userland/Utilities/pdf.cpp)
target_link_libraries(pdf LibCore LibPDF LibMain)
target_link_libraries(pdf LibCore LibGfx LibPDF LibMain)
add_executable(sql ../../Userland/Utilities/sql.cpp)
target_link_libraries(sql LibCore LibFileSystem LibIPC LibLine LibMain LibSQL)