Code Monkey home page Code Monkey logo

vs_pdfium's Introduction

pdfium_lib

Google's pdfium codebase set up, by hand, as a vanilla Visual Studio solution that compiles to a static library on Windows under Visual Studio 2019.

Notes:

  • I pulled this code on 4/25/2019. It is whatever version of pdfium that implies. updated: currently using Pdfium code pulled on 2/25/2021.
  • I have turned off Xfa, javascript, and Skia. I may eventually enable Skia as a separate build configuration but I have no plans to turn on Xfa or js.
  • Both x64 and x86 configurations should now build.
  • I build all the 3rd party dependencies from code included herein, except for libjpeg-turbo which I statically link to as an included binary. I couldnt build libjpeg-turbo because it is compiled from assembly language files that are in the NASM dialect of assembly and out-of-the-box Visual Studio only supports MASM.
  • I build the 3rd party dependencies directly into the Pdfium library not as separate libs.

render_pdf

I've included an example command line utility that renders page ranges of PDFs to image files. usage is like

render_pdf.exe some.pdf -o outputfile_stem -f PNG -s 2.0 -r 3-5

which means render some.pdf to output files outputfile_stem-3.png, outputfile_stem-4.png, and outputfile_stem-5.png, scaled up by 200%. There is currently a bug in the image files in which the colors come out wrong. The bug is caused by stb-image-write expecting RGB formatted colors whereas Pdfium is outputting BGR colors.

vs_pdfium's People

Contributors

jwezorek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.