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

How can I show a string in 2/3 lines with libharu on iOS?

I have a string which is longer than the width of the place where it has to show up. What I want to do is show the string on 2 or 3 lines. My code is as follows: for (int i=0; i
Lewion
  • 235
  • 1
  • 3
  • 17
0
votes
0 answers

Probrem with LibHaru library

I have problem with encountered linking errors : Error 112 error LNK2019: unresolved external symbol HPDF_Stream_WriteToStreamWithDeflate referenced in function HPDF_Stream_WriteToStream C:\Users\tykab\OneDrive\Dokumenty\Visual Studio…
0
votes
2 answers

handle HPDF_FAILD_TO_ALLOC_MEM during creation of pdf file

I am using libharu library for creating pdf and getting following into system hPDF error error_no=4117, detail_no=0 which HPDF_FAILD_TO_ALLOC_MEM My query may I know the reason behind this error. and application got crash. is there way to handle…
user765443
  • 1,856
  • 7
  • 31
  • 56
0
votes
1 answer

Can I get a byte array From PDF image File with Podofo or libHaru?

When I checked libharu and podofo, I checked the ability to save PDF files, but could not check the ability to load PDF and store them in a byte array. Can I get a byte array From PDF image File with Podofo or libHaru? If not, what is the proper…
0
votes
1 answer

Libharu explain link in QT c++

I download libharu.zip, try to include it into QT creator c++. But I don't have lib*.a files in libharu. What do I need to do? It has some makefiles etc. I find some info about makefile, but don`t understand how it works in QT creator. nmake -f…
Usagi
  • 13
  • 3
0
votes
1 answer

Convert .bmp to .pdf on Keil 4 platform

In my embedded project, I'm using emWin for capturing the screenshot. The image saved is in .bmp format. Now my requirement is to convert this image into a pdf file. Since there is no option in emWin to save as pdf, I'm thinking of using libharu…
Ullagaddi
  • 21
  • 6
0
votes
1 answer

In PDF,which coding mode and font does Russian text need?

I want to get a pdf with Russina text. VS2010 use libharu My source code file is encoded as Cyrillic(ISO) Use this code to set font and encoding detail_font = HPDF_GetFont(pdf, "Times-Roman", "ISO8859-5"); The full code : int main (int argc,…
0
votes
1 answer

Have to embed fonts when using utf-8 in libharu?

Yes,I have to ask another question. I just want to generate a pdf with Russian text and I find libharu-RELEASE_2_3_0 that can help me . by the code: HPDF_UseUTFEncodings(pdf); HPDF_SetCurrentEncoder(pdf,"UTF-8"); detail_font_name =…
0
votes
3 answers

Does the libharu-RELEASE_2_3_0 support Russian text display?

I Checked the libharu-RELEASE_2_3_0,there are hpdf_encoder_cns.c,hpdf_encoder_cnt.c,hpdf_encoder_jp.c,hpdf_encoder_utf.c which code support Russian text ?
0
votes
1 answer

no "tags" / "structure tags" in libHaru PDF?

I am using libHaru (by including the source in my C++ code) to generate PDF files. I am hoping to make these PDF files accessible by adding "tags" (aka "structure tags"). From what I can see in the documentation and source code, libHaru does not…
M Katz
  • 5,098
  • 3
  • 44
  • 66
0
votes
1 answer

C LibHaru reference to not defined

I need to use LibHaru in a project and I've downloaded and installed it, the configure and make worked fine. But now, when I try to use it in the code doesn't recognize the functions. I'm trying in a Linux Mint distribution. The HPDF_Doc, Page and…
Opresor
  • 53
  • 1
  • 1
  • 9
0
votes
1 answer

Loading PNG image from file to memory buffer using libharu

I want to load PNG image from file to buffer and then to HPDF_Image, but I can't get image from buffer using HPDF_LoadPngImageFromMem, as it returns HPDF_INVALID_PNG_IMAGE. // Getting size std::ifstream t("3CM//A_3cm2.png"); t.seekg(0,…
0
votes
0 answers

LibHaru C Windows install issue

I'm trying to install the libHaru C library for use in an IDE which uses a GCC compiler in Windows. In fact I do not know where to start from, since my attempts to launch the ./configure command were uneffective (instructions here: libharu Wiki -…
0
votes
1 answer

C++ Windows using libharu - HPDF_Doc undefined

I spent the better part of a full day yesterday trying to get libharu built so that I could use it in my project. After fighting with it, I was finally able to get zlib, libpng & libharu built successfully with no errors. Now, in my project, I'm…
0
votes
0 answers

File does not get created

I am using gRPC to communicate from a client to a server. I am using the Asynchronous Greeter example. I want the server to create a PDF file when ever the client sends a message to the server. I have a function called makefile() that will create…
amanda45
  • 535
  • 10
  • 29