CN112036149B - File editing method and device, electronic equipment and storage medium - Google Patents

File editing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112036149B
CN112036149B CN202010907035.9A CN202010907035A CN112036149B CN 112036149 B CN112036149 B CN 112036149B CN 202010907035 A CN202010907035 A CN 202010907035A CN 112036149 B CN112036149 B CN 112036149B
Authority
CN
China
Prior art keywords
page
content
instruction
file
insertion instruction
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.)
Active
Application number
CN202010907035.9A
Other languages
Chinese (zh)
Other versions
CN112036149A (en
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu Technology 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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202010907035.9A priority Critical patent/CN112036149B/en
Publication of CN112036149A publication Critical patent/CN112036149A/en
Application granted granted Critical
Publication of CN112036149B publication Critical patent/CN112036149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention discloses a file editing method, a device, electronic equipment and a storage medium, which relate to the technical field of computers and can effectively improve the editing efficiency of PDF format files and improve user experience. The method comprises the following steps: receiving an object insertion instruction in a file, wherein the file is a PDF (portable document format) file; displaying an alternative layout template corresponding to the object insertion instruction; selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user; and applying the target typesetting template to the content inserted by the object insertion instruction. The method and the device can be used for editing PDF format files.

Description

File editing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for editing a file, an electronic device, and a storage medium.
Background
PDF (Portable Document Format ) files are a type of file that is relatively common in people's offices and lives, and have become an ideal document format for electronic document distribution and digital information dissemination over the Internet because of their independence from the operating system platform. More and more electronic books, product descriptions, corporate literature, web materials, e-mail are beginning to use PDF formatted files.
However, since the PDF file has rich graphic contents and a wide application scenario, a user needs to perform complex and complicated editing operations to achieve an ideal presentation effect, which is low in operation efficiency and poor in user experience.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for editing a file, which can effectively improve the efficiency of editing a PDF format file and improve the user experience.
In a first aspect, an embodiment of the present invention provides a file editing method, including:
receiving an object insertion instruction in a file, wherein the file is a PDF (portable document format) file;
displaying an alternative layout template corresponding to the object insertion instruction;
selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user;
and applying the target typesetting template to the content inserted by the object insertion instruction.
Optionally, the displaying the alternative layout template corresponding to the object insertion instruction includes:
reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
generating at least one alternative layout template according to the configuration information;
and displaying the alternative layout templates.
Optionally, the object insertion instruction includes at least one of: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction.
Optionally, the object insertion instruction is a page insertion instruction; the applying the target typesetting template to the content inserted by the object insertion instruction comprises: and performing initial typesetting on the newly inserted page.
Optionally, the initial typesetting for the newly inserted page includes: and dividing the newly inserted page into a preset number of content sections according to the file theme, and designating the shape, size and position of each content section.
Optionally, the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction; the applying the target typesetting template to the content inserted by the object insertion instruction comprises: and adjusting typesetting for newly added inserted content in the existing page.
Optionally, the adjusting typesetting for the newly added inserted content in the existing page includes: setting the newly inserted content to a preset position in the page; and adjusting the relative position relation between the newly inserted content and the original content in the page.
In a second aspect, an embodiment of the present invention further provides a file editing apparatus, including:
the receiving unit is used for receiving an object insertion instruction in a file, wherein the file is a file in a PDF format;
the display unit is used for displaying the alternative layout templates corresponding to the object insertion instructions;
the selection unit is used for selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user;
and the application unit is used for applying the target typesetting template to the content inserted by the object insertion instruction.
Optionally, the display unit includes:
the reading module is used for reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
the generation module is used for generating at least one alternative layout template according to the configuration information;
and the display module is used for displaying the alternative layout templates.
Optionally, the object insertion instruction includes at least one of: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction.
Optionally, the object insertion instruction is a page insertion instruction; the application unit comprises an initial typesetting module which is used for carrying out initial typesetting on the newly inserted page.
Optionally, the initial typesetting module is specifically configured to divide the newly inserted page into a preset number of content sections according to the file theme, and designate a shape, a size and a position of each content section.
Optionally, the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction; the application unit comprises an adjustment typesetting module which is used for adjusting typesetting for newly added inserted content in the existing page.
Optionally, the typesetting adjustment module is specifically configured to:
setting the newly inserted content to a preset position in the page;
and adjusting the relative position relation between the newly inserted content and the original content in the page.
In a third aspect, embodiments of the present invention further provide an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any one of the file editing methods provided by the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement any of the file editing methods provided by the embodiments of the present invention.
The file editing method, the device, the electronic equipment and the storage medium provided by the embodiment of the invention can receive the object insertion instruction in the file, wherein the file is in a PDF format, the alternative typesetting template corresponding to the object insertion instruction is displayed, one target typesetting template is selected from the alternative typesetting templates according to the template selection instruction of a user, and the target typesetting template is applied to the content inserted by the object insertion instruction. In this way, when the object insertion instruction is detected in the file in the PDF format, the corresponding alternative layout template can be displayed to the user in response to the object insertion instruction, so that the layout suitable for the object insertion instruction is provided for the user, the user does not need to carry out complex operation on typesetting, the file editing efficiency is effectively improved, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for editing a file according to an embodiment of the present invention;
FIG. 2 is a schematic layout diagram of a file editing method according to an embodiment of the present invention before new content is inserted;
FIG. 3 is a schematic illustration of the layout of FIG. 2 after insertion of new content;
FIG. 4 is a schematic diagram of a file editing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In a first aspect, an embodiment of the present invention provides a file editing method, which can effectively improve PDF format file editing efficiency and improve user experience.
As shown in fig. 1, the file editing method provided by the embodiment of the present invention may include:
s11, receiving an object insertion instruction in a file, wherein the file is a PDF (portable document format) file;
the object insertion instruction can insert any new content into the current PDF format file in a preset mode. For example, the preset mode may be started by a preset operation button or a preset shortcut key in the graphical interface, so as to trigger a corresponding object insertion operation. In this preset manner, any content may be added to the current file.
S12, displaying an alternative layout template corresponding to the object insertion instruction;
in this step, according to the difference of the contents inserted by the object insertion instruction, different kinds of alternative layout templates can be displayed. The number of alternative layout templates displayed is not limited, and may be one or more. A layout of the content in the page may be defined and illustrated in each alternative layout template.
S13, selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user;
in the step, the alternative typesetting templates can be displayed in a floating mode on the file page, and a user can select one of the alternative typesetting templates as a target typesetting template according to the needs.
S14, applying the target typesetting template to the content inserted by the object insertion instruction.
After the target typesetting template is selected, the contents inserted by the object insertion instruction can be arranged according to the target typesetting template.
The file editing method provided by the embodiment of the invention can receive the object insertion instruction in the file, wherein the file is in a PDF format, displays the alternative typesetting templates corresponding to the object insertion instruction, selects one target typesetting template from the alternative typesetting templates according to the template selection instruction of a user, and applies the target typesetting template to the content inserted by the object insertion instruction. In this way, when the object insertion instruction is detected in the file in the PDF format, the corresponding alternative layout template can be displayed to the user in response to the object insertion instruction, so that the layout suitable for the object insertion instruction is provided for the user, the user does not need to carry out complex operation on typesetting, the editing efficiency of the file in the PDF format is effectively improved, and the user experience is greatly improved.
Specifically, in step S11, the object insertion instruction may refer to an insertion operation initiated in a preset manner, and the specific content of the insertion is not limited. Alternatively, the preset manner may be different from a conventional text input manner, for example, the object insertion instruction may be started by clicking a preset button or clicking a preset key.
In one embodiment of the present invention, the object insertion instructions may be further classified according to insertion contents. For example, the inserted content may be a page, or may be an element or component in a page.
Illustratively, in one embodiment of the invention, the object insertion instructions may include one or more of the following: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction. These object insertion instructions may be initiated in different ways and carry different identifications at the time of initiation. For example, the identification of the page insert instruction may be insert_1, the identification of the endorsement insert instruction may be insert_2, the identification of the text box insert instruction may be insert_3, and the identification of the picture insert instruction may be insert_4.
Upon receiving the object insertion instruction, in response to the instruction, an alternative layout template corresponding to the object insertion instruction may be presented in step S12.
Specifically, in one embodiment of the present invention, exposing an alternative layout template corresponding to the object insertion instruction may include:
reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
generating at least one alternative layout template according to the configuration information;
and displaying the alternative layout templates.
Optionally, configuration information of one or more alternative layout templates may be recorded in each preset configuration file. Under the condition that configuration information of an alternative layout template is recorded in each preset configuration file, a batch of preset configuration files can be read for the object insertion instruction, the preset configuration files can belong to the same category, and each preset configuration file correspondingly generates an alternative layout template. For example, in one embodiment of the present invention, if the insertion content of the object insertion instruction is a page, 6 preset configuration files F1-F6 may be read at a time, and configuration information recorded in each preset configuration file is different, so that 6 alternative layout templates corresponding to different types may be generated respectively.
Optionally, in another embodiment of the present invention, the insertion content of the object insertion instruction is a page, the instruction corresponds to a preset configuration file F7, and 6 different configuration information is recorded in the preset configuration file F7, so that 6 different alternative layout templates can be respectively generated by reading the 6 configuration information in the preset configuration file F7.
In the above embodiment, the configuration information may include layout division conditions and specific editing formats in each alternative layout template, for example, information such as size, position coordinates, paragraph format, font size, artistic word, and the like of each content layout.
The alternative layout templates generated according to the configuration information can be displayed to the user together in an array form, or only a part of the alternative layout templates can be displayed, and the alternative layout templates are sequentially displayed according to page turning operation or page sliding operation of the user.
After the alternative layout templates are displayed, the user may select a target layout template from among the alternative layout templates and apply it to the inserted contents as needed in step S13. The mode of applying the target typesetting template is also all different according to the specific insertion content of the object insertion instruction.
Specifically, in one embodiment of the present invention, the object insertion instruction is a page insertion instruction, that is, the insertion content is a new page; in step S14, applying the target composition template to the contents inserted by the object insertion instruction may specifically include: and performing initial typesetting on the newly inserted page.
In this embodiment, the newly inserted content is a page, and the initial typesetting is to perform layout on the whole page. In a specific implementation, the initial typesetting for the newly inserted page may include: and dividing the newly inserted page into a preset number of content sections according to the file theme, and designating the shape, size and position of each content section.
In embodiments of the present invention, alternative layout templates may have different file topics, such as resume, report, advertisement, notification, description, etc. Each file theme can have a default typesetting template so as to meet the application requirements of different scenes of a user.
Optionally, in the embodiment of the present invention, the newly inserted page may be blank, or may have graphic contents, and the initial typesetting for the newly inserted page is applicable to both pages. When the newly inserted page has the image-text content, the initial typesetting can directly typeset the page by ignoring the image-text content, or randomly filling the image-text content into each section of the page, and adapting the size of each section in the page to the image-text content.
In the above embodiment, the content inserted by the object insertion instruction is a page, but the embodiment of the present invention is not limited thereto, and in other embodiments of the present invention, an element or a component in the page may be inserted.
For example, in one embodiment of the present invention, the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction; in step S14, applying the target composition template to the content inserted by the object insertion instruction may specifically include: and adjusting typesetting for newly added inserted content in the existing page.
That is, in this embodiment, instead of inserting a new page, a specific element or component is inserted on an existing page, where the inserted element or component is used as a part of the content of the page, for example, a text box may be added to the original page, an annotation may be added, and so on. The newly inserted elements or components may be suspended above the content of the original page so as not to affect the layout of the original page content, or may be inserted into the content of the original page so as to form a new page layout with the original content.
Optionally, in an embodiment of the present invention, the adjusting and typesetting for the newly added inserted content in the existing page specifically may include:
setting the newly inserted content to a preset position in the page;
and adjusting the relative position relation between the newly inserted content and the original content in the page.
For example, the specific adjustment method for adjusting the layout may be different according to the selected target layout template. For example, after the inserted content is newly added to the existing page, the original content in the page may remain unchanged, so as to form a stacked display relationship with the newly added inserted content, or may be displaced so as to leave a space for the newly added inserted content, or may be radially dispersed so as to form a distinctive composition structure.
For example, in one embodiment of the present invention, the layout of an existing page is shown in fig. 2, and a new layout generated after inserting a text box may be shown in fig. 3.
Further, after the target typesetting template is applied to the content inserted by the object insertion instruction in step S14, the size, shape, position, etc. of each layout in the page can be adjusted according to the user instruction, and other typesetting templates are replaced for the file content to which the target typesetting template has been applied, so that the user can perform more flexible typesetting editing on the file, and user experience is further improved.
In a second aspect, an embodiment of the present invention provides a file editing apparatus, which can effectively improve PDF format file editing efficiency and improve user experience.
As shown in fig. 4, a file editing apparatus provided by an embodiment of the present invention may include:
a receiving unit 31, configured to receive an object insertion instruction in a file, where the file is a PDF file;
a display unit 32, configured to display an alternative layout template corresponding to the object insertion instruction;
a selecting unit 33, configured to select a target typesetting template from the candidate typesetting templates according to a template selection instruction of a user;
an application unit 34, configured to apply the target typesetting template to the content inserted by the object insertion instruction.
The file editing device provided by the embodiment of the invention can receive the object insertion instruction in the file, wherein the file is in a PDF format, the alternative typesetting template corresponding to the object insertion instruction is displayed, one target typesetting template is selected from the alternative typesetting templates according to the template selection instruction of a user, and the target typesetting template is applied to the content inserted by the object insertion instruction. In this way, when the object insertion instruction is detected in the file in the PDF format, the corresponding alternative layout template can be displayed to the user in response to the object insertion instruction, so that the layout suitable for the object insertion instruction is provided for the user, the user does not need to carry out complex operation on typesetting, the editing efficiency of the file in the PDF format is effectively improved, and the user experience is greatly improved.
Optionally, the display unit 32 includes:
the reading module is used for reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
the generation module is used for generating at least one alternative layout template according to the configuration information;
and the display module is used for displaying the alternative layout templates.
Optionally, the object insertion instruction includes at least one of: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction.
Optionally, the object insertion instruction is a page insertion instruction;
the application unit 34 includes an initial layout module for performing initial layout for the newly inserted page.
Optionally, the initial typesetting module is specifically configured to divide the newly inserted page into a preset number of content sections according to the file theme, and designate a shape, a size and a position of each content section.
Optionally, the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction; the application unit 34 includes an adjustment typesetting module for adjusting typesetting for newly added inserted content in an existing page.
Optionally, the typesetting adjustment module is specifically configured to:
setting the newly inserted content to a preset position in the page;
and adjusting the relative position relation between the newly inserted content and the original content in the page.
In a third aspect, an embodiment of the present invention provides an electronic device, which can effectively improve efficiency of editing PDF format files, and improve user experience.
As shown in fig. 5, an electronic device provided by an embodiment of the present invention may include: the processor 52 and the memory 53 are arranged on the circuit board 54, wherein the circuit board 54 is arranged in a space surrounded by the shell 51; a power supply circuit 55 for supplying power to the respective circuits or devices of the above-described electronic apparatus; the memory 53 is for storing executable program code; the processor 52 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 53 for executing the file editing method provided in any of the foregoing embodiments.
The specific implementation of the above steps by the processor 52 and the further implementation of the steps by the processor 52 through the execution of the executable program code may be referred to the description of the foregoing embodiments, and will not be repeated here.
Such electronic devices exist in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction functions.
Accordingly, in a fourth aspect, embodiments of the present invention further provide a computer readable storage medium storing one or more programs, where the one or more programs may be executed by one or more processors to implement any one of the file editing methods provided in the foregoing embodiments, so that corresponding technical effects may also be achieved, and the foregoing details have been set forth herein without any further description.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (4)

1. A method of editing a file, comprising:
receiving an object insertion instruction in a file, wherein the file is a PDF (portable document format) file;
displaying an alternative layout template corresponding to the object insertion instruction;
selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user;
applying the target typesetting template to the content inserted by the object insertion instruction;
the displaying the alternative layout template corresponding to the object insertion instruction comprises the following steps:
reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
generating at least one alternative layout template according to the configuration information;
displaying the alternative layout templates;
the object insertion instruction includes at least one of: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction;
in the case that the object insertion instruction is the page insertion instruction, the applying the target composition template to the content inserted by the object insertion instruction includes: performing initial typesetting on the newly inserted page; the initial typesetting for the newly inserted page comprises the following steps: dividing the newly inserted page into a preset number of content sections according to the file theme, and designating the shape, size and position of each content section;
in the case that the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction, the applying the target composition template to the content inserted by the object insertion instruction includes: adjusting and typesetting the newly added inserted content in the existing page; the step of adjusting typesetting for newly added inserted content in the existing page comprises the following steps: setting the newly inserted content to a preset position in the page; adjusting the relative position relation between the newly inserted content and the original content in the page, wherein the adjusting the relative position relation between the newly inserted content and the original content in the page comprises: the original content in the page is shifted so as to leave a space for the newly added inserted content, or the original content in the page is radially dispersed so as to form a preset composition structure.
2. A file editing apparatus, comprising:
the receiving unit is used for receiving an object insertion instruction in a file, wherein the file is a file in a PDF format;
the display unit is used for displaying the alternative layout templates corresponding to the object insertion instructions;
the selection unit is used for selecting a target typesetting template from the alternative typesetting templates according to a template selection instruction of a user;
an application unit, configured to apply the target typesetting template to the content inserted by the object insertion instruction;
the display unit includes:
the reading module is used for reading a corresponding preset configuration file according to the object insertion instruction, wherein the configuration information of the alternative layout template is recorded in the preset configuration file;
the generation module is used for generating at least one alternative layout template according to the configuration information;
the display module is used for displaying the alternative layout templates;
the object insertion instruction includes at least one of: page insert instruction, annotation insert instruction, text box insert instruction, picture insert instruction;
when the object insertion instruction is the page insertion instruction, the application unit comprises an initial typesetting module for performing initial typesetting on a newly inserted page; the initial typesetting module is specifically used for dividing the newly inserted pages into a preset number of content sections according to the file theme and designating the shape, size and position of each content section;
in the case that the object insertion instruction includes any one of the annotation insertion instruction, the text box insertion instruction, or the picture insertion instruction, the application unit includes an adjustment typesetting module configured to adjust typesetting for newly added insertion content in an existing page; the typesetting adjustment module is specifically configured to: setting the newly inserted content to a preset position in the page; the original content in the page is shifted so as to leave a space for the newly added inserted content, or the original content in the page is radially dispersed so as to form a preset composition structure.
3. An electronic device, the electronic device comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the file editing method of the preceding claim 1.
4. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the file editing method of claim 1.
CN202010907035.9A 2020-09-01 2020-09-01 File editing method and device, electronic equipment and storage medium Active CN112036149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010907035.9A CN112036149B (en) 2020-09-01 2020-09-01 File editing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010907035.9A CN112036149B (en) 2020-09-01 2020-09-01 File editing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112036149A CN112036149A (en) 2020-12-04
CN112036149B true CN112036149B (en) 2023-10-27

Family

ID=73592181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010907035.9A Active CN112036149B (en) 2020-09-01 2020-09-01 File editing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112036149B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648914B (en) * 2024-01-30 2024-05-17 深圳云集智造系统技术有限公司 File generation method and device and terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100858103B1 (en) * 2008-02-18 2008-09-11 유니닥스주식회사 Template-based pdf publishing system for web contents
CN102306143A (en) * 2011-09-22 2012-01-04 汉王科技股份有限公司 Method and system for generating and editing PDF (portable document format) document
CN104063363A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting wordart quickly in PDF document
CN104063365A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting object in PDF document
WO2016119453A1 (en) * 2015-01-27 2016-08-04 中兴通讯股份有限公司 Method and apparatus for inserting multimedia object in text, and terminal
CN107451113A (en) * 2017-07-06 2017-12-08 广东小天才科技有限公司 Automatic typesetting method and system for presentation document
CN108681530A (en) * 2018-05-04 2018-10-19 北京天元创新科技有限公司 A kind of official document generation method and system based on Web
CN110023927A (en) * 2016-11-30 2019-07-16 谷歌有限责任公司 For the system and method for being applied to document will to be laid out
WO2020000812A1 (en) * 2018-06-29 2020-01-02 平安科技(深圳)有限公司 Method and apparatus for generating ppt document, storage medium, and computer device
CN111597772A (en) * 2020-04-28 2020-08-28 维沃移动通信有限公司 Data integration method, data integration device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320385A1 (en) * 2006-09-29 2008-12-25 Colorquick, L.L.C. Graphical Object Insertion During Preparation of Production Data for a Print Job Using a Still Image Proxy of a Page Description Language Image File

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100858103B1 (en) * 2008-02-18 2008-09-11 유니닥스주식회사 Template-based pdf publishing system for web contents
CN102306143A (en) * 2011-09-22 2012-01-04 汉王科技股份有限公司 Method and system for generating and editing PDF (portable document format) document
CN104063363A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting wordart quickly in PDF document
CN104063365A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting object in PDF document
WO2016119453A1 (en) * 2015-01-27 2016-08-04 中兴通讯股份有限公司 Method and apparatus for inserting multimedia object in text, and terminal
CN110023927A (en) * 2016-11-30 2019-07-16 谷歌有限责任公司 For the system and method for being applied to document will to be laid out
CN107451113A (en) * 2017-07-06 2017-12-08 广东小天才科技有限公司 Automatic typesetting method and system for presentation document
CN108681530A (en) * 2018-05-04 2018-10-19 北京天元创新科技有限公司 A kind of official document generation method and system based on Web
WO2020000812A1 (en) * 2018-06-29 2020-01-02 平安科技(深圳)有限公司 Method and apparatus for generating ppt document, storage medium, and computer device
CN111597772A (en) * 2020-04-28 2020-08-28 维沃移动通信有限公司 Data integration method, data integration device and electronic equipment

Also Published As

Publication number Publication date
CN112036149A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN110023927B (en) System and method for applying layout to document
CN107657973B (en) Text and audio mixed display method and device, terminal equipment and storage medium
CN111539188B (en) Note generation method, computing device, and computer storage medium
CN102385571B (en) A kind of display packing and display device
US20130191728A1 (en) Systems, methods, and media for generating electronic books
CN103853548A (en) Method and system for deep links in application contexts
KR102176655B1 (en) Server and method for generating a font file
CN111161283B (en) Picture resource processing method and device and electronic equipment
CN101770371A (en) Application theme content preview method and device
CN112835577A (en) Data processing method, data processing device, computer equipment and readable storage medium
CN112036149B (en) File editing method and device, electronic equipment and storage medium
CN113792226B (en) Information display method and device and computer storage medium
CN110708423A (en) Message content display method and device and storage medium
Green et al. Classification of digital content, media, and device types
CN109933766B (en) File generation method, device and storage medium
CN115952771A (en) Picture editing method and device, electronic equipment and storage medium
CN116127935A (en) Document creation method, device, electronic equipment and storage medium
CN106028094A (en) Video content providing method and device and electronic equipment
US20160110328A1 (en) Display Method And Electronic Device
CN110321125A (en) Data configuration method, data configuration device and the readable storage medium storing program for executing of cell
KR101527492B1 (en) Sound storage service system and method
CN105260345A (en) Method and device for constructing facial characters and electronic equipment
CN112988005B (en) Method for automatically loading captions
KR102300444B1 (en) Document editing device to check whether the font applied to the document is a supported font and operating method thereof
CN113378527A (en) PDF document editing method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant