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
0
votes
1 answer

Building libharu from scratch

Recently I'm trying to build and use libharu library in order to create PDFs from bitmaps. I've made some research trough it's site : http://libharu.org/. There are instructions showing how to build it, but i doesn't build because it has…
Alexander Demerdzhiev
  • 1,034
  • 2
  • 14
  • 29
0
votes
2 answers

Auto page break in libHaru PDF

I'd like to add an automatic page break to a libHaru PDF in iOS. I do have several text fields in the app which contain the user filled data. when i generate the pdf i first measure the expected size of the text-rect going to be created. if it…
kriz
  • 1
  • 2
0
votes
1 answer

How to place WT widgets into PDF?

UPDATE I have also made a post about this issue on the WT forums here http://redmine.webtoolkit.eu/issues/3042. For those of you looking for more information on styling, you will find more information there. ORIGINAL POST I have a problem with…
user2115945
  • 223
  • 3
  • 12
0
votes
1 answer

how to use haru?

can anyone help me on how to use libharu. i already downloaded libharu and am trying to run their sample demo in dev-c++ environment but the errors a raises. this is the error message:…
mark
  • 31
  • 1
  • 6
0
votes
0 answers

Write in a filled rectangle using lib haru

I'm trying to generate a pdf file with the lib haru on c++. But I don't know how to write a text in a filled rectangle: // draw and fill/stroke a rectangle HPDF_Page_SetRGBFill(page, 0.75, 0.75, 0.75); HPDF_Page_Rectangle(page, 50, 100, 200,…
Alfred
  • 307
  • 1
  • 2
  • 16
0
votes
1 answer

Linking problems with libharu

I like using libharu for my pdf needs. I have an older Qt4 project under a VM. It builds via vs2010 and everything works fine. If I clone the VM, remove Qt4, install Qt5 and try to build a project that uses libharu I get linking errors to zlib. Both…
barchiesi
  • 32
  • 6
0
votes
1 answer

iOS PDF with libHaru issue

I use libHary to create PDF. I use this answer iOS SDK - Programmatically generate a PDF file to create pdf. In this library method HPDF_LoadPngImageFromFile exist, but I need to load image from data (or UIImage). How can I do that? Now the best…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
2 answers

Holding an Integer array in a struct. Cannot defne struct properly

I would like to hold an array of integers in my struct struct HPDF_TableAttributes { HPDF_REAL rows; HPDF_REAL cols; HPDF_REAL rowH; HPDF_REAL colW; HPDF_REAL tabX; HPDF_REAL tabY; HPDF_REAL tabH; HPDF_REAL tabW; …
user1311286
0
votes
1 answer

Cannot use LibHaru because cannot find the reference of zlib

I am trying to build a program that will hopefully create dynamic .pdf files. I have actually developed a similar project with PHP for web, but now I want to write it with C++. This resulted me to rebuild those three libraries (zlib, libpng and…
0
votes
1 answer

Set background color of an PDF generated using libHaru

So I am trying to set background color in C++ using libHaru for my new pdf. I am having issues setting it. Searched through documentation and either was not there or I missed it. Anyone who knows how to set background color for pdf page? Also any…
grobartn
  • 3,510
  • 11
  • 40
  • 52
0
votes
0 answers

C: Using HARU Free PDF library in Visual Studio C++

Im trying to use Haru libraries in VS 2010 Ultimate C++, but even if I run their sample code I get errors that look like this: error LNK2019: unresolved external symbol _HPDF_Page_TextOut referenced in function _main and many more similar…
speedyTeh
  • 247
  • 1
  • 8
  • 22
0
votes
1 answer

Why Memory allocation failed whe HPDF_LoadPngImageFromFile using libhpdf?

I got a exception ERROR: error_no=1015, detail_no=0 using HPDF_LoadPngImageFromFile to load a png file with a jpeg file extention.I have libpng and libpng-dev installed. I can not figure out why this exception occurs. Anyone help me? Thanks.
Treper
  • 3,539
  • 2
  • 26
  • 48
-1
votes
2 answers

device handle in GetTextExtentPoint32()

I want to use GetTextExtentPoint32 to compute the size of the string in pixels. GetTextExtentPoint32 has the follwoing syntax: BOOL GetTextExtentPoint32( _In_ HDC hdc, _In_ LPCTSTR lpString, _In_ int c, _Out_ LPSIZE …
skm
  • 5,015
  • 8
  • 43
  • 104
1 2 3 4 5
6