How to modify an existing pdf with unix shell commands


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to modify an existing pdf with unix shell commands
# 1  
Old 06-07-2007
How to modify an existing pdf with unix shell commands

Hi,
I know that to create a pdf file I can use the txt2pdf command.
But if I would change an existing pdf file, by inserting lines in particular positions of this file, what can I use? And How?
# 2  
Old 06-07-2007
Fandwick,
Please specify as much relevant information as you can,
such as sample of the input file and the output you expect.
# 3  
Old 06-07-2007
you can download tools, or use a programming language like Python, or Perl (others as well) that supports pdf libraries.
for perl, you can search CPAN for pdf modules. For python, you can use reportlab or pdftools , among others as well..
# 4  
Old 06-08-2007
well.
I have a software written in Unibasic Language (Url), and usually I send the output of an elaboration to a printer using the lp command.
A client of mine have asked to send the output of this elaboration to an existing pdf file (that has a banner and a footer), modifying therefore the pdf file in the central part (adding the result of this elaboration.

I can send first the result to a text file and then i could insert this result (in the text file form) in the middle of the pdf file. I don't know Python, but i know a little Perl. Nevertheless, Idon't know if Unibasic may manage the Perl language.

Alternatively, I could create the pdf file from zero, inserting the banner and then the text result.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Retrieving a paragraph from a pdf file using shell commands

In the reference section of a research paper(in pdf form), many other paper names are cited which have been used inside the pdf at different places. If I give an input, the name of a paper which has been cited in the reference section and want to display the section (the paragraph) inside the pdf... (1 Reply)
Discussion started by: SK33
1 Replies

2. Shell Programming and Scripting

Modify existing values in a file

Hi, I am trying to write a shell script which will modify existing values and take backup of old values. file trying to modify is : /etc/sysctl.conf script name: modify.sh execute ./modify.sh enter ref no: 123 add below values in file sysctl.cnf kernel.shmall = 4194304 ... (7 Replies)
Discussion started by: darling
7 Replies

3. Shell Programming and Scripting

Need to implement new CRON job or modify the existing one in MDM PROD in coming days, which will sen

Need to implement new CRON job or modify the existing one in MDM PROD in coming days, which will send email of SQL statement running from past 1 minute.Currently there is one CRON job in PROD, which send below email. there is one cron job which send email, when there is long running... (0 Replies)
Discussion started by: dampu
0 Replies

4. UNIX for Dummies Questions & Answers

Need to modify a delimited file using UNIX commands. Please find description

i have a '|' delimited file having 4 fields. now i want to sort the data by combination of first three fields without changing order of 4th field. input file looks like this: 3245|G|kop|45 1329|A|uty|76 9878|K|wer|12 3245|G|kop|15 1329|A|uty|56 9878|K|wer|2 3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies

5. Shell Programming and Scripting

how to modify existing env var

greetings, i have the following env variable: LSB_HOSTS='t70cra102 t70cra102 t70cra108 t70cra108'the variable could be any number of host names and sometimes the same name several times. i was hoping there's a way to turn it into the following: NEW_LSB_HOSTS=,,,]always appreciate the help... (2 Replies)
Discussion started by: crimso
2 Replies

6. Shell Programming and Scripting

modify Existing MS excel workbook in perl

Hi I need to modify an excel file in perl and for which I installed perl in Linux 1. Open a existing excel file 2. delete an unwanted Sheet called "summary" 3. and i want to insert some data into range of cells ( B1:B11) 4. Remove unwanted value called "Sum" repeated in the... (1 Reply)
Discussion started by: luke_devon
1 Replies

7. Homework & Coursework Questions

Unix shell commands

Hello, ive recently finished university and im working as an assistant teacher in a secondary school. ive been given the objective t o give the students an assignment with a simple shell program in C/C++ with the support for several commands the Shell must also have the ability of processing... (1 Reply)
Discussion started by: figureout
1 Replies

8. Shell Programming and Scripting

pdf of Unix Shell proramming by Yashwant kanetkar needed

Hi All, im planning to scratch the shell prog. Can anyone plz post me the pdf of Unix Shell proramming by Yashwant kanetkar. Thx a lot in advance by iliyas (2 Replies)
Discussion started by: smartguy_iliyas
2 Replies

9. UNIX for Dummies Questions & Answers

UNIX Shell Commands Help . . .

I need to know these UNIX Shell Commands with the appropriate parameters. List the files in current directory beginning with extension .har. (% ls .har) View text file "hosts.copy" which spans multiple screens. Execute the batch file "tapeeject.bat" Copy all files from current... (2 Replies)
Discussion started by: pilgrimnoir
2 Replies

10. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

Hi , I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell. So scenario is that - I need to have one shell script which is ran as a part of crontab - in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies
Login or Register to Ask a Question