Sponsored Content
Operating Systems Linux Red Hat How to convert TXT to PDF in RHEL 6? Post 302957296 by magnus29 on Thursday 8th of October 2015 06:19:46 PM
Old 10-08-2015
Quote:
Originally Posted by jgt
Have you tried pcl2ps. Your source document is a PCL5 print file.
Excellent! You are absolutely right. I used this source file as PCL and able to generate PDF without any special/junk characters using gpcl6 from ghostpcl 9.18. But there's some small issue of getting more number of pages than source ( I tried 650 pages source file and it generated 810 pages of PDF). Few last lines of a page skipping to next page and pushing the next page further. Each page starts with a "Print Date" & "Page xxx" (in the first line). Can we use this pattern to adjust each page OR gpcl6 has any parameter that can define this? I tried few but no luck.

Could you please suggest any ideas on how to fix this?

Again, many thanks for your correct direction Smilie
 

10 More Discussions You Might Find Interesting

1. HP-UX

Convert PCL to PDF

We're looking for a program that can convert Text and PCL formats into a PDF. We're not looking to spend a fortune so my search so far has come up empty handed as everyone wants an arm and a leg. I found txt2pdf, but that doesn't support PCL formats. Any help would be appreciated. TIA (2 Replies)
Discussion started by: Randle2I
2 Replies

2. Windows & DOS: Issues & Discussions

convert pdf's to word

Does anyone know any good tools to convert a pdf to word, I can usually cut & paste without a hitch but I have a pdf that doesn't like that and surrounds text with lines as though a table or prints tables in miniscule text. It's only one pdf file so I'm reluctant to buy a product. (3 Replies)
Discussion started by: gefa
3 Replies

3. UNIX and Linux Applications

looking for convert rtf to pdf utility

Hello all i have server that needs to add the ability to convert rtf files to pdf what you recommend me to use ( not open office please ) its spouse to process lots of files . something i can wrap in code and use (2 Replies)
Discussion started by: umen
2 Replies

4. HP-UX

pdftotext / PDF conversion to .txt binaries

Good day, I've been trying to look for a way to compile the Xpdf sources in our HP-UX server, but have been failing to do so because there is no GCC installed, and I don't have privileges to install GCC. I was looking for a functionality to convert PDF files to .txt, which is exactly like the... (2 Replies)
Discussion started by: mike_s_6
2 Replies

5. Shell Programming and Scripting

Perl - Convert html to pdf - PDF::FromHTML

Hi, I am trying to convert html to pdf using perl module PDF::FromHTML, am getting the error as given below. not well-formed (invalid token) at line 2, column 17, byte 56 at C:/Perl/lib/XML/Parser.pm line 187 at C:/Perl/site/lib/PDF/FromHTML.pm line 140 The perl code is as given... (2 Replies)
Discussion started by: DILEEP410
2 Replies

6. Shell Programming and Scripting

convert solaris file to pdf

Hi Guys, How to convert a unix text file into pdf? Please Help!!!!!!!!!!!!!!!!!! Thanks (2 Replies)
Discussion started by: Phuti
2 Replies

7. Shell Programming and Scripting

.PDF and .TXT to .XML. Is it possible?

Hi! I need to realize this task. In folder i have such files: name1.txt name1.pdf name2.txt name2.pdf etc... I want to scan this folder, match files with same name (name1.txt with name1.pdf, name2.txt with name2.pdf) and create files name1.xml and name2.xml, based on it. i.e: i want... (13 Replies)
Discussion started by: optik77
13 Replies

8. Shell Programming and Scripting

Download pdf's using wget convert to txt

wget -i genedx.txt The code above will download multiple pdf files from a site, but how can i download and convert these to .txt? I have attached the master list (genedx.txt - which contains the url and file names) as well as the two PDF's that are downloaded. I am trying to have those... (7 Replies)
Discussion started by: cmccabe
7 Replies

9. Solaris

How to convert pdf file to txt?

Hello Unix gurus, I am learning unix. I have lots pdf data files. I need to convert them into txt files. Can you please guide me how to do that? Thanks in advance. Rao (1 Reply)
Discussion started by: raopatwari
1 Replies

10. Linux

Need software details that can convert PDF to PS

we have been trying to convert PDF into PS for one of the projects. Our PDF files are little big and we use PDFTOPS which takes long time to convert it and it's a freeware. Is there any licensed version of such kind of tool? Responses are really appreciated. (2 Replies)
Discussion started by: venureddy
2 Replies
pdfimages(1)						      General Commands Manual						      pdfimages(1)

NAME
pdfimages - Portable Document Format (PDF) image extractor (version 3.00) SYNOPSIS
pdfimages [options] PDF-file image-root DESCRIPTION
Pdfimages saves images from a Portable Document Format (PDF) file as Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files. Pdfimages reads the PDF file PDF-file, scans one or more pages, and writes one PPM, PBM, or JPEG file for each image, image-root-nnn.xxx, where nnn is the image number and xxx is the image type (.ppm, .pbm, .jpg). OPTIONS
-f number Specifies the first page to scan. -l number Specifies the last page to scan. -j Normally, all images are written as PBM (for monochrome images) or PPM (for non-monochrome images) files. With this option, images in DCT format are saved as JPEG files. All non-DCT images are saved in PBM/PPM format as usual. -opw password Specify the owner password for the PDF file. Providing this will bypass all security restrictions. -upw password Specify the user password for the PDF file. -p Include page numbers in output file names. -q Don't print any messages or errors. -v Print copyright and version information. -h Print usage information. (-help and --help are equivalent.) EXIT CODES
The Xpdf tools use the following exit codes: 0 No error. 1 Error opening a PDF file. 2 Error opening an output file. 3 Error related to PDF permissions. 99 Other error. AUTHOR
The pdfimages software and documentation are copyright 1998-2004 Glyph & Cog, LLC. SEE ALSO
pdffonts(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1) 22 January 2004 pdfimages(1)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy