Questions tagged [libharu]

libHaru is a free, cross platform, open source library for generating PDF files.

libHaru is a free, cross platform, open source library for generating PDF files.

It supports the following features:

  • Generating PDF files with lines, text, images.
  • Outline, text annotation, link annotation.
  • Compressing document with deflate-decode.
  • Embedding PNG, Jpeg images.
  • Embedding Type1 font and TrueType font.
  • Creating encrypted PDF files.
  • Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R).
  • Supporting CJK fonts and encodings.

You can add the feature of PDF creation by using HARU without understanding complicated internal structure of PDF.

libHaru is written in ANSI C, so theoretically it supports most of the modern OSes.

88 questions
1
vote
2 answers

How to draw Thai text to PDF file by using libharu library

i am using free pdf library libharu to generate PDF file, but i have a encoding problem, i can not draw Thai lanugage text on PDF file, all the text shows "???.." Somebody know how to fix it? Thanks
tbmvp
  • 11
  • 1
  • 3
1
vote
1 answer

Cross Compile GhostPDL for ARM9

I am trying to cross compile GhostPDL-9.06 (this and any higher version). I intend to use pcl6 on a MOXA arm9 linux computer. The provided tool chain compiles fine. However, the binary ends up running on the build machine instead of the target. It…
DaDaDadeo
  • 53
  • 6
1
vote
2 answers

Avoid duplicate symbols with static library and cocoapods

I'm using OpenCV through cocoapods and libharu, both are using libpng, I wasn't able to include the opencv.framework on libharu static library to use libpng. Do I need rename every symbol or there is a way to use the same libpng?
JE Herrejon
  • 402
  • 3
  • 10
1
vote
1 answer

Rendering PDF's with Wt and libHARU Undefined Reference

I am trying to generate PDF's using the libHARU library in conjunction with the Wt Web Toolkit. I am trying to build example code that they provide in their Wt Widget Gallery (Wt PDF Renderer) that exports a PDF from XHTML. I am compiling using g++…
larrylampco
  • 597
  • 1
  • 9
  • 33
1
vote
2 answers

create table in pdf using haru library in c++

I need to create Table structure and fill data using Haru library in C++. Can anyone provide me sample example which create table structure using Haru library.
user765443
  • 1,856
  • 7
  • 31
  • 56
1
vote
1 answer

libharu memory allocation failed while loading image

I have some C code trying to use libharu. Although I can use every function of this library (even UTF8) I can hardly draw images. Here is some very basic code: #include #include #include #include #include…
1
vote
2 answers

Changing Page in LIb Haru (C++)?

I am working on a project in which i have to convert documents into pdf files programmatically in c++. I am using libharu open source library for this. My code is working good if the document is of one single page but when i am changing page the…
GDSM
  • 166
  • 2
  • 7
1
vote
1 answer

Libharu creates errors about pngtest.c with windows.h

I have faced with an easy-solvable problem with libharu which I asked here; but unfortunately when I fixed the first problem, a second one appeared. I'm using Codeblocks IDE with GNU GCC C++ Compiler (MingGW) in Windows 7. I compiled libharu.a,…
1
vote
2 answers

Illegal use of type as expression

I have the following lines in my source code which is giving the error error C2275: 'HPDF_Array' : illegal use of this type as an expression" : This is the actual code in the header file: typedef struct _HPDF_Array_Rec *HPDF_Array; typedef…
Rakesh K
  • 8,237
  • 18
  • 51
  • 64
1
vote
0 answers

C# and libharu: using TTF-Fonts

I'm trying to use TTF-Fonts within libharu. string arialtmp = doc.LoadTTFontFromFile("c:\\windows\\fonts\\ariali.ttf", true); HPdfFont arial2 = doc.GetFont(arialtmp, "CP1250"); page.SetFontAndSize(arial2, 25); page.BeginText(); page.MoveTextPos(50,…
0
votes
2 answers

libharu compiled Android so, but can't load library

Now I compiled the libharu into so, but when I write the code :System.LoadLibrary, it can't work, the error message is: java.lang.UnsatisfiedLinkError: Couldn't load libharu.so: findLibrary returned null What's up?
jimtoner
  • 11
  • 2
0
votes
1 answer

how to add haru library to Xcode 4.1 project

i recently find haro library for pdf generation and i get a iPhonepdf sample from https://github.com/akisute/iPhonePDF, the sample works fine but actually i could nt use the library in my project, i do step by step as…
ali
  • 1,023
  • 2
  • 14
  • 38
0
votes
2 answers

Why so big difference in sizes of almost identical documents

Have two pdfs, first created with libharu and second created with PDF::API2. If not mention to coordinates then content is the same. But first pdf oversize second by four times. Only one distinction what i found that is type of fonts embedding…
Yola
  • 18,496
  • 11
  • 65
  • 106
0
votes
0 answers

Font issue in creating PDF by LibHaru(UTF-8)?

I tried to generate pdf files with libharu. There are many different languages input in my case, so I chose the encoder(UTF-8). The following architecture is about my code: HPDF_UseUTFEncodings(pdf); HPDF_SetCurrentEncoder(pdf, "UTF-8"); …
0
votes
1 answer

Unable to build libharu on windows

I've been trying all day to find a way to use the libharu library on windows with c++, but I can't figure out how to build it... I've tried nmake -f script/Makefile.msvc but this gives me: Microsoft (R) Program Maintenance Utility Version…
ldall03
  • 141
  • 2
  • 11