CN116702721A - Method and device for adding reading effect to OFD file - Google Patents

Method and device for adding reading effect to OFD file Download PDF

Info

Publication number
CN116702721A
CN116702721A CN202310994141.9A CN202310994141A CN116702721A CN 116702721 A CN116702721 A CN 116702721A CN 202310994141 A CN202310994141 A CN 202310994141A CN 116702721 A CN116702721 A CN 116702721A
Authority
CN
China
Prior art keywords
page
reading effect
content
file
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310994141.9A
Other languages
Chinese (zh)
Inventor
严伟
何冉冉
何中
龚超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Zhongwei Technology Software System Co ltd
Original Assignee
Jiangsu Zhongwei Technology Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Zhongwei Technology Software System Co ltd filed Critical Jiangsu Zhongwei Technology Software System Co ltd
Priority to CN202310994141.9A priority Critical patent/CN116702721A/en
Publication of CN116702721A publication Critical patent/CN116702721A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for adding reading effect to an OFD file, which comprises the steps of obtaining the width and the height of a page in an analysis file and drawing the page; issuing a reading effect instruction to perform related operation, wherein the type of the reading effect instruction is that when a page is changed, the page layout is dynamically adjusted according to the width and the height of the page recalculated when the reading effect instruction finishes the operation; when the type is the additional effect, the additional effect comprises local highlighting and other effects, and is used for setting the effect on the page content, the bottom plate and the image layer suspended on the page.

Description

Method and device for adding reading effect to OFD file
Technical Field
The invention relates to the field of office work, in particular to a method and a device for adding a reading effect to an OFD file.
Background
The OFD national standard is formally released in 2016 in China, the requirements of controllable and long-term storage of format files can be met, and the function basically consistent with the PDF format is realized. The standard adopts a general XML language to describe the file format, which is beneficial to the information transmission and utilization.
At present, the typesetting of the OFD files is unified, vertical or horizontal, the height of each page is fixed, the pages are sequentially arranged downwards according to the page number sequence, the thumbnail switches the page number, and the position of the corresponding page is directly calculated according to the number of the thumbnail. When the same file or multiple files are combined and displayed, the pages cannot be arranged in a mixed mode horizontally and vertically, rotation, scaling and typesetting operations on one page cannot be independently performed, and selective enlarged projection of local content in one page in the file cannot be performed.
Disclosure of Invention
The invention aims to provide a method and a device for adding a reading effect to an OFD file, which solve one or more of the problems in the prior art.
In a first aspect, the present invention provides a method for adding a reading effect to an OFD file, including:
acquiring the width and the height of each page in an analysis file, and drawing the page, wherein the file comprises a horizontal page and/or a vertical page;
reading effect instructions are issued on the pages, wherein the types of the reading effect instructions comprise page changes, and the specific types of the page changes comprise single page zooming, single page rotation and single page typesetting conversion;
judging the type of the reading effect instruction according to the reading effect instruction, and performing corresponding operation,
recalculating the width and the height of the page when the operation is completed according to the reading effect instruction, and dynamically and responsively adjusting the layout of the page according to the recalculated width and the recalculated height of the page;
the type of reading effect instruction also includes additional effect settings including local highlighting and other effects.
In some embodiments of the present invention, in some embodiments,
the file comprises an OFD file;
the file comprises two storage units, wherein one storage unit is used for storing a source file which does not contain a reading effect instruction, the other storage unit is used for storing a reading effect instruction, and the reading effect instruction is associated with the source file;
the specific process for drawing the page is as follows: constructing a bottom plate, and adopting a rolling view as the bottom plate; registering each page rendering in the file on a bottom plate, binding page data on each page in the source file with the bottom plate, wherein each individual page is a sub-view on the bottom plate of the scrolling view, the page data comprises elements, content corresponding to the elements and rendering data, and the rendering data comprises the width of the page, the height of the page, the position information of the page and the page ID;
the page data also includes a spacing between the current page and the last page, and the starting position of the current page is calculated from the ending position of the last page plus the spacing.
In some embodiments, when the type of the reading effect instruction is single-page scaling, the reading effect instruction includes scaling, the corresponding operation is that the base plate depth monitors the change of the rendering data, the width of the page, the height of the page and the position information of the page are recalculated according to the scaling, corresponding sub-views are found according to the page ID to perform corresponding adjustment, the content corresponding to the element on the page is re-rendered to the adjusted sub-views according to the scaling, the position of the subsequent page is adjusted by applying the principle of the data driving view, and the rendering data and the sub-views are bidirectionally bound while rendering.
In some embodiments, when the type of the reading effect instruction is single page rotation, the reading effect instruction includes a single page rotation angle, the single page rotation angle includes a clockwise rotation x ° and a counterclockwise rotation y °, the x and y are user-defined, the corresponding operation is that the base plate depth monitors the change of the rendering data, the sub view corresponding to the one page turns the whole page along the central axis of the diagonal line according to the single page rotation angle, the width of the page, the height of the page and the position information of the page are recalculated, the position of the subsequent page is adjusted by applying the principle of the data driving view, and the rendering data and the sub view are bidirectionally bound while rendering.
In some embodiments, when the type of the reading effect instruction is single page typesetting conversion, the reading effect instruction comprises typesetting type, the typesetting type comprises transverse typesetting and vertical typesetting, the reading effect instruction also comprises typesetting information, the typesetting information comprises an alignment mode, indentation and a distance, the corresponding operation is that the depth of a bottom plate monitors the change of rendering data, all contents of a current page are subjected to typesetting and rendering again according to the typesetting type and the typesetting information, the width of the page, the height of the page and the position information of the page are recalculated, the position of a subsequent page is adjusted by applying the principle of a data driving view, and the rendering data and the sub-view are subjected to bidirectional binding while rendering.
In some embodiments of the present invention, in some embodiments,
the setting range of the additional effect comprises a single page, a plurality of pages and an entire file in a single file, and a single page, a plurality of pages and an entire file in a plurality of combined files, wherein the single page, the plurality of pages and the entire file are displayed in a multi-file combined mode; the position locking mode of the additional effect setting comprises manual marking, searching, association and directory indexing; the rendering mode of the additional effect is any one or more of content, style, form and action,
other effects include any one or more of effects set on the floor, effects suspended on the page layer including watermarks, effects suspended on the page layer being effects rendered on a new layer built on the text layer of the page, effects suspended on the page layer including bullet screens.
In some embodiments, when the type of reading effect instruction includes local highlighting, the reading effect instruction includes amplifying, vector labeling, forward projection, back projection, shading, plaque, gray scale, dithering, jumping, flying, lighting, flashing, firing, flooding, ink jetting, from far to near, from near to far, wherein the reading effect instruction is the corresponding operation of amplifying:
forming a closure area and acquiring contents corresponding to elements in the closure area;
constructing a temporary interface on the current page;
and projecting the content corresponding to the elements in the closure area onto a temporary interface according to the amplification proportion, and completing local selective amplification.
In some embodiments, on the temporary interface, the content projected on the temporary interface is modified, the modification type includes editing and/or signing, the editing includes adding, deleting and modifying, the signing includes handwriting signing, keyboard input, picture video, audio, web page, AI and other multimedia element signing, and during the modification or after the modification is completed, the modified content is reversely mapped to the current page according to the projection relationship.
In some implementations, the endorsement content storage presentation includes:
the method comprises the steps that firstly, a signing completion or temporary interface is closed, signing content is stored, binding relation between the signing content and content corresponding to elements in a closure area is established, and the signing content is directly rendered and displayed at corresponding positions on a page;
the second mode is that the temporary interface is closed, an icon is arranged on one side of the closure area, signature content is stored, a binding relation between the signature content and content corresponding to elements in the closure area and the icon is established, the signature content is directly rendered and displayed at a corresponding position on a page in a default state, the icon is clicked, the signature content is hidden, the icon is clicked again, and the signature content is rendered and displayed at the corresponding position on the page;
and closing the temporary interface, setting an icon on one side of the closure area, storing the signing content and the amplification ratio, establishing a binding relation between the signing content and the content corresponding to the elements in the closure area and the icon, not rendering and displaying the signing content on a default page, clicking the icon, constructing the temporary interface on the page, and displaying the content corresponding to the elements in the closure area and the signing content on the temporary interface according to the amplification ratio.
In a second aspect, the invention provides a device for adding a reading effect to an OFD file, the device for adding a reading effect to an OFD file is used for executing the method for adding a reading effect to an OFD file, and the device for adding a reading effect to an OFD file comprises a main control module, and a rendering display module, a monitoring module, a data processing module, a storage module, a temporary interface management module and a projection module which are connected with the main control module, wherein
The main control module is used for coordinating the work among the modules connected with the main control module;
the monitoring module comprises an instruction monitoring module and a rendering data monitoring module, wherein the instruction monitoring module is used for acquiring an instruction for identifying the reading effect, and the rendering data monitoring module is used for deeply monitoring the change of rendering data of the page;
the rendering display module is used for constructing a bottom plate and drawing pages in the file on the bottom plate;
the data processing module is used for calculating rendering data;
the storage module is used for storing rendering data, files, changed contents and association relation between the signing contents and the files, and the changed contents comprise signing contents;
the temporary interface management module is used for constructing a temporary interface, monitoring the content change on the temporary interface and obtaining the changed content;
the projection module is used for projecting the selected content on the page onto the temporary interface, reversely projecting the changed content on the temporary interface onto the page, and establishing the association relation between the changed content and the selected content on the page.
The method and the device for adding the reading effect to the OFD file have the advantages that:
the original edition is subjected to vertical and transverse staggered display when a plurality of OFD files are combined and displayed;
the invention realizes that the content, style, form and action of the file can be rendered under the condition of single file, multiple combined files and multi-file combined display;
the contents of the file can be subjected to position locking through various means of manual marking, searching, associating and catalog indexing, back plate rendering is carried out on the file, cosmetic rendering is carried out on the text, and floating rendering is carried out on the upper space of the text, so that the outstanding reading effect of the contents is realized;
the method has the advantages that operations such as rotation and scaling can be independently carried out on a certain page, the page is displayed together with other pages after the operations, the problem of horizontal and vertical pages is solved, the reading experience is improved, various rendering modes are adopted in a multi-page file or a file combined and displayed, special effect treatment is carried out on a certain page or a plurality of pages, and obvious prominent effect can be achieved in integral reading;
the emotion of the human is revolutionarily brought into the file, so that the local content, the chapter, the single page, the multiple pages and the whole of the file can be realized, and various emotion elements of the human are added, so that the anthropomorphic expression of a reading object is started, and basic conditions are provided for the development of the artificial intelligence of reading.
Drawings
FIG. 1 is a flow chart of a method for adding a reading effect to an OFD file according to some embodiments of the present invention;
FIG. 2 is a block diagram of an apparatus for adding a reading effect to an OFD file according to some embodiments of the present invention;
FIG. 3 is an effect diagram of single page enlargement in page changes in some embodiments of the invention;
FIG. 4 is a diagram of page effects in some embodiments of the invention;
FIG. 5 is an effect diagram of the page of FIG. 4 rotated 90 degrees counterclockwise in accordance with the present invention;
FIG. 6 is a graph of the effect of localized highlighting in some embodiments of the present invention;
FIG. 7 is a diagram of weather effects with the addition of a barrage in some embodiments of the invention;
fig. 8 is a graph of the effect of adding fire and jetting ink in some embodiments of the invention.
Detailed Description
In combination with the content shown in fig. 1, the embodiment proposes a method for adding a reading effect to an OFD file, an application corresponding to the method for adding a reading effect to an OFD file is inserted into a reader, and the method for adding a reading effect to an OFD file is executed, and the specific execution process includes the following steps:
s1, opening a file by using a reader, wherein the file is an OFD file, the file comprises two storage units, one storage unit is used for storing a source file which does not contain a reading effect instruction, the other storage unit is used for storing the reading effect instruction, the reading effect instruction is associated with the source file, and the specific opening method is as follows:
s1.1, constructing a bottom plate, and adopting a rolling view as the bottom plate;
s1.2, acquiring the width and the height of each page in an analysis file, registering each page in the file on a bottom plate in a rendering mode, binding page data on each page in a source file with the bottom plate, wherein each individual page is a sub-view on the bottom plate of a rolling view, the page data comprises elements, content corresponding to the elements, rendering data and the interval between the current page and the last page, and the rendering data comprises the width of the page, the height of the page, the position information of the page and page ID;
it should be noted that the starting position of the current page is calculated from the ending position of the previous page plus the interval;
s2, selecting a page or content, sending a reading effect instruction on the page, judging the type of the reading effect instruction, performing related operation, wherein the type of the reading effect instruction comprises single page zooming, single page rotation, single page typesetting conversion and additional effect setting, the additional effect comprises local highlighting,
it should be noted that, the manner of issuing the reading effect instruction includes forming a plurality of buttons on the bottom plate, the buttons are correspondingly arranged with the type of the reading effect instruction, and clicking the buttons can trigger the corresponding reading effect instruction; the mode of issuing the reading effect instruction further comprises the steps of right clicking to form a drop-down frame suspended above the page, displaying the type of the reading effect instruction on each item of the drop-down frame correspondingly, and clicking the item can trigger the corresponding reading effect instruction;
the specific process comprises the following steps:
s2.1, a user moves a mouse to right click on a current page according to requirements, selects the current page, triggers the reading effect instruction type of single page zooming, forms a pop-up frame on the page, displays an editable zooming scale on the pop-up frame, confirms and cancels a corresponding trigger piece, displays a default value when popping (if the user needs to adjust the zooming scale, only needs to re-edit the default value), clicks the corresponding trigger piece on the pop-up frame (the trigger piece can be a button), confirms the delivery of the reading effect instruction, closes the pop-up frame (clicks the corresponding trigger piece when single page zooming is not performed, closes the pop-up frame, and does not change the current page), monitors the change of rendering data in depth, and utilizes a zooming technology to recalculate the width of the page, the height of the page and the position information of the page according to the zooming scale, finds the corresponding sub-view according to the page ID, and re-renders the content corresponding to the element on the page onto the adjusted sub-view after the zooming, so that the vector is ensured to be displayed in the zooming, the display of the content is ensured, the refreshing position of the page after the adjustment of the application data is driven, and the initial page is bound to the zooming data is rendered in a two directions, such as a clear view, and the rendering data is simultaneously: forming a single-page enlarged effect diagram as shown in fig. 3;
s2.2, a user moves a mouse to a right click on a current page according to requirements, selects the current page, triggers a reading effect instruction type of single page rotation, forms a pop-up frame on the page, displays a single selection list on the pop-up frame, confirms and cancels a corresponding trigger piece, wherein the single selection list comprises two items, the corresponding contents of the two items respectively rotate clockwise by x degrees and anticlockwise by y degrees, (x, y is actively edited by the user according to the requirements), wherein the user clicks any item according to the requirements, then clicks the trigger piece for confirming a scaling ratio on the pop-up frame, confirms the issuing of the reading effect instruction, closes the pop-up frame (clicks the trigger piece for canceling when the single page rotates, closes the pop-up frame, does not change the current page), monitors the change of rendering data in depth of a bottom plate, turns over the whole page according to the angle of single page rotation along a diagonal central axis, recalculates the width of the page, the height of the page and the position information of the page, applies the principle of data driving view to adjust the position of the subsequent page, and simultaneously carries out bidirectional binding on the turned data and the sub-view, such as rendering. Performing anticlockwise rotation of a single page by 90 degrees on the page shown in fig. 4 to form an effect diagram shown in fig. 5;
s2.3, a user moves a mouse to right click on a current page according to requirements, the current page is selected, a reading effect instruction type for single page typesetting conversion is triggered, pop-up frames are formed on the page, the pop-up frames are displayed with typesetting types, confirmation and cancellation of corresponding trigger pieces, the typesetting types comprise horizontal typesetting and vertical typesetting, the user clicks to select horizontal typesetting or vertical typesetting according to requirements, a new pop-up frame is formed, the new pop-up frames display typesetting information, confirmation and cancellation of corresponding trigger pieces, the typesetting information comprises an alignment mode, retraction and spacing (page related typesetting information can directly adopt the prior art and is not detailed), values involved in the typesetting information can be edited, the corresponding trigger pieces are clicked and confirmed after editing, the pop-up frames for the current display typesetting information are closed (the corresponding trigger pieces are clicked when not edited, the pop-up frames for the current display typesetting information are closed, the corresponding trigger pieces are also clicked on the pop-up frames are clicked, the descending of the reading effect instruction is confirmed, the pop-up frames for displaying the reading effect instruction types are closed (the trigger pieces corresponding to be clicked when typesetting is not changed), or the page position of the corresponding trigger pieces are clicked and the page corresponding trigger pieces are not changed, the page position is changed, the current page layout information is read and the page is adjusted according to the fact that the current page position is changed, the depth is changed, the page rendering information is adjusted, and the page position is adjusted, the page position is used to be changed, rendering data and sub views are bound in two directions while rendering;
s2.4, a user drags on a page displayed on a reader according to the requirement to form a closure area to select an area to be amplified, a path corresponding to the closure area is obtained, a pop-up frame is formed on the page, an amplification proportion which can be edited is displayed on the pop-up frame, corresponding triggering pieces are confirmed and cancelled, a default value is displayed on the amplification proportion during pop-up (if the user needs to adjust the amplification proportion, only the default value is required to be edited again), the user clicks the corresponding triggering piece (the triggering piece can be a button) on the pop-up frame, the issuing of the reading effect instruction is confirmed, the pop-up frame is closed (when partial amplification is not performed, the triggering piece corresponding to cancel is clicked, the pop-up frame is also closed, the current page is not changed), and a temporary interface is constructed on the current page; and finding the content corresponding to the page element according to the path corresponding to the closure area, amplifying and projecting the content onto the temporary interface according to the amplifying proportion, completing local selective amplification, and directly closing the temporary interface when the part of the content is not needed to be amplified and checked.
When the current OFD file is stored, the source file of the OFD file is not changed, and the reading effect instruction newly issued on the OFD file and the original reading effect instruction are stored into a storage unit for storing the reading effect instruction.
In the process of combining and displaying a plurality of OFD files, in the process of S1, the height and width of each page in each OFD file are calculated, and then the original version of the OFD file is displayed on the bottom plate as it is according to the sequence of the plurality of OFD files.
The user performs signing operation on the content on the temporary interface; during or after signing, the formed signing content is reversely mapped to the current page according to the projection relation, wherein the signing content storage and display mode comprises one or more of the following modes:
the method comprises the steps that firstly, a signing completion or temporary interface is closed, signing content is stored, binding relation between the signing content and content corresponding to elements in a closure area is established, and the signing content is directly rendered and displayed at corresponding positions on a page;
the second mode is that the temporary interface is closed, an icon is arranged on one side of the closure area, signature content is stored, a binding relation between the signature content and content corresponding to elements in the closure area and the icon is established, the signature content is directly rendered and displayed at a corresponding position on a page in a default state, the icon is clicked, the signature content is hidden, the icon is clicked again, and the signature content is rendered and displayed at the corresponding position on the page;
and closing the temporary interface, setting an icon on one side of the closure area, storing the signing content and the amplification ratio, establishing a binding relation between the signing content and the content corresponding to the elements in the closure area and the icon, not rendering and displaying the signing content on a default page, clicking the icon, constructing the temporary interface on the page, and displaying the content corresponding to the elements in the closure area and the signing content on the temporary interface according to the amplification ratio.
In some embodiments, the initially opened file includes a reading effect instruction, after the S1.2 execution is completed, related operations are performed on the corresponding sub-views according to the association relationship between the reading effect instruction and the source file, and when a new reading effect instruction is issued from the file in the later stage, coordinate information in the reading effect instruction existing in the subsequent page is recalculated according to the newly issued reading effect instruction, so that the execution position of the existing reading effect instruction in the page is kept relatively consistent.
In some embodiments, a thumbnail region is arranged on one side of the bottom plate, a plurality of thumbnails are displayed in sequence in the thumbnail region, the thumbnails are in one-to-one correspondence with pages contained in the file, one thumbnail is clicked, and the page corresponding to the thumbnail is displayed on the bottom plate.
In some embodiments, when a page is selected, the sub-view drawing frame corresponding to the page is drawn out according to the width of the page, the height of the page and the position information of the page corresponding to the selected page, so that the selected state is highlighted.
In combination with the content shown in fig. 2, a device for adding a reading effect to an OFD file is provided, where the device for adding a reading effect to an OFD file is used for executing the method for adding a reading effect to an OFD file, and the device for adding a reading effect to an OFD file includes a main control module, and a rendering display module, a monitoring module, a data processing module, a storage module, a temporary interface management module, and a projection module connected with the main control module, where the rendering display module, the monitoring module, the data processing module, the storage module, the temporary interface management module, and the projection module are connected with the main control module
The main control module is used for coordinating the work among the modules connected with the main control module;
the monitoring module comprises an instruction monitoring module and a rendering data monitoring module, wherein the instruction monitoring module is used for acquiring an instruction for identifying the reading effect, and the rendering data monitoring module is used for deeply monitoring the change of rendering data of the page;
the rendering display module is used for constructing a bottom plate and drawing pages in the file on the bottom plate;
the data processing module is used for calculating rendering data;
the storage module is used for storing rendering data, files, changed contents and association relation between the signing contents and the files, and the changed contents comprise signing contents;
the temporary interface management module is used for constructing and managing a temporary interface, monitoring content changes on the temporary interface, wherein the content changes are editing and/or signing, and obtaining changed content;
the projection module is used for projecting the selected content on the page onto the temporary interface, reversely projecting the changed content on the temporary interface onto the page, and establishing the association relation between the changed content and the selected content on the page.
In some specific implementations of the present invention,
the setting of the additional effect can be carried out on the single page, the plurality of pages or all pages of the whole file in the single file, the plurality of combined files and the multi-file combined display, the content, the style, the form and the action of the file can be rendered, the setting position of the additional effect can be locked by various means of manual marking, searching, association and directory index during the rendering,
additional effects also include other effects and localized prominences,
the locally prominent effect is a page content effect, which includes vector labeling, front projection, rear projection, shadow, patch, gray scale, dithering, jumping, flying, lighting, flickering, from far to near, firing, flooding, ink jet, etc., wherein the page may exhibit dithering, jumping action effects such as: the contents shown in fig. 6, 7 and 8 are formed by adding the effect of local highlighting.
Other effects include any one or more of effects provided on the floor, effects suspended on the page layer including watermarks, effects suspended on the page layer being rendered on a new layer built on the text layer of the page, effects suspended on the page layer including bullet screens,
taking the theme colors, weather/solar/holiday effects (effects on the floor), geographical location display, and bullet screens (effects suspended on the page layer) as examples, wherein
The user right clicks the mouse to a certain position on the current page according to the requirement, the current position forms a pop-up box for displaying an additional effect list, the additional effect list is internally provided with triggering pieces of theme colors, weather/solar terms/festival effects, geographical position display, barrages and the like,
clicking a trigger piece of the theme colors in the additional effect list, selecting a current page, closing pop-up boxes on the page for displaying the additional effect list, reforming single-selection boxes for displaying a plurality of different theme colors, confirming and canceling pop-up boxes of the corresponding trigger pieces, clicking the confirmed trigger piece after selecting a certain theme color, replacing the base color of the current page with the selected theme color, and simultaneously displaying single-selection boxes of the plurality of different theme colors, confirming and canceling pop-up boxes of the corresponding trigger pieces to close; when clicking the cancelled trigger piece, displaying a plurality of single selection frames with different theme colors, and directly closing pop-up frames for confirming and cancelling the corresponding trigger piece;
clicking a trigger piece related to the weather/solar terms/festival effects in the additional effect list, wherein the weather/solar terms/festival effects can be directly stored in the storage module, coordinates of a current position are obtained, pop-up boxes for displaying the additional effect list on a page are closed, pop-up boxes for displaying storage paths for calling the weather/solar terms/festival effects, weather/solar terms/festival effect display positions, corresponding trigger piece confirmation and cancellation are reformed, the weather/solar terms/festival effect display positions comprise an upper left corner, a lower left corner, an upper right corner, a lower right corner and a current position, specific positions of the upper left corner, the lower left corner, the upper right corner and the lower right corner are all preset in a program, a storage path of the weather/solar terms/festival effects is input, the confirmed trigger piece is clicked after the weather/solar terms/festival effect display positions are selected, the weather/solar terms/festival effect display positions called by the paths are taken as current positions as examples, and the weather/solar terms/festival effect called by the paths are displayed at the current positions according to the coordinates of the current positions, and the weather/solar terms/festival effects called by the paths are simultaneously displayed at the current positions, corresponding weather/solar terms/festival effect display positions and corresponding to the trigger piece confirmation/festival effect display positions; when clicking the cancelled trigger piece, displaying an input box for calling a storage path of the weather/solar terms/holiday effect, displaying the position of the weather/solar terms/holiday effect, and directly closing a pop-up box for confirming and cancelling the corresponding trigger piece;
clicking a trigger piece displayed in a geographic position in an additional effect list, acquiring geographic position information through a positioning function of an intelligent device provided with a device for adding a reading effect to an OFD file, acquiring coordinates of a current position, closing a pop-up box on a page for displaying the additional effect list, reforming a pop-up box for displaying the geographic position display position, confirming and canceling the corresponding trigger piece, wherein the geographic position display position comprises an upper left corner, a lower left corner, an upper right corner, a lower right corner and the current position, wherein specific positions of the upper left corner, the lower left corner, the upper right corner and the lower right corner are directly preset in a program, clicking the confirmed trigger piece after selecting the geographic position display position, displaying the geographic position information in the current position according to the coordinates of the current position, and simultaneously displaying the geographic position display position, confirming and canceling the pop-up box closing of the corresponding trigger piece; when clicking the cancelled trigger piece, displaying the geographical position, confirming and canceling the pop-up box of the corresponding trigger piece to be directly closed;
clicking a trigger piece of a barrage in the additional effect list to obtain the coordinates of the current position, closing a pop-up box on a page for displaying the additional effect list, reforming a display frame for displaying barrage content, the ground color of the barrage, the font of the barrage, the character color of the barrage, the display rate of the barrage, the display position of the barrage, confirming and canceling the pop-up box of the corresponding trigger piece, wherein the display position of the barrage comprises an upper left corner, a lower left corner, an upper right corner, a lower right corner and the current position, wherein the specific positions of the upper left corner, the lower left corner, the upper right corner and the lower right corner are directly preset in a program, inputting the content required to be input in the barrage content input frame, adjusting the background color of the barrage through the ground color of the barrage, adjusting the font and the character color of the barrage, setting the display rate of the barrage and the display position of the barrage, clicking the confirmed trigger piece, and constructing a default, high suspension layer (default, high preset in the default, in the current position, suspending layer, character and canceling the display rate of the barrage, corresponding to the display rate of the barrage, and canceling the trigger piece; when the cancelled trigger piece is clicked, the pop-up box for displaying the bullet screen content input box, the bottom color of the bullet screen, the font of the bullet screen, the character color of the bullet screen, the display rate of the bullet screen, the display position of the bullet screen and the corresponding trigger piece is confirmed and cancelled is directly closed.
Additional effects may also include other user-defined effects.
The foregoing less-than-nothing matters can be directly implemented by adopting the prior art, so that no detailed description is given here.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that several similar modifications and improvements can be made without departing from the inventive concept, and these should also be considered as protecting the scope of the present invention.

Claims (10)

  1. The method for adding the reading effect to the OFD file is characterized by comprising the following steps of:
    acquiring the width and the height of each page in an analysis file, and drawing the page, wherein the file comprises a horizontal page and/or a vertical page;
    reading effect instructions are issued on the pages, wherein the types of the reading effect instructions comprise page changes, and the specific types of the page changes comprise single page zooming, single page rotation and single page typesetting conversion;
    judging the type of the reading effect instruction according to the reading effect instruction, and performing corresponding operation,
    recalculating the width and the height of the page when the operation is completed according to the reading effect instruction, and dynamically and responsively adjusting the layout of the page according to the recalculated width and the recalculated height of the page;
    the type of reading effect instruction also includes additional effect settings including local highlighting and other effects.
  2. 2. The method for adding a reading effect to an OFD file according to claim 1, wherein,
    the file comprises an OFD file;
    the file comprises two storage units, wherein one storage unit is used for storing a source file which does not contain a reading effect instruction, the other storage unit is used for storing a reading effect instruction, and the reading effect instruction is associated with the source file;
    the specific process for drawing the page is as follows: constructing a bottom plate, and adopting a rolling view as the bottom plate; registering each page rendering in the file on a bottom plate, binding page data on each page in the source file with the bottom plate, wherein each individual page is a sub-view on the bottom plate of the scrolling view, the page data comprises elements, content corresponding to the elements and rendering data, and the rendering data comprises the width of the page, the height of the page, the position information of the page and the page ID;
    the page data also includes a spacing between the current page and the last page, and the starting position of the current page is calculated from the ending position of the last page plus the spacing.
  3. 3. The method for adding a reading effect to an OFD file according to claim 2, wherein when the type of the reading effect instruction is single-page scaling, the reading effect instruction includes scaling, the corresponding operation is that the base plate depth monitors the change of the rendering data, the width of the page, the height of the page and the position information of the page are recalculated according to the scaling, the corresponding sub-view is found according to the page ID to perform corresponding adjustment, the content corresponding to the element on the page is re-rendered to the adjusted sub-view according to the scaling, the position of the subsequent page is adjusted by applying the principle of the data driving view, and the rendering data and the sub-view are bidirectionally bound while rendering.
  4. 4. The method for adding a reading effect to an OFD file according to claim 2, wherein when the type of the reading effect instruction is single page rotation, the reading effect instruction comprises a single page rotation angle, the single page rotation angle comprises clockwise rotation of x degrees and anticlockwise rotation of y degrees, the x and y are self-defined, the corresponding operation is that the base plate depth monitors the change of rendering data, the sub view corresponding to one page turns the whole page along a diagonal central axis according to the single page rotation angle, the width of the page, the height of the page and the position information of the page are recalculated, the position of a subsequent page is adjusted by applying the principle of a data driving view, and the rendering data and the sub view are bound in a bidirectional manner while rendering.
  5. 5. The method for adding reading effect to the OFD file according to claim 2, wherein when the type of the reading effect instruction is single page typesetting conversion, the reading effect instruction comprises typesetting types including horizontal typesetting and vertical typesetting, the reading effect instruction further comprises typesetting information, the typesetting information comprises an alignment mode, retraction and a distance, the corresponding operation is that the change of rendering data is monitored for the depth of a bottom plate, all contents of a current page are subjected to typesetting and rendering again according to the typesetting types and the typesetting information, the width of the page, the height of the page and the position information of the page are recalculated, the position of a subsequent page is adjusted by applying the principle of a data driving view, and the rendering data and the sub view are subjected to bidirectional binding at the same time of rendering.
  6. 6. The method for adding a reading effect to an OFD file according to claim 1, wherein,
    the setting range of the additional effect comprises a single page, a plurality of pages and an entire file in a single file, and a single page, a plurality of pages and an entire file in a plurality of combined files, wherein the single page, the plurality of pages and the entire file are displayed in a multi-file combined mode; the position locking mode of the additional effect setting comprises manual marking, searching, association and directory indexing; the rendering mode of the additional effect is any one or more of content, style, form and action,
    the other effects include any one or more of effects arranged on the bottom plate and effects suspended on the page layer, the effects on the bottom plate comprise watermarks, the effects suspended on the page layer are effects rendered on a new layer constructed on a character layer of the page, and the effects suspended on the page layer comprise bullet screens.
  7. 7. The method for adding a reading effect to an OFD file according to claim 1, wherein,
    the type of the reading effect instruction with the local prominence is an instruction for operating the page content, and when the type of the reading effect instruction is the local prominence, the reading effect instruction comprises amplifying, vector marking, front projection, rear projection, shadow, plaque, gray scale, dithering, jumping, flying, lighting, sudden flashing, firing, inundation and ink jetting, and the reading effect instruction is corresponding operation of amplifying from far to near and from near to far:
    forming a closure area and acquiring contents corresponding to elements in the closure area;
    constructing a temporary interface on the current page;
    and projecting the content corresponding to the elements in the closure area onto a temporary interface according to the amplification proportion, and completing local selective amplification.
  8. 8. The method for adding a reading effect to an OFD file according to claim 7, wherein, on the temporary interface, the content projected on the temporary interface is modified, the modification type includes editing and/or signing, the editing includes adding, deleting and modifying, the signing includes handwriting signing, keyboard input, picture video, audio, web page, AI and other multimedia element signing, and during or after modification, the modified content is reversely mapped to the current page according to the projection relation.
  9. 9. The method for adding a reading effect to an OFD file according to claim 8, wherein the signature content storage and display mode comprises:
    the method comprises the steps that firstly, a signing completion or temporary interface is closed, signing content is stored, binding relation between the signing content and content corresponding to elements in a closure area is established, and the signing content is directly rendered and displayed at corresponding positions on a page;
    the second mode is that the temporary interface is closed, an icon is arranged on one side of the closure area, signature content is stored, a binding relation between the signature content and content corresponding to elements in the closure area and the icon is established, the signature content is directly rendered and displayed at a corresponding position on a page in a default state, the icon is clicked, the signature content is hidden, the icon is clicked again, and the signature content is rendered and displayed at the corresponding position on the page;
    and closing the temporary interface, setting an icon on one side of the closure area, storing the signing content and the amplification ratio, establishing a binding relation between the signing content and the content corresponding to the elements in the closure area and the icon, not rendering and displaying the signing content on a default page, clicking the icon, constructing the temporary interface on the page, and displaying the content corresponding to the elements in the closure area and the signing content on the temporary interface according to the amplification ratio.
  10. An apparatus for adding a reading effect to an OFD file, wherein the apparatus for adding a reading effect to an OFD file is used for executing the method for adding a reading effect to an OFD file according to any one of claims 1 to 9, and the apparatus for adding a reading effect to an OFD file comprises a main control module, and a rendering display module, a monitoring module, a data processing module, a storage module, a temporary interface management module, and a projection module connected to the main control module, wherein
    The main control module is used for coordinating the work among the modules connected with the main control module;
    the monitoring module comprises an instruction monitoring module and a rendering data monitoring module, wherein the instruction monitoring module is used for acquiring an instruction for identifying the reading effect, and the rendering data monitoring module is used for deeply monitoring the change of rendering data of the page;
    the rendering display module is used for constructing a bottom plate and drawing pages in the file on the bottom plate;
    the data processing module is used for calculating rendering data;
    the storage module is used for storing rendering data, files, changed contents and association relation between the signing contents and the files, and the changed contents comprise signing contents;
    the temporary interface management module is used for constructing a temporary interface, monitoring the content change on the temporary interface and obtaining the changed content;
    the projection module is used for projecting the selected content on the page onto the temporary interface, reversely projecting the changed content on the temporary interface onto the page, and establishing the association relation between the changed content and the selected content on the page.
CN202310994141.9A 2023-08-09 2023-08-09 Method and device for adding reading effect to OFD file Pending CN116702721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310994141.9A CN116702721A (en) 2023-08-09 2023-08-09 Method and device for adding reading effect to OFD file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310994141.9A CN116702721A (en) 2023-08-09 2023-08-09 Method and device for adding reading effect to OFD file

Publications (1)

Publication Number Publication Date
CN116702721A true CN116702721A (en) 2023-09-05

Family

ID=87829795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310994141.9A Pending CN116702721A (en) 2023-08-09 2023-08-09 Method and device for adding reading effect to OFD file

Country Status (1)

Country Link
CN (1) CN116702721A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725885A (en) * 2024-01-26 2024-03-19 江苏中威科技软件系统有限公司 Method for affecting reading operation effect by layering and engraving OFD file
CN117725885B (en) * 2024-01-26 2024-04-26 江苏中威科技软件系统有限公司 Method for affecting reading operation effect by layering and engraving OFD file

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100097400A1 (en) * 2008-10-17 2010-04-22 Htc Corporation Method for adjusting page display manner, mobile electronic device, and storage medium thereof
CN103065234A (en) * 2011-10-21 2013-04-24 上海中信信息发展股份有限公司 Electronic endorsement system
CN110109590A (en) * 2019-04-30 2019-08-09 北京点众科技股份有限公司 A kind of method and apparatus of automatic reading
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件系统有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN116166906A (en) * 2023-01-16 2023-05-26 江苏天汇空间信息研究院有限公司 Search page optimization layout analysis system and method based on cloud computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100097400A1 (en) * 2008-10-17 2010-04-22 Htc Corporation Method for adjusting page display manner, mobile electronic device, and storage medium thereof
CN103065234A (en) * 2011-10-21 2013-04-24 上海中信信息发展股份有限公司 Electronic endorsement system
CN110109590A (en) * 2019-04-30 2019-08-09 北京点众科技股份有限公司 A kind of method and apparatus of automatic reading
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件系统有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN116166906A (en) * 2023-01-16 2023-05-26 江苏天汇空间信息研究院有限公司 Search page optimization layout analysis system and method based on cloud computing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725885A (en) * 2024-01-26 2024-03-19 江苏中威科技软件系统有限公司 Method for affecting reading operation effect by layering and engraving OFD file
CN117725885B (en) * 2024-01-26 2024-04-26 江苏中威科技软件系统有限公司 Method for affecting reading operation effect by layering and engraving OFD file

Similar Documents

Publication Publication Date Title
US8046712B2 (en) Management of multiple window panels with a graphical user interface
EP0710388B1 (en) Object-oriented display system
US5664216A (en) Iconic audiovisual data editing environment
US5920325A (en) Prioritization of background display during animation
US5365360A (en) Method and apparatus for presenting information contained within a data icon by assigning attributes to various dimensions of the data icon
US20220229976A1 (en) Infinite Canvas
US8635587B2 (en) Automatic restoration of tool configuration while navigating layers of a composition
CN110928459B (en) Writing operation method, device, equipment and storage medium of intelligent interactive tablet
US20130198658A1 (en) Designing website user controls
CN106484242A (en) The method for information display at interface and device
US20090160785A1 (en) User interface, device and method for providing an improved text input
CA2265719A1 (en) Method and apparatus for producing a computer generated display that permits visualization of changes in the interior or exterior of a building structure shown in its actual environment
CN110456956A (en) Screenshot method, device, computer equipment and storage medium
US20140176566A1 (en) Apparatus for simultaneously storing area selected in image and apparatus for creating an image file by automatically recording image information
JPH06274586A (en) Displaying system
US20090282325A1 (en) Sparklines in the grid
CN114564263A (en) Page layout adjusting method and device
CN109445669B (en) Method for displaying and drawing picture
US9916602B2 (en) Batch image processing tool
JP2008191790A (en) Plant monitoring control system and plant monitoring control program
CN116702721A (en) Method and device for adding reading effect to OFD file
CN111510646A (en) Video display method, display device, computer equipment and medium of spliced screen
CN112162805B (en) Screenshot method and device and electronic equipment
JP2017151491A (en) Image display device, image processing system, image processing method, and image processing program
CN114168028A (en) Wisdom hotel television system UI customization device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination