
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
===============================================================================
This gem has been packaged by Emmanuel Oga, EmmanuelOga.blogspot.com
I followed the instructions in the libharu_2_x_x.tar.gz package:
Build Haru as a static library.
NOTE: When you build haru for creating ruby extension library on linux platforms, run configure script with following command.
./configure --cflags=-fPIC
Change directory to "libharu-2.X.X/if/ruby" and run extconf.rb.
ruby extconf.rb
Then invoke "make install" command.
make install
That's all!!! I only "gemified" the code and included the samples.
WARNING! TO USE THIS GEM on linux you need proper build tools (complete gcc package), libpng and zlib. I had to make some research to find these for my ubuntu feisty o.s.
If you are using ubuntu (or maybe debian or other linux with apt support)
"sudo apt-get install build-essential"
should do the trick for the build environment.
For zlib and libpng, you could install the program "apt-file" (sudo apt-get install apt-file) and search the dependencies with it.
"apt-file search png.h" "apt-file search zlib.h"
Choose one of the listed packages and install it with apt-get. Then you should have no problem installing the gem.
Original readme follows:
===============================================================================
See INSTALL for instructions on how to install libpng.
Haru is a free, cross platform, open-sourced software library for generating PDF. It supports the following features.
You can add the feature of PDF creation by using Haru without understanding complicated internal structure of PDF.
The biggest differences are that all code is written in C. To our regret, because internal structures changed greatly, The API is not compatible with previous version.
However, the new-version has the following advantages compared with the previous version.
Haru is written in ANSI-C and should compile easily with any compliant C compiler. I inspected Haru in the following environment and make files for these environments are included in a package.
Also on platforms except the above, it is easy to build HARU. If you success to build HARU on other platforms, please send makefile to me. In addition, ZLIB and PNGLIB are required when you want to use the features of compression and embedding PNG images. (In the case of Windows, static library files for several compilers are included in the package for WIndows. In the case of most of UNIX, these libraries are usually installed.)
Haru can work as both static-library (.a, .lib) and shared-library (.so, .dll). When you use it as static-library, It can be used by C and a C++. But when you use it as shared-library, it can be used by many development languages which support shared library. So far, Haru provides bindings for Ruby, Delphi/Free Pascal and C#.
If you write bindings for other programing languages, please notice me!
static-library No runtime files are required.
shared-library In Windows, you have to distribute libhpdf.dll with a program. In UNIX you have to distribute libhpdf.so* with a program.
NOTE: In the UNIX environment, there are the cases that libz.so, libpng.so.x are necessary. About this, please refer to the documentation of PNGLIB and ZLIB.
Information-technology Promotion Agency(IPA) The development of Haru has been supported by Exploratory Software Project of Information-technology Promotion Agency(IPA), Japan.
All users of libHaru. We wish to thank all users of Haru. In particular, we thank Thomas Nimstad, LeslieM, Par Hogberg, adenelson, Riccardo Cohen, sea_sbs, Andrew. They gave me very useful advices.
Sourceforge.net We would like to thank sourceForge.net for project hosting.
Adobe Systems Inc. We thank Adobe Systems Inc. for publishing PDF specification.
TODO - todo for libharu
FAQs
Unknown package
We found that hpdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.