CN113382086A - Document transmission method and device, electronic equipment and computer program product - Google Patents

Document transmission method and device, electronic equipment and computer program product Download PDF

Info

Publication number
CN113382086A
CN113382086A CN202110764685.7A CN202110764685A CN113382086A CN 113382086 A CN113382086 A CN 113382086A CN 202110764685 A CN202110764685 A CN 202110764685A CN 113382086 A CN113382086 A CN 113382086A
Authority
CN
China
Prior art keywords
content
document
intermediate file
dimensional code
data
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.)
Granted
Application number
CN202110764685.7A
Other languages
Chinese (zh)
Other versions
CN113382086B (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.)
Beijing Delta Times Hi Tech Co ltd
Original Assignee
Beijing Delta Times Hi Tech 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 Beijing Delta Times Hi Tech Co ltd filed Critical Beijing Delta Times Hi Tech Co ltd
Priority to CN202110764685.7A priority Critical patent/CN113382086B/en
Publication of CN113382086A publication Critical patent/CN113382086A/en
Application granted granted Critical
Publication of CN113382086B publication Critical patent/CN113382086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for document transmission. The document transmission method for the sending end comprises the steps of obtaining a document to be transmitted, wherein the document to be transmitted at least comprises first content; extracting first content to form a first intermediate file of which the data volume is smaller than that of a document to be transmitted; converting the first intermediate file into at least one first two-dimensional code; and sending one or more of the at least one first two-dimensional code to a receiving end. The document transmission method for the receiving end comprises the steps of obtaining one or more first two-dimensional codes sent by a sending end; identifying one or more first two-dimensional codes to obtain a first intermediate file, wherein the first intermediate file at least comprises first content data; and obtaining first content according to the first content data, and forming a document with the data volume larger than that of the first intermediate file. The disclosure also provides an apparatus for document transmission, an electronic device and a computer program product.

Description

Document transmission method and device, electronic equipment and computer program product
Technical Field
The disclosure relates to a document transmission method, a document transmission device, an electronic device and a computer program product.
Background
In office software, Word software has the widest application rate, mainly plays a role in editing, typesetting and reviewing, has extremely wide application range, and is often used for making graduation papers, poster materials, personal resumes, and planning documents. When a word file is transmitted by using a two-dimensional code, the phenomenon of low transmission efficiency can occur, and the main reasons are as follows: the file capacity is large, even if the file only comprises one character, the file capacity can reach several K or more than ten K (the file size is different according to the different office versions) because the file contains contents such as format characters, control characters and the like; word documents often contain complex contents such as charts, pictures and the like, so that the file compression rate is low, and the size of a transmission file is difficult to reduce. When a large-capacity file is transmitted, a large amount of generated two-dimensional code picture data is generated, and operations such as decoding, data restoration and the like are added, so that the whole transmission process is long in time consumption and low in efficiency.
Disclosure of Invention
One aspect of the present disclosure provides a document transmission method for a transmitting end, including: acquiring a document to be transmitted, wherein the document to be transmitted at least comprises first content; extracting first content to form a first intermediate file of which the data volume is smaller than that of a document to be transmitted; converting the first intermediate file into at least one first two-dimensional code; and sending one or more of the at least one first two-dimensional code to a receiving end.
Optionally, the first content is composed of first content data and a first content attribute, where before converting the first intermediate file into the at least one two-dimensional code, the method further includes: deleting and/or modifying part or all of the first content attributes in the first intermediate file.
Optionally, the document transmission method for the sending end of the present disclosure further includes: extracting second content in the document to be transmitted to form a second intermediate file of which the data volume is smaller than that of the document to be transmitted; converting the second intermediate file into at least one second two-dimensional code; and sending one or more of the at least one second two-dimensional code to a receiving end.
Optionally, the first two-dimensional code carries a first tag for identifying a corresponding relationship between the first two-dimensional code and the first intermediate file; the second two-dimensional code carries a second label for identifying the corresponding relationship between the second two-dimensional code and the second intermediate file.
Optionally, the first tag is further used for identifying the order of the first two-dimensional code in the first intermediate file; the second tag is also used for identifying the sequence of the second two-dimensional code in the second intermediate file.
Optionally, converting the first intermediate file into at least one first two-dimensional code includes: extracting first content and converting the first content into a binary code stream; the binary code stream is converted into at least one first two-dimensional code.
Optionally, converting the first intermediate file into at least one first two-dimensional code includes: when the data capacity of the first two-dimensional code is larger than or equal to the data volume of the binary code stream, converting the first intermediate file into the first two-dimensional code; and when the data capacity of the first two-dimensional code is smaller than the binary code stream, converting the first intermediate file into two or more first two-dimensional codes.
Another aspect of the present disclosure provides a document transmission method for a receiving end, including: acquiring one or more first two-dimensional codes sent by a sending end; identifying one or more first two-dimensional codes to obtain a first intermediate file, wherein the first intermediate file at least comprises first content data; and obtaining first content according to the first content data, and forming a document with the data volume larger than that of the first intermediate file.
Optionally, the obtaining the first content according to the first content data further includes: obtaining first content according to the first content data and the first content attribute; or obtaining the first content according to the first content data and the modified first content attribute.
Optionally, obtaining the first content according to the first content data includes: acquiring a first content attribute stored locally; and obtaining the first content according to the first content attribute and the first content data.
Optionally, the document transmission method for the receiving end of the present disclosure further includes: acquiring one or more second two-dimensional codes sent by a sending end; identifying one or more second two-dimension codes to obtain a second intermediate file, wherein the second intermediate file at least comprises second content data; and obtaining second content according to the second content data, and combining the second content with the first content to form a document.
Optionally, according to a first label carried by the first two-dimensional code, sequentially converting the plurality of first two-dimensional codes into a first intermediate file; and according to a second label carried by the second two-dimensional code, sequentially converting the plurality of second two-dimensional codes into a second intermediate file.
Optionally, the document is formed according to the order of the first intermediate file and the second intermediate file.
Optionally, identifying one or more first two-dimensional codes, and obtaining the first intermediate file includes: converting one or more first two-dimensional codes into a binary code stream; and obtaining a first intermediate file according to the binary code stream.
Another aspect of the present disclosure provides a method for a transmitting apparatus, comprising: the document acquisition module is used for acquiring a document to be transmitted, wherein the document to be transmitted at least comprises first content; the content extraction module is used for extracting first content to form a first intermediate file of which the data volume is smaller than that of the document to be transmitted; the file conversion module is used for converting the first intermediate file into at least one first two-dimensional code; and the two-dimensional code sending module is used for sending one or more of the at least one first two-dimensional code to the receiving device.
Another aspect of the present disclosure provides a method for receiving, comprising: the two-dimensional code receiving module is used for acquiring one or more first two-dimensional codes sent by the sending device; the two-dimensional code identification module is used for identifying one or more first two-dimensional codes to obtain a first intermediate file, and the first intermediate file at least comprises first content data; and the document forming module is used for obtaining the first content according to the first content data and forming a document with the data volume larger than that of the first intermediate file.
Another aspect of the present disclosure provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the above.
Another aspect of the disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of the above.
Drawings
FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an application scenario of another embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an application scenario of yet another embodiment of the present disclosure;
FIG. 4 is a flow chart of a document transmission method for a transmitting end of the present disclosure;
FIG. 5 is a flow chart of additional steps of a document transmission method for a sender according to the present disclosure;
FIG. 6 is a flow chart of a document transmission method for a receiving end of the present disclosure;
fig. 7 is a block diagram for a transmitting device according to an embodiment of the present disclosure;
fig. 8 is a block diagram for a receiving device according to an embodiment of the present disclosure;
FIG. 9 is a block diagram of an electronic device according to another embodiment of the present disclosure;
fig. 10 is a block diagram of an electronic device according to another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The embodiment of the disclosure provides a document transmission method. The method is based on two aspects, and provides a document transmission method for a sending end and a document transmission method for a receiving end respectively. More specifically, in the process of sending the document, the sending end firstly extracts the content to be transmitted in the document, and then converts the content to form an intermediate file of which the data volume is smaller than that of the document to be transmitted. Because only the content to be transmitted is extracted and converted, the data volume is smaller than the original document to be transmitted, and the content to be transmitted is converted into an intermediate file with smaller data volume in the conversion process, the data volume to be transmitted can be further reduced, and the file transmission efficiency is improved. And converting the intermediate file obtained by conversion into the two-dimensional code, and transmitting the content to be transmitted to a receiving end in a two-dimensional code scanning mode. The two-dimensional code is used as a timely, accurate, reliable and economic data input means, file transmission can be simply, conveniently and quickly carried out, and the file transmission efficiency is also improved. Because of the limited data capacity of two-dimensional codes, plain text files are preferably transmitted when transmitting files using two-dimensional codes. The file to be transmitted can be compressed for a plurality of times before the two-dimension code is used for file transmission, so that the number of generated two-dimension codes is reduced. When the two-dimensional code is used for transmitting files, the two-dimensional code of a specific version can be selected, so that the capacity and the speed are considered at the same time.
And the receiving terminal adopts equipment or an application program capable of continuously identifying the two-dimensional code, acquires the intermediate file contained in the two-dimensional code in a form of scanning the two-dimensional code, and after the intermediate file is acquired, reconverts the intermediate file again to generate a new document, thereby completing the transmission of the document to be transmitted.
The word software application rate in Office software is the widest, and when a two-dimensional code is used for transmitting a word file, the phenomenon of low transmission efficiency often occurs because: 1) the file capacity is large, even if the file only comprises one character, the file capacity can reach several k or more than ten k because the file internally comprises contents such as format characters, control characters and the like; 2) word documents often contain complex contents such as charts, pictures and the like, so that the file compression rate is low, and the size of a transmission file is difficult to reduce. When a large-capacity file is transmitted, a large amount of generated two-dimensional code picture data is generated, and operations such as decoding, data restoration and the like are added, so that the whole transmission process is long in time consumption and low in efficiency.
In the process, the new document generated from the receiving end contains the transmission content of the original document to be transmitted by the transmitting end, but in order to reduce the data transmission amount and improve the data transmission efficiency, the document attribute of the document to be transmitted can not be transmitted, the document attribute information is stored locally in the receiving end in advance, and after the transmitting end transmits the intermediate file containing the content data of the document to be transmitted to the receiving end, the intermediate file is directly merged with the local document attribute of the receiving end, so that the new document is obtained. Because the data related to the document attribute is not transmitted, the document transmission data volume is small, and the transmission efficiency is higher.
Example one
FIG. 1 schematically depicts an application scenario of an embodiment of the present disclosure. As shown in fig. 1, a word document 100 is stored in a computer terminal 10, where the word document 100 includes a text, a table, and a picture, and the text, the table, and the picture in the word document a need to be transmitted to a mobile phone terminal 11. Firstly, in the computer 10, the word document a is decompressed by using document conversion software to obtain a plurality of xml files. In the process of decompressing the word document A, the text, the table and the picture are respectively converted to obtain a corresponding text xml file 101, a table xml file 102 and a picture xml file 103, wherein the data volume of each xml file is obviously smaller than that of the original document. Then, the text xml file 101, the form xml file 102, and the picture xml file 103 are respectively converted into binary code streams by two-dimensional code conversion software, and the binary code streams are converted into a text two-dimensional code 1011, a form two-dimensional code 1021, and a picture two-dimensional code 1031. The mobile phone terminal 11 respectively obtains the text xml file 101, the form xml file 102 and the picture xml file 103 contained in the two-dimensional code by scanning the text two-dimensional code 1011, the form two-dimensional code 1021 and the picture two-dimensional code 1031, and restores the text xml file 101, the form xml file 102 and the picture xml file 103 into texts, forms and pictures by using the document conversion software, and assembles and restores the texts, the forms and the pictures into a word document a ', and at this time, the word document a' contains the texts, the forms and the pictures which need to be transmitted in the word document a, so that the whole process of document transmission is completed.
Example two
Fig. 2 schematically depicts an application scenario of another embodiment of the present disclosure. As shown in fig. 2, a WPS document 200 is stored in the computer side 20, wherein the WPS document 200 includes a large number of pictures, and a large number of pictures in the WPS document B need to be transferred to the tablet side 21. Firstly, in the computer 20, the WPS document B is decompressed by using document conversion software to obtain an image xml file 201, wherein the data volume of the image xml file 201 is significantly smaller than that of the original document. Then, the picture xml file 201 is converted into a binary code stream by two-dimensional code conversion software, and the binary code stream is converted into a two-dimensional code to be displayed. Since the WPS document B includes a large number of pictures, the generated picture xml file 201 has a large data volume, and the data volume exceeds the data capacity of one two-dimensional code when converted into a two-dimensional code, a picture two-dimensional code 2011, a picture two-dimensional code 2012 and a picture two-dimensional code 2013 are generated, and corresponding tags B301, B302 and B303 are generated at the same time, and are used for representing the corresponding relationship and the sequence order of each two-dimensional code and the xml file 201. The first bit in the label is a transmission file name code for indicating which file the two-dimensional code is converted from, the second bit is a transmission file type code for indicating the file type of the two-dimensional code transmission, and the third bit and the fourth bit are two-dimensional code sequential codes for indicating the front-back sequence of the content transmitted by each two-dimensional code in the original file to be transmitted. The flat end 21 simultaneously obtains the label information of each picture two-dimensional code by scanning the picture two-dimensional code 2011, the picture two-dimensional code 2012 and the picture two-dimensional code 2013, sorts the picture two-dimensional codes through labels, and finally merges and obtains the complete picture xml file 201. And restoring the picture xml file 201 into a picture by using document conversion software, assembling and restoring the picture xml file into a WPS document B ', wherein the WPS document B' comprises the picture to be transmitted in the WPS document B, and the whole document transmission process is completed.
EXAMPLE III
Fig. 3 schematically depicts an application scenario of yet another embodiment of the present disclosure. As shown in fig. 3, a word document 300 is stored in the tablet terminal 30, where the word document 300 includes a large amount of text, and the large amount of text in the word document C needs to be transmitted to the mobile phone terminal 31. Firstly, in the tablet terminal 30, a word document C is decompressed by using document conversion software to obtain a text xml file 301, wherein the data volume of the text xml file 301 is obviously smaller than that of an original document, the text xml file 301 includes a text data xml file 3011 and a text attribute xml file 3012, the text data xml file 3011 includes data content of a text document to be transmitted, that is, specific character content in the text document, and the text attribute xml file 3012 includes attribute content of the text document to be transmitted, that is, a format of characters in the text document. Now, only the text content in the word document C needs to be transmitted to the mobile phone terminal 31, the text data xml file 3011 is converted into a binary code stream by using two-dimensional code conversion software, and the binary code stream is converted into the text data two-dimensional code 30111 to be displayed. The mobile phone terminal 31 obtains the text data xml file 3011 contained in the text data two-dimensional code 30111 by scanning the text data two-dimensional code. The mobile phone terminal 31 locally prestores a text attribute xml file 3112, merges the prestored text attribute xml file 3112 and the obtained text data xml file 3011, and restores the merged text attribute xml file 3112 and the obtained text data xml file 3011 into a text by using document conversion software, and assembles and restores the text into a word document C ', where the word document C' includes text content to be transmitted in the word document C, but has a new text format. At this point, the entire process of document transfer is complete.
It should be noted that fig. 1, 2, and 3 are only examples of scenarios in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
Fig. 4 schematically shows a flowchart of a document transmission method for a transmitting end according to an embodiment of the present disclosure. The sending end can be a computer, a mobile phone and a tablet, and the electric terminal can be other terminals capable of storing documents, converting the documents, generating two-dimensional codes and displaying the two-dimensional codes. The document can be a word document, an excel document, a ppt document, or other documents capable of reducing data transmission amount by using format conversion. The following description will take the transmission of a docx format file in a word document as an example. In the process of transmitting the docx file, due to the special structure of the docx file, the docx file can be decompressed to obtain all xml files, and then texts, diagrams, pictures and other specified contents in the files are extracted according to specified requirements to generate the two-dimensional code.
As shown in fig. 4, the method includes operations S401 to S404.
In operation S401, a document to be transmitted is obtained, where the document to be transmitted at least includes first content.
The document to be transmitted is a docx document to be transmitted, and the docx document already contains all first contents to be transmitted, that is, the contents of the text, the graphics, the diagrams, the hyperlinks, the fonts, the font sizes, the font colors, the line spacing, the page margin, the page header, the page footer and the like recorded in the docx document. The first content can be divided into two types, one type is first content data, and the first content data comprises data contents in docx, such as texts, graphs, charts, hyperlinks and the like; one type is a first content attribute, including font, font size, font color, line spacing, margin spacing, header, footer, etc. inside-docx format content.
In operation S402, first content is extracted, and a first intermediate file having a data amount smaller than that of a document to be transmitted is formed.
The first content data and the first content attribute in the docx document can be both expressed by the xml file, and after the first content needing to be transmitted is extracted, the first content data and the first content attribute can be both converted into the corresponding xml file, namely the first intermediate file. For an embodiment that requires simultaneous transmission of multiple document contents, for example, an embodiment that requires simultaneous transmission of two documents, the sender may extract the first content and the second content at the same time, and then form the first intermediate file and the second intermediate file, respectively, where the forming manners of the second content and the second intermediate file refer to the forming manners of the first content and the first intermediate file.
In the step, the docx document can be directly decompressed to obtain the xml file, and the sending end extracts the xml file related to the first content and the second content from the obtained xml file, so that a first intermediate file and a second intermediate file are formed. Because the first intermediate file and the second intermediate file are formed by converting the first content and the second content, and the first content and the second content are only a part of the document to be transmitted, it can be understood that the data volume of the first intermediate file and the second intermediate file is less than that of the document to be transmitted.
In operation S403, the first intermediate file is converted into at least one first two-dimensional code.
In the process of converting the first intermediate file into the first two-dimensional code, the contents of the xml file data of the first intermediate file are extracted, whether the extracted data are encrypted or not can be determined according to needs, then the extracted data are converted into the two-dimensional code stream, the two-dimensional code is generated and displayed, and the first two-dimensional code is generated. When the data capacity is larger than that of one two-dimensional code, a plurality of two-dimensional codes need to be generated, and thus the first two-dimensional code may be a plurality of codes.
Each first two-dimensional code simultaneously carries a first tag for identifying the corresponding relationship between the first two-dimensional code and the first intermediate file, for example, "xml option number + serial number" is used as the first tag to record the data sequence in a certain xml file, and in the subsequent data restoring process, the data can be restored according to the sequence marked by the first tag, so as to ensure the correctness of the data restoration. Similarly, in the process of obtaining one or more second two-dimensional codes from the second intermediate file, the same operation may be performed, and the corresponding relationship between the second two-dimensional codes and the second intermediate file is identified by using the second tag.
In operation S404, one or more of the at least one first two-dimensional code are transmitted to a receiving end.
More specifically, after all the contents to be transmitted are converted into the first two-dimensional code and the second two-dimensional code according to the above steps, the generated two-dimensional codes can be sequentially displayed in a timing, condition-triggered or other agreed manner. For example, titles and profiles are set corresponding to different contents to be transmitted, when the contents need to be transmitted, the corresponding title is clicked, the two-dimensional code is automatically jumped to, and the two-dimensional code is scanned to start content transmission. In some embodiments, a specific two-dimensional code may be further set in an advance manner, and after the transmission is finished, the specific two-dimensional code is displayed to indicate that the transmission is finished.
The document transmission method for the sending end in the embodiment of the present disclosure includes that a first content is composed of first content data and a first content attribute, and before converting a first intermediate file into at least one two-dimensional code, the method further includes: s501, deleting and/or modifying part or all of the first content attributes in the first intermediate file. The flow chart is shown in fig. 5.
In this operation step, for some usage scenarios where only the first content data needs to be transmitted, only the first content data may be converted into a two-dimensional code for transmission, and the first content attribute does not need to be converted into a two-dimensional code for transmission. At this time, since the amount of data to be transmitted becomes small, the transmission efficiency is improved. It will be appreciated that when a portion of the first content attribute needs to be transmitted, or other content attributes need to be transmitted, the first content attribute may still be partially deleted or modified. Similarly, the same operation can be applied to the transmission of the second content.
Another aspect of the present invention discloses a document transmission method for a receiving end, and fig. 6 is a flowchart of a document transmission method for a receiving end according to an embodiment of the present disclosure.
As shown in fig. 6, the method includes operations S601 to S603.
In operation S601, one or more first two-dimensional codes transmitted by a transmitting end are acquired. The first two-dimensional codes can be displayed sequentially in a timing mode, a condition triggering mode or other agreed modes. For example, titles and profiles are set corresponding to different contents to be transmitted, and when the contents need to be transmitted, the corresponding title is clicked, and the two-dimensional code is automatically jumped to. When a receiving end such as a mobile phone is used for scanning one or more two-dimensional codes, the receiving end considers that one or more first two-dimensional codes sent by the sending end are obtained, and content transmission is started.
In operation S602, one or more first two-dimensional codes are identified, and a first intermediate file is obtained, where the first intermediate file includes at least first content data. When the two-dimensional code is one, the two-dimensional code can be restored into the first intermediate file directly according to the inverse operation in the sending process. When a plurality of two-dimensional codes are identified, the first label is generated while the first two-dimensional code is generated at that time, and the data sequence in the xml file is recorded, so that the data contained in the plurality of two-dimensional codes can be restored to obtain the first intermediate file. In some embodiments, when the document to be transmitted is sent or received, only a part of the data, namely the first content data, needs to be sent or received, and the first content attribute is not needed. Therefore, at least the first content data needs to be included in the process of identifying the first two-dimensional code to obtain the first intermediate file.
In operation S603, the first content is obtained from the first content data, and a document having a data amount larger than that of the first intermediate file is formed. The first content is composed of first content data and a first content attribute, and after the receiving end receives the first content data sent by the sending end, the first content data and the first content attribute sent by the sending end can be combined to obtain the first content, or the first content data sent by the sending end and the first content attribute pre-stored locally by the receiving end can be combined to obtain the first content. Before the first content data and the first content attribute are combined, the first content attribute may be modified and then combined to obtain the first content. It is contemplated that the first content is obtained from the first content data to form a document having a larger data amount than the first intermediate file.
In the process, the critical file that the receiving end needs to acquire is the first content data, and in order to reduce the data transmission amount and improve the transmission efficiency, the first content attribute is not transmitted, but the local first content attribute of the receiving end is adopted and is combined with the first content data to obtain the first content. When transmitting a plurality of different contents, like transmitting the first data content and the second data content at the same time, the first data content and the second data content can still be received at the receiving end respectively according to the above operation steps, and then are merged with the local first content attribute of the receiving end respectively to obtain the first content and the second content.
Fig. 7 schematically shows a block diagram for a transmitting apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the sending apparatus 700 includes a document obtaining module 710, a content extracting module 720, a file converting module 730, and a two-dimensional code sending module 740. The transmitting apparatus 700 may perform the methods described above with reference to fig. 4 to 5 to implement the transmission of the document.
Specifically, the document obtaining module 710 is configured to obtain a document to be transmitted, where the document to be transmitted at least includes first content.
The content extracting module 720 is configured to extract the first content to form a first intermediate file with a data size smaller than that of the document to be transmitted.
The file conversion module 730 is configured to convert the first intermediate file into at least one first two-dimensional code.
The two-dimensional code sending module 740 is configured to send one or more of the at least one first two-dimensional code to a receiving apparatus.
It is understood that the document obtaining module 710, the content extracting module 720, the file converting module 730, and the two-dimensional code sending module 740 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the document obtaining module 710, the content extracting module 720, the file converting module 730, and the two-dimensional code sending module 740 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented in a suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the document acquiring module 710, the content extracting module 720, the file converting module 730, and the two-dimensional code transmitting module 740 may be at least partially implemented as a computer program module, and when the program is executed by a computer, the function of the corresponding module may be executed.
Fig. 8 schematically shows a block diagram for a receiving apparatus according to an embodiment of the disclosure.
As shown in fig. 8, the receiving apparatus 800 includes a two-dimensional code receiving module 810, a two-dimensional code recognition module 820, and a document forming module 830. The receiving device 800 may perform the method described above with reference to fig. 6 to enable the receiving of the document.
It is understood that the two-dimensional code receiving module 810, the two-dimensional code identifying module 820 and the document forming module 830 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the two-dimensional code receiving module 810, the two-dimensional code identifying module 820 and the document forming module 830 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware and firmware. Alternatively, at least one of the two-dimensional code receiving module 810, the two-dimensional code recognizing module 820 and the document forming module 830 may be at least partially implemented as a computer program module, which may perform the functions of the respective modules when the program is executed by a computer.
Fig. 9 schematically shows a block diagram of an electronic device according to another embodiment of the present disclosure.
As shown in fig. 9, the electronic device 900 includes a processor 910, a computer-readable storage medium 920. The electronic device 900 may perform the methods described above with reference to fig. 4-5 to implement the sending apparatus to send the document.
In particular, processor 910 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 910 may also include onboard memory for caching purposes. Processor 910 may be a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure described with reference to fig. 4-5.
Computer-readable storage medium 920 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
Computer-readable storage medium 920 may include a computer program 921, which computer program 921 may include code/computer-executable instructions that, when executed by processor 910, cause processor 910 to perform a method flow such as described above with respect to fig. 4-5, and any variations thereof.
The computer program 921 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 921 may include one or more program modules, including 921A, modules 921B, … …, for example. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 910, enable the processor 910 to execute the method flows described in fig. 4 to 5 and any variations thereof, for example.
According to an embodiment of the present invention, at least one of the document obtaining module 710, the content extracting module 720, the file converting module 730, and the two-dimensional code sending module 740 may be implemented as a computer program module described with reference to fig. 9, which, when executed by the processor 910, may implement the corresponding operations described above.
Fig. 10 schematically shows a block diagram of an electronic device according to another embodiment of the present disclosure.
As shown in fig. 10, the electronic device 1000 includes a processor 1010, a computer-readable storage medium 1020. The electronic device 1000 may perform the method described above with reference to fig. 6 to enable communication between multiple robots.
In particular, processor 1010 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 1010 may also include on-board memory for caching purposes. Processor 1010 may be a single processing unit or a plurality of processing units for performing different acts of the method flows described with reference to fig. 6 in accordance with embodiments of the present disclosure.
Computer-readable storage medium 1020, for example, may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer-readable storage medium 1020 may include a computer program 1021, which computer program 1021 may include code/computer-executable instructions that, when executed by the processor 1010, cause the processor 1010 to perform a method flow such as described above in fig. 6 and any variations thereof.
The computer program 1021 may be configured with computer program code, for example, comprising computer program modules. For example, in an example embodiment, code in computer program 1021 may include one or more program modules, including, for example, 1021A, modules 1021B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 1010, enable the processor 1010 to execute the method flow described in fig. 6 above and any variations thereof, for example.
According to an embodiment of the present invention, at least one of the two-dimensional code receiving module 810, the two-dimensional code identifying module 820 and the document forming module 830 may be implemented as a computer program module described with reference to fig. 10, which, when executed by the processor 1010, may implement the corresponding operations described above.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (20)

1. A document transmission method for a sending end is characterized by comprising the following steps:
acquiring a document to be transmitted, wherein the document to be transmitted at least comprises first content;
extracting the first content to form a first intermediate file of which the data volume is smaller than that of the document to be transmitted;
converting the first intermediate file into at least one first two-dimensional code;
and sending one or more of the at least one first two-dimensional code to a receiving end.
2. The method for transmitting the document at the transmitting end according to claim 1, wherein the first content is composed of first content data and a first content attribute, and before converting the first intermediate file into the at least one two-dimensional code, the method further comprises:
deleting and/or modifying part or all of the first content attributes in the first intermediate file.
3. The method for transmitting the document on the transmitting end according to claim 1, further comprising:
extracting second content in the document to be transmitted to form a second intermediate file of which the data volume is smaller than that of the document to be transmitted;
converting the second intermediate file into at least one second two-dimensional code;
and sending one or more of the at least one second two-dimensional code to a receiving end.
4. The method according to claim 3, wherein the first two-dimensional code carries a first tag for identifying a correspondence between the first two-dimensional code and the first intermediate file; the second two-dimensional code carries a second label for identifying the corresponding relationship between the second two-dimensional code and the second intermediate file.
5. The method for transmitting the document according to claim 4, wherein the first tag is further used for identifying the order of the first two-dimensional code in the first intermediate file; the second tag is further used for identifying the sequence of the second two-dimensional code in the second intermediate file.
6. The method for transmitting the document according to claim 1, wherein the converting the first intermediate file into at least one first two-dimensional code comprises:
extracting the first content and converting the first content into a binary code stream;
converting the binary code stream into at least one first two-dimensional code.
7. The method for transmitting the document according to claim 6, wherein the converting the first intermediate file into at least one first two-dimensional code comprises:
when the data capacity of the first two-dimensional code is larger than or equal to the data volume of the binary code stream, converting the first intermediate file into a first two-dimensional code;
and when the data capacity of the first two-dimensional code is smaller than the binary code stream, converting the first intermediate file into two or more first two-dimensional codes.
8. A document transmission method for a receiving end, comprising:
acquiring one or more first two-dimensional codes sent by a sending end;
identifying the one or more first two-dimensional codes to obtain a first intermediate file, wherein the first intermediate file at least comprises first content data;
and obtaining first content according to the first content data, and forming a document with the data volume larger than that of the first intermediate file.
9. The method for transmitting the document at the receiving end according to claim 8, wherein the first intermediate file further comprises at least a first content attribute, and wherein obtaining the first content according to the first content data comprises:
obtaining first content according to the first content data and the first content attribute; or:
and obtaining first content according to the first content data and the modified first content attribute.
10. The method for transmitting a document at a receiving end according to claim 8, wherein obtaining the first content according to the first content data comprises:
acquiring a first content attribute stored locally;
and obtaining first content according to the first content attribute and the first content data.
11. The method for transmitting a document on a receiving end according to claim 8, further comprising:
acquiring one or more second two-dimensional codes sent by a sending end;
identifying the one or more second two-dimension codes to obtain a second intermediate file, wherein the second intermediate file at least comprises second content data;
and obtaining second content according to the second content data, and combining the first content to form the document.
12. The method for transmitting the document at the receiving end according to claim 11, wherein a plurality of the first two-dimensional codes are sequentially converted into the first intermediate file according to a first tag carried by the first two-dimensional code; and according to a second label carried by the second two-dimension code, sequentially converting the plurality of second two-dimension codes into the second intermediate file.
13. The method of claim 12, wherein the document is formed according to an order of the first intermediate file and the second intermediate file.
14. The method of claim 8, wherein identifying the one or more first two-dimensional codes to obtain a first intermediate file comprises:
converting the one or more first two-dimensional codes into a binary code stream;
and obtaining the first intermediate file according to the binary code stream.
15. An apparatus for transmitting, comprising:
the document acquisition module is used for acquiring a document to be transmitted, wherein the document to be transmitted at least comprises first content;
the content extraction module is used for extracting the first content to form a first intermediate file of which the data volume is smaller than that of the document to be transmitted;
the file conversion module is used for converting the first intermediate file into at least one first two-dimensional code;
and the two-dimensional code sending module is used for sending one or more of the at least one first two-dimensional code to a receiving device.
16. A receiver apparatus, comprising:
the two-dimensional code receiving module is used for acquiring one or more first two-dimensional codes sent by the sending device;
the two-dimensional code identification module is used for identifying the one or more first two-dimensional codes to obtain a first intermediate file, and the first intermediate file at least comprises first content data;
and the document forming module is used for obtaining first content according to the first content data and forming a document with the data volume larger than that of the first intermediate file.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
18. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 8-14.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
20. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 8-14.
CN202110764685.7A 2021-07-06 2021-07-06 Document transmission method and device, electronic equipment and computer program product Active CN113382086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110764685.7A CN113382086B (en) 2021-07-06 2021-07-06 Document transmission method and device, electronic equipment and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110764685.7A CN113382086B (en) 2021-07-06 2021-07-06 Document transmission method and device, electronic equipment and computer program product

Publications (2)

Publication Number Publication Date
CN113382086A true CN113382086A (en) 2021-09-10
CN113382086B CN113382086B (en) 2022-11-25

Family

ID=77581165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110764685.7A Active CN113382086B (en) 2021-07-06 2021-07-06 Document transmission method and device, electronic equipment and computer program product

Country Status (1)

Country Link
CN (1) CN113382086B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117201485A (en) * 2023-11-07 2023-12-08 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031046A1 (en) * 2005-06-28 2007-02-08 Fuji Xerox Co., Ltd. Document processing method, document processing apparatus and program
CN105183750A (en) * 2015-07-14 2015-12-23 河南蓝信科技股份有限公司 Compact XML parsing system
CN106254553A (en) * 2016-09-30 2016-12-21 北京奇虎科技有限公司 A kind of document transmission processing method and apparatus
CN108173963A (en) * 2018-01-19 2018-06-15 大唐终端技术有限公司 A kind of method of the Quick Response Code transmission file of efficient schedulable
CN111832056A (en) * 2014-09-28 2020-10-27 伊姆西Ip控股有限责任公司 Method and system for generating two-dimensional code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031046A1 (en) * 2005-06-28 2007-02-08 Fuji Xerox Co., Ltd. Document processing method, document processing apparatus and program
CN111832056A (en) * 2014-09-28 2020-10-27 伊姆西Ip控股有限责任公司 Method and system for generating two-dimensional code
CN105183750A (en) * 2015-07-14 2015-12-23 河南蓝信科技股份有限公司 Compact XML parsing system
CN106254553A (en) * 2016-09-30 2016-12-21 北京奇虎科技有限公司 A kind of document transmission processing method and apparatus
CN108173963A (en) * 2018-01-19 2018-06-15 大唐终端技术有限公司 A kind of method of the Quick Response Code transmission file of efficient schedulable

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117201485A (en) * 2023-11-07 2023-12-08 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium
CN117201485B (en) * 2023-11-07 2024-02-06 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN113382086B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN111767254B (en) Multi-file reading device and method based on format data stream file technology
WO2017041587A1 (en) File display method and system
CN102056099B (en) By using hand-written data to reproduce the apparatus and method of hand-written message
CN108270926B (en) Apparatus and method for transmitting and receiving handwriting animation message
WO2017054597A1 (en) Processing method and device for emoji string
CN101127819A (en) A method and device for image transmission
US8782617B2 (en) Apparatus and method for translating open vector graphic application program interface
CN103220443A (en) Wireless printing from a device outside the network
US8656055B2 (en) Protocol wrapper and serializer/deserializer for facilitating data exchanges
CN113110829B (en) Multi-UI component library data processing method and device
CN113382086B (en) Document transmission method and device, electronic equipment and computer program product
US11258922B2 (en) Method of combining image files and other files
CN105704215B (en) Shared file system and corresponding document sending method and device
CN108228843B (en) Internet-based lecture note compression transmission and restoration method
JP2017211936A (en) Document storage processing system
CN101686568B (en) Methods and terminals for transmitting and displaying text information
US10972746B2 (en) Method of combining image files and other files
US20230024148A1 (en) Data processing methods and systems, and electronic devices
CN103699538A (en) Method and device for file sharing
CN114039969A (en) Data transmission method and device
CN102333121B (en) Method for sending and receiving HTTP (Hyper Text Transfer Protocol) attachment as well as server and terminal equipment
CN109784082A (en) A kind of picture and text correlation robust steganography method and system based on pdf document
KR101661646B1 (en) Webpage service system and method using image code
CN106951226B (en) Method and system for displaying characters in thumbnail
CN106383840A (en) Switching method of demo file to office file, and 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
GR01 Patent grant
GR01 Patent grant