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.130
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 /
pdf /
core /
[ HOME SHELL ]
Name
Size
Permission
Action
annotations.rb
1.97
KB
-rw-r--r--
byte_string.rb
247
B
-rw-r--r--
destinations.rb
3.02
KB
-rw-r--r--
document_state.rb
2.39
KB
-rw-r--r--
filter_list.rb
874
B
-rw-r--r--
filters.rb
760
B
-rw-r--r--
graphics_state.rb
2.29
KB
-rw-r--r--
literal_string.rb
573
B
-rw-r--r--
name_tree.rb
4.15
KB
-rw-r--r--
object_store.rb
2.22
KB
-rw-r--r--
outline_item.rb
763
B
-rw-r--r--
outline_root.rb
295
B
-rw-r--r--
page.rb
5.67
KB
-rw-r--r--
page_geometry.rb
3.77
KB
-rw-r--r--
pdf_object.rb
3.58
KB
-rw-r--r--
reference.rb
1.83
KB
-rw-r--r--
renderer.rb
7.81
KB
-rw-r--r--
stream.rb
2.07
KB
-rw-r--r--
text.rb
9.92
KB
-rw-r--r--
utils.rb
207
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : graphics_state.rb
# frozen_string_literal: true # # Implements graphics state saving and restoring # # Copyright January 2010, Michael Witrant. All Rights Reserved. # # This is free software. Please see the LICENSE and COPYING files for details # module PDF module Core class GraphicStateStack attr_accessor :stack def initialize(previous_state = nil) self.stack = [GraphicState.new(previous_state)] end def save_graphic_state(graphic_state = nil) stack.push(GraphicState.new(graphic_state || current_state)) end def restore_graphic_state if stack.empty? raise PDF::Core::Errors::EmptyGraphicStateStack, "\n You have reached the end of the graphic state stack" end stack.pop end def current_state stack.last end def present? !stack.empty? end def empty? stack.empty? end end # NOTE: This class may be a good candidate for a copy-on-write hash. class GraphicState attr_accessor :color_space, :dash, :cap_style, :join_style, :line_width, :fill_color, :stroke_color def initialize(previous_state = nil) if previous_state initialize_copy(previous_state) else @color_space = {} @fill_color = '000000' @stroke_color = '000000' @dash = { dash: nil, space: nil, phase: 0 } @cap_style = :butt @join_style = :miter @line_width = 1 end end def dash_setting return '[] 0 d' unless @dash[:dash] array = if @dash[:dash].is_a?(Array) @dash[:dash] else [@dash[:dash], @dash[:space]] end "[#{PDF::Core.real_params(array)}] "\ "#{PDF::Core.real(@dash[:phase])} d" end private def initialize_copy(other) # mutable state @color_space = other.color_space.dup @fill_color = other.fill_color.dup @stroke_color = other.stroke_color.dup @dash = other.dash.dup # immutable state that doesn't need to be duped @cap_style = other.cap_style @join_style = other.join_style @line_width = other.line_width end end end end
Close