DIGIT-ARC read-only archive · snapshot: July 23, 2026

Pdf help

11 posts · originally from https://geek.digit.in/community/threads/pdf-help.137243/

prttal
prttal Original post #1
Feb 26, 2011 at 5:16 PM
I would like to know how to do this:
Convert a .txt file to .pdf
Which libraries should I use?
nims11
nims11 #2
Feb 26, 2011 at 9:14 PM
u can use ITEXT which is a free library for java and C# to create PDF. U can also use HARU which is a free PDF library for C++
utkarsh009
Feb 26, 2011 at 9:27 PM
@OP: you mean to say you need to create a pdf file on yourself with your own text. then just type or the text in openoffice.org and use the option "export as pdf" present in the standard toolbar.
nims11
nims11 #4
Feb 27, 2011 at 12:07 AM
^^ i dont think so. he asked for a LIBRARY. also he posted it under the programming section
utkarsh009
Feb 27, 2011 at 6:56 AM
^^yah that was what i was thinking. but anyways my suggestion might help anyone looking for making a pdf file.
Liverpool_fan
Feb 27, 2011 at 10:54 AM
With which platform? Java?
Generate PDF files from Java applications dynamically
prttal
prttal #7
Feb 28, 2011 at 1:33 PM
Sorry. I forgot to tell you the platform is C++.

---------- Post added at 01:33 PM ---------- Previous post was at 01:18 PM ----------

@nims11:Could you some help with the code using HARU?
nims11
nims11 #8
Mar 2, 2011 at 8:17 AM
@nims11:Could you some help with the code using HARU?

sorry i can't help, i don't know much about HARU, go through its documentation.

here are some more free pdf libraries for C/C++...
*www.freebyte.com/programming/cpp/#freecpppdflibraries
prttal
prttal #9
Mar 6, 2011 at 8:58 PM
Could anybody please help me with the code or at least the logic to be used?
arpanmukherjee1
Mar 7, 2011 at 12:33 AM
*libharu.sourceforge.net/demo/font_demo.c

Haru Free PDF Library

i think the code is quiet self-explanatory
prttal
prttal #11
Mar 7, 2011 at 2:46 PM
^^ Thank you. I have created that program. Now I want to try a .html/.mht file.
Actually I wanted to ask that if I don't know the contents of the file, what parameters do I set so that it converts the specified thing into pdf page.

---------- Post added at 02:46 PM ---------- Previous post was at 02:42 PM ----------

For this I think an HTML library might also be required.