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
7
votes
3 answers

Load Images from memory (libharu) from Magick++ images

I am working on some pdf generation software in c++ based on libharu and I would like to be able to first manipulate images using Magick++ and then load them from memory using libharu function: HPDF_LoadRawImageFromMem() Which according to the…
rpechayr
  • 1,282
  • 12
  • 27
5
votes
2 answers

iOS PDF editing - Combining FastPDFKit / CGPDFContext and libHaru

I'm trying to add PDF Annotations onto an existing PDF file in iOS. I understand that using FASTPDFKit / CGPDFContext, it is possible to READ ( but not EDIT ) almost all the information from an existing PDF File ( Correct me if I'm wrong ). I also…
Mahadevan Sreenivasan
  • 1,144
  • 1
  • 9
  • 26
4
votes
3 answers

Read Pdf with C

I want to be able to read the content of pdf files. I need to do that with C on Linux. The closer i can get to this was here but I think Haru can only create pdf and is not able to read them (not 100% sure). PS: I only need the plain text from pdf
Rui Carneiro
  • 5,595
  • 5
  • 33
  • 39
4
votes
1 answer

German text not proper on PDF created by Libharu C++

I have to write German text on a pdf created by Libharu. I assign German Text to a string variable (i.e. std::string TestString = "VariableGesamtlänge";) and then put that text to a pdf. My simple code is following: //-----UTF8 Encoding …
skm
  • 5,015
  • 8
  • 43
  • 104
4
votes
1 answer

Proper way to compile project with debug symbols and cmake

Here is recommended to pass CMAKE_BUILD_TYPE as an argument to cmake when I want to obtain debug or release project builds. I'm trying to compile libharu with cmake and I would like to compile it with debug symbols. I've searched CMakeLists.txt…
Wakan Tanka
  • 7,542
  • 16
  • 69
  • 122
3
votes
0 answers

create pdf/a compliant pdf with libharu

i'm trying to create an pdf/a compliant document with libharu, but it doesnt work. The created pdf isn't pdf/a compliant. Here is my small example: pdf = HPDF_New(error_handler, NULL); if (!pdf) { printf("error: cannot…
Marco
  • 129
  • 1
  • 9
3
votes
1 answer

Text wrapping in LibHaru

I am working for some project development related to PDF generation using LibHaru. I plan to fit some text in a particular region. I used TextRect() for that but I have some trouble with the text wrapping. If the width of the text is more than…
3
votes
1 answer

Convert Long String to multiline string in libharu

I have following and getting very long line which want to convert into multiple line. As of now, The text is going outside my pdf. int show_data(){ YPOS -= 10; NextPage(); double ypos = YPOS; double maxWidth =…
user765443
  • 1,856
  • 7
  • 31
  • 56
3
votes
2 answers

why is my libharu pdf oversized with .png images?

I am creating a pdf using libharu in C++ (compiled as a .cgi) that features .png images. The code is fine, but my pdf's are ridiculously oversized. Each page features one image of around 30kb and around 4 text characters in libharu's system font. If…
M J Barrow
  • 111
  • 1
  • 7
2
votes
1 answer

How to use specific fonts, Verdana for example with libharu in Ubuntu

I have some type1 types in /usr/share/fonts/type1/gsfonts/, and even more after installing msttcorefonts. But in that diversity of fonts, i dont know which one is verdana or arial or else. And no verdana entries was found in…
Yola
  • 18,496
  • 11
  • 65
  • 106
2
votes
3 answers

Creating PDFs from iOS text fields

I'm working on the requirements & specifications for a new iOS app intended for use by certain professionals working "in the field". All day long for weeks on end, these folks have a sizable reporting burden to their superiors using standardized…
dgt
  • 21
  • 1
2
votes
0 answers

libharu HPDF_Page_TextRect utf8 character line break inside word

I just recognized a weird issue within the libharu c++ pdf-library (osx 10.6). Hope someone can give me a clue how to solve this. I am using a HPDF_Page_TextRect() to write auto-break supported text(utf8). Now it seams like libharu interprets…
martin
  • 21
  • 3
2
votes
1 answer

Encoding in pdf with libharu library

I'm trying to create a pdf document with help of libharu library version 2.3. Everything goes fine except for encoding. I need to insert Central European language (Czech). Source code saved as utf-8 and compiled under Linux gcc. In function…
Fanda
  • 325
  • 5
  • 14
2
votes
2 answers

Combining two PDF files in C++

In C++ I'm generating a PDF report with libHaru. I'm looking for someway to append two pages from an existing PDF file to the end of my report. Is there any free way to do that? Thanks.
Imbue
  • 3,897
  • 6
  • 40
  • 42
2
votes
1 answer

Setting up lib haru in an iPhone project for pdf creation

Has anyone ever setup lib haru on the iPhone and can tell me how to get it to work. I know there is a sample project on github (http://github.com/akisute/iPhonePDF) which uses the haru lib for creating a pdf. But I just can not figure out how to get…
jagse
  • 333
  • 4
  • 18
1
2 3 4 5 6