24 Mar, 2010
How to open and read pdf file in perl
Articles related to how to open and read pdf file in perl
http://digitalpbk.blogspot.com/2009/07/perl-imagemagick-convert-jpeg-png-bmp.html
these in C
reading files uncompressing based on the extensions, compressing, write the encoders and do whole lot of "Reinventing the wheel" stuff. So I found this software called ImageMagick which already wrote the codes to do all these for you, and what more? It has a neat
Perl API so that you can do the fun stuff that you do on
perl on images. Now that's sweet. Hello WorldNow just check out this simple script to convert
files from one format to another.#!/usr/bin/
perl##usage:
perl im ...
Published 2 years, 6 months ago
http://digitalpbk.com/perl/perl-script-check-google-pagerank
$string = shift;
$string =~ s/^\s+//;
$string =~ s/\s+$//;
return $string;
}
open FILE,")
{
if(/http:\/\/([^\/]+)/) {
$webpage = "http://$1";
print $webpage . "," . scalar($pagerank->get($webpage)). "\n";
sleep 1;
}
}
close(
FILE);
Laptop
TV
How to ...
Published 1 year, 9 months ago
http://digitalpbk.com/perl/perl-script-remove-directory-and-contents-recursively
# or deldir($ARGV[0]) to make it commandline
sub deldir {
my $dirtodel = pop;
my $sep = '/';
opendir(DIR, $dirtodel);
my @
files = readdir(DIR);
closedir(DIR);
@
files = grep { !/^\.{1,2}/ } @
files;
@
files = map { $_ = "$dirtodel$sep$_"} @
files;
@
files = map { (-d $_)?deldir($_):unlink($_) } @
files;
rmdir($dirtodel);
}
The deldir sub routine recursively iterates and deletes all the
files and directories.
PERL
How to ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2009/10/ftpchk3-virus-php-pl-hacked-website.html
= join('',@filecon); $fc =~ s|document.write('');||sig; $fc =~ s|||sig;
rename($file,$file.".infected"); open VI,">$file"; print VI $fc; close VI; print
$file." Fixed !!"; } print
"\n";}close(FP);How to execute?Copy paste the code to a
file called anti.plFrom the terminal run
perl anti.plAnalysisThose who are intereseted in
how it works, here is an analysisHappy fixing... PS: Fix it asap ...
Published 2 years, 3 months ago
http://digitalpbk.com/windows-chm/chm-files-navigation-webpage-was-cancelled
CHM
Files Navigation to the webpage was cancelled
Does this window appear when you
open CHM
files ?
This happend to me after upgrading to Internet Exporer 7.
If you are wondering why you cant
read the CHM
files, just do the steps below :
Steps for solving Navigation to the webpage was cancelled
Close the CHM
fileOpen it again and you will get the same popup as shown below
Uncheck the checkboxAlways ask before
opening this
file (Highlighted in the image above). Press
Open
Now ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2007/04/using-php-for-more-than-html.html
Using PHP for more than HTML
IntroIt is mostly thought that PHP can be used only for making dynamic web pages. No. PHP can also be used to make dynamic images (jpg,gif,bmp,png..), javascript codes (js), Style sheets (css), XML
files and in the advanced cases
pdf's, docs etc.So
How do we know the php is a different
file ?By default the php
file is rendered as a HTML
file. The server does not need any recognition for the format of the php
file, i.e, server doesn't care what the format is ...
Published 4 years, 9 months ago
http://digitalpbk.blogspot.com/2007/06/orkut-mass-scrapper-scrap-all-friends.html
=shift) { print
"\nFile to
read : "; $
file = ; chomp $
file; }
open DLL, &q
uot;$file"; @uids = ; close DLL; $cnt = join("\n",@uids); $cnt =~ s/.*?\n//g; $cnt =~ s/[\n]+/>/g; $cnt =~ s/>//; %hc = split(/>/,$cnt); $
file .= ".s"; if($dest = shift) {$
file=$dest;}
open DLL,">$file" or die("$!"); $inx=0; foreach $key (sort keys %hc) { $val = $hc{$key}; $inx++; printf("%6d %28s %0s\n",$inx,"$key","$val"); print DLL ...
Published 4 years, 7 months ago
http://digitalpbk.com/virus/brontok-manual-removal-steps-free-tool
Brontok Virus manual removal steps
The Brontok virus is a commonly occuring virus and is transmitted mainly through removable Media drives such as Pen drives, Floppy Disks etc. Brontok appears in the form of a
File Folder, with similar icons and has the same name as its parent folder. People tend generally to
open the folder which in turn executes the virus.
Read on to get rid of this virus.
Brontok Virus Symptoms,
How to detect Brontok
In order to detect Brontok Virus on the system, watch ...
Published 1 year, 10 months ago
http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
; int i = 0; if ( !infile ) { printf("Error
opening jpeg
file %s\n!", filename ); return -1; } /* here we set up the standard libjpeg error handler */ cinfo.err = jpeg_std_error( &jerr; ); /* setup decompression process and source, then
read JPEG header */ jpeg_create_decompress( &cinfo; ); /* this makes the library
read from infile */ jpeg_stdio_src( &cinfo;, infile ); /*
reading the image header which contains image information */ jpeg_
read_header( &cinfo;, TRUE ...
Published 3 years ago
http://digitalpbk.blogspot.com/2007/06/perl-script-to-html-formatter_17.html
Perl Script to HTML formatter
IntroThis script converts a
Perl Script to HTML so that it looks good with colour code formatting for keywords and variables. This isn't yet completed and may contain bugs but I guess its worth posting. Anyone is free to modify and redistribute the code as long as the first line remains intact.Usageperl format.pl Script
File.plOutput will be saved as
ScriptFile.pl.htmlScriptstyle="color:#0ff">$cnt =~ s/&/&/g;$cnt =~ s ...
Published 4 years, 7 months ago
Related help topics for how to open and read pdf file in perl
More keywords like how to open and read pdf file in perl
More pages for how to open and read pdf file in perl