Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.238
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
prawn /
[ HOME SHELL ]
Name
Size
Permission
Action
document
[ DIR ]
drwxr-xr-x
font
[ DIR ]
drwxr-xr-x
graphics
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
security
[ DIR ]
drwxr-xr-x
table
[ DIR ]
drwxr-xr-x
text
[ DIR ]
drwxr-xr-x
document.rb
23.32
KB
-rw-r--r--
encoding.rb
2.61
KB
-rw-r--r--
errors.rb
2.92
KB
-rw-r--r--
font.rb
13.46
KB
-rw-r--r--
font_metric_cache.rb
1.06
KB
-rw-r--r--
graphics.rb
19.4
KB
-rw-r--r--
grid.rb
6.44
KB
-rw-r--r--
image_handler.rb
896
B
-rw-r--r--
images.rb
6.42
KB
-rw-r--r--
measurement_extensions.rb
671
B
-rw-r--r--
measurements.rb
995
B
-rw-r--r--
outline.rb
11.32
KB
-rw-r--r--
repeater.rb
3.26
KB
-rw-r--r--
security.rb
10.4
KB
-rw-r--r--
soft_mask.rb
2.09
KB
-rw-r--r--
stamp.rb
4.43
KB
-rw-r--r--
table.rb
24.46
KB
-rw-r--r--
text.rb
16.76
KB
-rw-r--r--
transformation_stack.rb
1.13
KB
-rw-r--r--
utilities.rb
998
B
-rw-r--r--
version.rb
44
B
-rw-r--r--
view.rb
2.56
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : stamp.rb
# stamp.rb : Implements a repeatable stamp # # Copyright October 2009, Daniel Nelson. All Rights Reserved. # # This is free software. Please see the LICENSE and COPYING files for details. # module Prawn # The Prawn::Stamp module is used to create content that will be # included multiple times in a document. Using a stamp has three # advantages over creating content anew each time it is placed on # the page: # i. faster document creation # ii. smaller final document # iii. faster display on subsequent displays of the repeated # element because the viewer application can cache the rendered # results # # Example: # pdf.create_stamp("my_stamp") { # pdf.fill_circle([10, 15], 5) # pdf.draw_text("hello world", :at => [20, 10]) # } # pdf.stamp("my_stamp") # module Stamp # @group Stable API # Renders the stamp named <tt>name</tt> to the page # raises <tt>Prawn::Errors::InvalidName</tt> if name.empty? # raises <tt>Prawn::Errors::UndefinedObjectName</tt> if no stamp # has been created with this name # # Example: # pdf.create_stamp("my_stamp") { # pdf.fill_circle([10, 15], 5) # pdf.text("hello world", :at => [20, 10]) # } # pdf.stamp("my_stamp") # def stamp(name) dictionary_name, dictionary = stamp_dictionary(name) renderer.add_content "/#{dictionary_name} Do" update_annotation_references dictionary.data[:Annots] state.page.xobjects.merge!(dictionary_name => dictionary) end # Renders the stamp named <tt>name</tt> at a position offset from # the initial coords at which the elements of the stamp was # created # # Example: # pdf.create_stamp("circle") do # pdf.fill_circle([0, 0], 25) # end # # draws a circle at 100, 100 # pdf.stamp_at("circle", [100, 100]) # # See stamp() for exceptions that might be raised # def stamp_at(name, point) translate(point[0], point[1]) { stamp(name) } end # Creates a re-usable stamp named <tt>name</tt> # # raises <tt>Prawn::Errors::NameTaken</tt> if a stamp already # exists in this document with this name # raises <tt>Prawn::Errors::InvalidName</tt> if name.empty? # # Example: # pdf.create_stamp("my_stamp") { # pdf.fill_circle([10, 15], 5) # pdf.draw_text("hello world", :at => [20, 10]) # } # def create_stamp(name, &block) dictionary = create_stamp_dictionary(name) state.page.stamp_stream(dictionary, &block) end private def stamp_dictionary_registry @stamp_dictionary_registry ||= {} end def next_stamp_dictionary_id stamp_dictionary_registry.length + 1 end def stamp_dictionary(name) raise Prawn::Errors::InvalidName if name.empty? if stamp_dictionary_registry[name].nil? raise Prawn::Errors::UndefinedObjectName end dict = stamp_dictionary_registry[name] dictionary_name = dict[:stamp_dictionary_name] dictionary = dict[:stamp_dictionary] [dictionary_name, dictionary] end def create_stamp_dictionary(name) raise Prawn::Errors::InvalidName if name.empty? raise Prawn::Errors::NameTaken unless stamp_dictionary_registry[name].nil? # BBox origin is the lower left margin of the page, so we need # it to be the full dimension of the page, or else things that # should appear near the top or right margin are invisible dictionary = ref!( Type: :XObject, Subtype: :Form, BBox: [ 0, 0, state.page.dimensions[2], state.page.dimensions[3] ] ) dictionary_name = "Stamp#{next_stamp_dictionary_id}" stamp_dictionary_registry[name] = { stamp_dictionary_name: dictionary_name, stamp_dictionary: dictionary } dictionary end # Referencing annotations from a stamp XObject doesn't result # in a working link. Instead, the references must be appended # to the /Annot dictionary of the object that contains the # call to the stamp object. def update_annotation_references(annots) if annots && annots.any? state.page.dictionary.data[:Annots] ||= [] state.page.dictionary.data[:Annots] |= annots end end def freeze_stamp_graphics update_colors write_line_width write_stroke_cap_style write_stroke_join_style write_stroke_dash end end end
Close