Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 26-02-2011, 05:16 PM   #1 (permalink)
Apprentice
 
prttal's Avatar
 
Join Date: May 2010
Posts: 55
Question Pdf help


I would like to know how to do this:
Convert a .txt file to .pdf
Which libraries should I use?
prttal is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 26-02-2011, 09:14 PM   #2 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: Pdf help

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++
nims11 is online now   Reply With Quote
Old 26-02-2011, 09:27 PM   #3 (permalink)
In The Zone
 
utkarsh009's Avatar
 
Join Date: Oct 2010
Location: Ranchi
Posts: 365
Default Re: Pdf help

@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.
__________________
dell p2211h | amd athlon II X4 635 @2.9 GHz. |gigabyte GA-880GM-UD2H |corsair 2x2GB DDR3 1333 MHz. RAM | Seagate 500 GB HDD |tagan tg500-u37|LG Optimus One P500
utkarsh009 is offline   Reply With Quote
Old 27-02-2011, 12:07 AM   #4 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: Pdf help

^^ i dont think so. he asked for a LIBRARY. also he posted it under the programming section
nims11 is online now   Reply With Quote
Old 27-02-2011, 06:56 AM   #5 (permalink)
In The Zone
 
utkarsh009's Avatar
 
Join Date: Oct 2010
Location: Ranchi
Posts: 365
Default Re: Pdf help

^^yah that was what i was thinking. but anyways my suggestion might help anyone looking for making a pdf file.
__________________
dell p2211h | amd athlon II X4 635 @2.9 GHz. |gigabyte GA-880GM-UD2H |corsair 2x2GB DDR3 1333 MHz. RAM | Seagate 500 GB HDD |tagan tg500-u37|LG Optimus One P500
utkarsh009 is offline   Reply With Quote
Old 27-02-2011, 10:54 AM   #6 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: Pdf help

With which platform? Java?
Generate PDF files from Java applications dynamically
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Old 28-02-2011, 01:33 PM   #7 (permalink)
Apprentice
 
prttal's Avatar
 
Join Date: May 2010
Posts: 55
Default Re: Pdf help

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?
prttal is offline   Reply With Quote
Old 02-03-2011, 08:17 AM   #8 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: Pdf help

Quote:
Originally Posted by prttal View Post
@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++...
http://www.freebyte.com/programming/...pppdflibraries

Last edited by nims11; 02-03-2011 at 08:27 AM.
nims11 is online now   Reply With Quote
Old 06-03-2011, 08:58 PM   #9 (permalink)
Apprentice
 
prttal's Avatar
 
Join Date: May 2010
Posts: 55
Default Re: Pdf help

Could anybody please help me with the code or at least the logic to be used?
prttal is offline   Reply With Quote
Old 07-03-2011, 12:33 AM   #10 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: Pdf help

http://libharu.sourceforge.net/demo/font_demo.c

Haru Free PDF Library

i think the code is quiet self-explanatory
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 07-03-2011, 02:46 PM   #11 (permalink)
Apprentice
 
prttal's Avatar
 
Join Date: May 2010
Posts: 55
Default Re: Pdf help

^^ 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.
prttal is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx
- by clinton

Advertisement




All times are GMT +5.5. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2