9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
So I've worked how to add page numbers based on regex. It's using the footer text.
How do we get the total amount added so we have page number with the total number of pages?
Desired output: Page No:1 of 5
Thanks in advance. (15 Replies)
Discussion started by: tugar
15 Replies
2. Web Development
Made some changes to the forum, so when a page is not found and generates a 404 error, the site redirects to "Today's Posts" page and added a "Not Found" message:
<?php
header('HTTP/1.0 404 Not Found', true, 404);
header("Location: https://www.unix.com/search.php?do=getdaily&redirect=404");... (0 Replies)
Discussion started by: Neo
0 Replies
3. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
4. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
5. Web Development
Hi
Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally.
Any ideas?
Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies
6. UNIX for Dummies Questions & Answers
Good afternoon,
I wonder how i could use unix commands to ease the reading of long command result output ?
like the "php -i" or any other command that returns a long answer.
I could not find the right terms to Google it or search the forum. Therefore I bother you with this question.
... (3 Replies)
Discussion started by: Mat_k
3 Replies
7. Shell Programming and Scripting
Hi All,
I am facing some strange problem. can anyone help to resolve this.
When i open any programs, scripts or any files in VI editor, only first 8 lines are displaying in the bottom of the screen. If i press control + f to go to next page, again second 8 lines are displaying.
I have to... (3 Replies)
Discussion started by: senthil_is
3 Replies
8. Solaris
Hi,
Currently I'm experience very high page ins on my system running on solaris 10.
From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins.
Details as follow:
oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies
9. Shell Programming and Scripting
hi all
i have file_1 which contains 66 pages and i want to print only page 1 to 3
i try to write like this
lp -d name_of_printer file_1 -P 1-7
this command does not work
any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies
Text::PDF::Page(3pm) User Contributed Perl Documentation Text::PDF::Page(3pm)
NAME
Text::PDF::Page - Represents a PDF page, inherits from Text::PDF::Pages
DESCRIPTION
Represents a page of output in PDF. It also keeps track of the content stream, any resources (such as fonts) being switched, etc.
Page inherits from Pages due to a number of shared methods. They are really structurally quite different.
INSTANCE VARIABLES
A page has various working variables:
curstrm
The currently open stream
METHODS
Text::PDF::Page->new($pdf, $parent, $index)
Creates a new page based on a pages object (perhaps the root object).
The page is also added to the parent at this point, so pages are ordered in a PDF document in the order in which they are created rather
than in the order they are closed.
Only the essential elements in the page dictionary are created here, all others are either optional or can be inherited.
The optional index value indicates the index in the parent list that this page should be inserted (so that new pages need not be appended)
$p->add($str)
Adds the string to the currently active stream for this page. If no stream exists, then one is created and added to the list of streams for
this page.
The slightly cryptic name is an aim to keep it short given the number of times people are likely to have to type it.
$p->ship_out($pdf)
Ships the page out to the given output file context
perl v5.8.8 2006-09-09 Text::PDF::Page(3pm)