create pdf of text file help

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat create pdf of text file help
# 1  
Old 11-15-2011
create pdf of text file help

Can someone please tell me why this is not working? I have created numerous pdf's from text files by following these instructions and this time it is not working.

Convert jpeg files to PDF under Linux | bitPrison.net

Code:
convert /home/liveuser/Documents/hw7 /home/liveuser/Documents/hw7.pdf
convert: no decode delegate for this image format `/home/liveuser/Documents/hw7' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `/home/liveuser/Documents/hw7.pdf' @ error/convert.c/ConvertImageCommand/2949.

# 2  
Old 11-15-2011
It doesn't know what 'hw7' is. Without the file extension, it can't tell.
# 3  
Old 11-16-2011
Quote:
Originally Posted by Corona688
It doesn't know what 'hw7' is. Without the file extension, it can't tell.
Are you saying add something like txt to the end of it? Its just a text file I made with vi.
# 4  
Old 11-16-2011
Yes, 'convert' determines file type from extension, which is how it knows you want an adobe acrobat file just because you told it "whatever.pdf"
# 5  
Old 11-18-2011
Quote:
Originally Posted by Corona688
Yes, 'convert' determines file type from extension, which is how it knows you want an adobe acrobat file just because you told it "whatever.pdf"
Any recommended extensions then? It can't convert rtf or doc, and does a REALLY POOR job of converting txt.
# 6  
Old 11-18-2011
Lying to it won't make it do a better job, just cause it to break. Name text files .txt

Its output can probably be improved by telling it what font you want it to use, or maybe formatting the input with fold and so forth.

Last edited by Corona688; 11-18-2011 at 04:38 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create a text file and a pdf file from Linux command results.

Hello. The task : Using multiple commands like : gdisk -l $SOME_DISK >> $SOME_FILEI generate some text file. For readiness I must insert page break. When the program is finished I want to convert the final text file to a pdf file. When finished, I got two files : One text file and One pdf... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Pdftotext from multiple pdf files to a single text file

I have a directory having a number of pdf files. I want to convert all the files to text, stored in a single text file The following creates multiple text files ls *.pdf | xargs -n1 pdftotext (1 Reply)
Discussion started by: kristinu
1 Replies

3. Shell Programming and Scripting

Create invoice pdf file

Hi all, I'm trying to create a script to merge a csv or txt file with a pdf template. So i have a pdf template with company logo and i want to merge it with a csv or txt file so i can create a complete invoice in pdf. now i do find some command line tools to do this but i need a pro version... (3 Replies)
Discussion started by: dicenl
3 Replies

4. Shell Programming and Scripting

Script to create a text file whose content is the text of another files

Hello everyone, I work under Ubuntu 11.10 (c-shell) I need a script to create a new text file whose content is the text of another text files that are in the directory $DIRMAIL at this moment. I will show you an example: - On the one hand, there is a directory $DIRMAIL where there are... (1 Reply)
Discussion started by: tenteyu
1 Replies

5. UNIX for Dummies Questions & Answers

Text file + image/form/overlay file to PDF

Hi, We have an app specific legacy environment running SCO Openserver 5.0.7. I need to be able to (1) scan a pre-existing “form” consisting of logo/boxes/lines/static text as an image , (2) lay a print file from the app "on top of the image" and (3) output the "merge" as a PDF file. Scanning... (1 Reply)
Discussion started by: 65bit
1 Replies

6. HP-UX

Convert text file into pdf on HP-UX platform

I am looking for a tool to convert text file into pdf on HP-UX platform. Current version of OS - $ uname -a HP-UX XXXXXXX B.11.23 U ia64 4125393404 unlimited-user license I'm able to get "ClibPDF-2.02"; A library for creating PDF files on HP-UX 11.00, PA-RISC 1.1 Not sure if... (2 Replies)
Discussion started by: mail4usr
2 Replies

7. SCO

Create a PDF file

Currently own an SCO OpenServer 6 system. Will like to know how to convert files printed to PDF so they can be sent to customers via e-mail. Ex. account statements. (4 Replies)
Discussion started by: RicardoM
4 Replies

8. Shell Programming and Scripting

Create multiple text file from a single text file on AIX

Hi I need to create multiple text files from onc text file on AIX. The data of text files is as below: ********************************************** ********************************************** DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009 Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies

9. AIX

How convert PCL or PDF file to text in AIX

I need to conver a PCL or PDF file to text in AIX, and I don´t know how. (0 Replies)
Discussion started by: 10789
0 Replies
Login or Register to Ask a Question

Featured Tech Videos