Ubuntu :: Pdftk Stamp Function - Stamp A Pdf Document
Apr 8, 2010
I've been trying to use the stamp function in pdftk. I'm trying to stamp a pdf document with a pdf I generate on the fly that contains the current date. Below is what I have so far. The problem is that pdftk says "Error: failed to open stamp PDF file". the file is in the same dir as execution, I've made it 776, I've specified full paths... nothing seems to work. I've even tried the "prompt" option and specify it manually but I get the same behavior. This is pdftk version 1.4.
Script (named "go"):
Code:
# date in YYYY-MM-DD format
umask 0
# create a variable with a formatted date
TODAY=`date +%Y-%m-%0e`;
[Code].....
View 3 Replies
ADVERTISEMENT
Jun 2, 2010
I need to make a few folders, but I need the fold name to reflect the time which they were created. For example: if I create a folder at on 2010.06.03 at 13:01:34 then I would need a file name something similar to the following 20100603_130134. In addition, could the same method be used for .tar files? I would like a bash script which I can run to perform the following; however, I am not familiar with scripting in Linux yet.
View 2 Replies
View Related
Jan 20, 2010
How do I change the time stamp on videos that I record so that they say what DAY they were recorded instead of just the DATE? I can't find the config file which I assume would be the place to look.
View 1 Replies
View Related
Oct 10, 2010
how I should go about rotating files that end with a date stamp. This is the configuration I have to rotate my Apache access files, but it is not working:
/var/log/httpd/access_log.* {
compress
daily
rotate 1
copytruncate
missingok
notifempty
}
The files are created with a date extension like the ones below:
[Code]....
View 6 Replies
View Related
Aug 9, 2010
I am trying to run prstat for an extended time, outputting to a file and appending a time-stamp to each line (running on Solaris 10). I have tried this:
prstat -c -U usrname 60 480 | nawk '$1=="PID" { "date +%d%m%Y-%H:%M:%S" | getline d ; close("date") } { print d,$0 }' > /tmp/fileName &
this only appends the time the command was started to each line. I would like to fix this so that a new time is recorded every 60 seconds.
View 1 Replies
View Related
Mar 3, 2011
I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows
Quote:
-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king
But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.
View 3 Replies
View Related
Oct 25, 2010
Newbie 1st post here. Trying to find the most efficient way to copy a file to a different directory and rename it with a date stamp extension. Looking to accomplish this with one command if possible.
File = make_file
Full path /home/user1/bin/scripts/make_file
would like to move to the following directory /home/user1/bin/scripts/archive/
I'm trying to find out how to use command substitution along with the date command that when I copy the file to the archive directory it gets renamed with a time stamp extension. It should look something like "make_page_12:00:00-24-10-2010" I've tried a few different combinations using the cp and mv commands but can't seem to get it to work the way I want to.
View 3 Replies
View Related
Apr 13, 2011
I want to use history command to show the time stamp, user id, ip address, command logged
View 1 Replies
View Related
Jan 6, 2010
I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these files.
We are running Ubuntu 9.10 Server and we have mounted the following
1. /mnt/old-raid ##Old raid from the old server
2. /mnt/new-raid ##New raid on the server
I know we can read out the timestamp on the old server using the command stat -c '%Y' <<filname>>
I know we can change the timestamp of the file, using the command touch -d '<<date>>'
To get from the stat -c date to the input date in touch we need to use date -d @<<timestamp>> +'%d %b %Y %R'
So my question is, how can I create a loop that will list all files in a folder, get their timestamp and update the old timestamp with the new?
View 4 Replies
View Related
Jun 15, 2011
I have the following issue: I want to upload some documents on my site(mostly pdfs) with watermark and as far my status is: I have managed to get my watermark in:
transparent png
pdf format
>> When it is a text/pdf I use a script using pdftk, which merges the pdf version of watermark to the pdf document (success)
>> When it is a scanned document(pdf) if I use pdftk, it only works if I apply the watermark as stamp (foreground not background). But in this case the watermark overlaps the original document despite the fact that watermark has the right opacity.... (fail) So the only solution is to apply a transparent watermark. So the question is:How to make a pdf transparent Or how to apply watermark from png file I tried adobe acrobat with wine and it applies the pdf watermark as stamp(foreground) with right opacity so I suppose it was a kind of bug maybe from pdftk, but I would like a command like way to do it so that I can make a script.
View 3 Replies
View Related
Feb 24, 2011
In the Windows world where I came from, Irfanview freeware easily renamed a large folder of JPEG photos by EXIF time & date stamps, appending a unique number if the time and date stamps were the same. Is there an equivalent rename-by-EXIF information batch command in Ubuntu 10.04 Lucid? For example, change (based solely on EXIF information): FROM:DSC_0001.JPG TO:20110224_09:34:56am.JPG
View 9 Replies
View Related
Feb 1, 2009
I am trying to rename multiple files in a directory and add the Date/Time stamp to the file name.
Example:
file1.txt
file2.txt
file3.txt
Renamed to
2009_02_01_21.txt
2009_02_02_21.txt
2009_02_03_21.txt
I am able to accomplish this using this command:
mv file1.txt "`date +%Y_%m%d_%H`".txt
But I want to automate this task, I have many files to process and I dont want to do them one by one.
I already tried this but it does not work
mv *.txt "`date +%Y_%m%d_%H`".txt
View 2 Replies
View Related
Jul 14, 2011
I'm trying to create a script that will look for a "filename" under /etc/, date stamp the file and copy it to /var/www/upload
View 5 Replies
View Related
May 20, 2011
I was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system
View 7 Replies
View Related
Aug 16, 2010
pdftk could be installed in the Suse 11.0 version, and worked very well. I love it. But recently, after I install Suse11.3 on my Dell desktop (64 bits), everything works fine except the pdftk. When I am trying to install it from Yast, it warns:nothing provides pdftk needed by pdftk-qgui-0.1.9.2-0.pm.1.1.x86_86, and gives me two conflict resolutions: 1. do not install it2. break pdftk-qgui by ignoring some of its dependencies.Obviously, none of them are the correct answer .
View 2 Replies
View Related
Mar 13, 2010
how to get xsane to scan a document and have it display as a full 8.5x11 sized document instead of something half that size? I've been trying and trying and can't seem to figure it out.
View 3 Replies
View Related
Jan 6, 2011
Just installed pdftk in 10.04 LTS - Lucid Lynx but I can't see it. Synaptic's says its installed, have re-installed and re-booted but still no trace.
Anyone any idea what might be wrong.
View 2 Replies
View Related
Jul 6, 2010
Anyone have better documentation or an update to the this version of the file Tomcat HOWTO openSUSE as that document is referencing 10.2. Or a document for use with SLED.
View 3 Replies
View Related
Apr 21, 2011
This is a question for those that use pdftk. I've been using it for about the last year or so to combine manipulate PDFs and it is awesome. Until today, mostly what I've been using it for has been for less than five files. Today I have been working on a manual at work which consists of about 100 separate files with a total page count of 167. The pages are a mix of 8.5x11(inch) and 11x17(inch). The pages needed to be in a specific order, the only way I could think of to do this instead doing this all in the CLI, I created a text file which contained a list or sequence of the files. To make it easier for me to read and group, I first put each file on a separate line.
chapter1_separation_page.pdf
file1.pdf
file2.pdf
[code]....
View 10 Replies
View Related
Nov 13, 2009
I have come to rely on pdftk, which has disappeared in opensuse 11.2I tried just cloning the package from 11.1 into factory & 11.2 in OBS, which didn't work. I tried tracking that down and got bogged down in a maze of dependancies and ultimately some incompatibility with the latest g++ or gcj which I failed to figure out.I see the errors in the build log, I just don't see what's wrong with the code, especially since it builds fine on 11.1. It looks like maybe it was always technically incorrect code, but only now gcj or g++ refuses to accept it. But I can't tell what's actually wrong with it. And the home site hasn't been updated in 3 years so no luck there.Has anyone managed to build pdftk on 11.2 ?Or, is there some other package that can do what pdftk does ? (non-interactive pdf manipulation)I see debian and ubuntu still have it in their latest versions. So next I'm going to try just importing a .deb with alien or maybe try porting their patch set over to my OBS package.
View 9 Replies
View Related
Jan 7, 2010
I got these warnings, on Slackware64 13.0, so I aborted the build:
Code:
gcj -O2 -fPIC -w --encoding=UTF-8 --classpath="/tmp/SBo/pdftk-1.41/java_libs" -c Anchor.java -o Anchor.o
GC Warning: Repeated allocation of very large block (appr. size 2097152000):
[code]....
View 3 Replies
View Related
Sep 9, 2010
Can someone tell me which of the parameters in pdftk is responsible for converting my PDF (which is a bunch of images "staped" together) into a pdf with text that I can ctrl+f? The manual isn't clear enough for me.
View 4 Replies
View Related
Apr 12, 2010
I downloaded pdftk 1.41 fromand installed on Red Hat Enterprise Linux 4, 32 bitI am primarily using this utility to uncompress pdf files to remove the 'Flate' compressionIt works good with small pdfsHowever, when i use to uncompress pdf files of size 35MB or more, the uncompressed output file grows up to 2GB and then the uncompression fails with error:"File size limit exceeded"I can concatenate two files with output file size upto 3GB in size, so 2GB is not the limitation at the linux level
View 1 Replies
View Related
Mar 24, 2011
I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.
View 9 Replies
View Related
Nov 16, 2010
Code:
#include <iostream>
using namespace std;
[code]...
View 1 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Mar 30, 2011
I'm currently using OpenSuse 11.1 web server. This is bad since 11.1 is no longer supported. the reason why I am using it is because Function set_magic_quotes_runtime() was no longer being used. (so I was told)
That being said, is there a way to get Function set_magic_quotes_runtime() to function on the newer versions of OpenSuSE?
View 9 Replies
View Related
Feb 21, 2010
the function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:
-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).
Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?
View 6 Replies
View Related
Apr 22, 2011
I am curious if perhaps I am doing something wrong extracting pages from a pdf doc using pdftk and creating a new file. I am only extracting the odd pages from the file and outputting them to a new file that is now only 20 pages instead of the input's 40 pages, yet the new output file is still 1.4Mb in size, the same as the original.
It seems strange to extract only half the pages of a large document and end up with a result that is the same size. how to streamline the resulting pdf's using pdftk?
BTW this is the command I am using, in case perhaps I am missing an option to optimize file size or something:
Code:
pdftk A=ch15.pdf cat A1-40odd output odd.pdf
View 1 Replies
View Related
Jun 20, 2010
I looked on the net for such function or example and didin't find anything, thus after having made one i guess it would be legitimate to drop it to see what others thinks of it.
#!/bin/bash
addelementtoarray()
{
local arrayname=$1
[code]....
View 10 Replies
View Related