Configuration
Configuration file
The basic configuration file of ElasticPDF is config.js
, which supports configuration of language, initial color, etc. More configurations are not listed yet, but almost everything in ElasticPDF can be configured. Please contact us for details.
var post_to_parent = false;
var shiftKeyPressed = false;
// tips_language determines the operation prompt
// var tips_language = 'zh-cn';
var tips_language = 'en';
var lang = navigator.language || navigator.userLanguage;
var first_load = true;
var default_show_annotation_list = false; //Controls whether the list on the right is displayed by default
var dont_show_annolist = false;
//Whether other people's annotations can be edited
var modify_others_annotation = true;
//The id of the currently edited annotation
var modified_current_annotation_id = '';
var modified_page_num = '0';
var add_water_mark = false; //Whether to add a watermark
var show_my_menu = false; //Show the color control panel
var fold_my_munu = false;
var show_setting_menu = false; //Show configuration panel
var changed_number_value = false; //Modify the content of the color panel
var onload_record_history = true; //Save history once when loading
var object_modified = false; //Is the object edited
//Controls whether the annotations on each page of the list on the right are expanded by default
var default_show_onepage_annotation_list = true;
//Default display scale on the view
var show_scale_value = 1;
//Underline width and brush width
var default_underline_width = 1;
var default_brush_width = 15;
var default_arrow_width = 3; //Arrow thickness
//Default size of eraser
var default_eraser_brush_width = 30;
var default_text_size = 30;
//List of pdf pages to be extracted
var default_brush_opacity = 100;
var default_fill_color_opacity = 30; // Fill color opacity
var default_border_color_opacity = 100; // Border color opacity
//Colors of various annotations
var default_border_color = "rgba(17, 153,158,1)";
var default_text_color = "rgba(17, 153,158,1)";
var default_fill_color = 'rgba(255, 237, 0,0.30)';
var default_hyperlink_fill_color = 'rgba(0,129,255,0.3)';
var default_stamp_color = "#0081FF";
var default_brush_color = 'rgba(57, 181, 74,1)';
var default_brush_decimate = 0; // Brush corner smoothness
var default_screenshot_rect_fill_color = 'rgba(236, 240, 241,0.5)';
var default_screenshot_rect_background_color = "rgba(17, 153,158,1)";
var default_screenshot_rect_text_color = 'rgba(255, 255, 255,1)';
var default_transparency_color = 'rgba(255, 255, 25 5,0)';
var default_highlight_color = 'rgba(255, 237, 0,1)';
var default_highlight_border_color = 'rgba(0, 0, 0,0)';
var default_underline_color = 'rgba(57, 181, 74,1)';
var defult_top = 0; var defult_screen_shot_top = 30;
var default_eraser_color = "#0081FF";
//Various colors
var default_arrow_color = "rgba(17, 153,158,1)";
var default_arrow_opacity = 100;
var default_check_color = "rgba(17, 153,158,1)";
var default_check_opacity = 100;
var default_line_color = "rgba (17, 153,158,1)";
var default_line_opacity = 100;
var default_rectangle_color = "rgba(255, 237, 0,0.30)";
var default_rectangle_border_color = "rgba(17, 153,158,1)";
var default_rectangle_opacity = 30;
var default_circle_color = "rgba(255, 237, 0,0.30)";
var default_circle_border_color = "rgba(17, 153,158,1)";
var default_circle_opacity = 30;