CN110516211A - A kind of method that Word document is converted to long picture - Google Patents

A kind of method that Word document is converted to long picture Download PDF

Info

Publication number
CN110516211A
CN110516211A CN201910816189.4A CN201910816189A CN110516211A CN 110516211 A CN110516211 A CN 110516211A CN 201910816189 A CN201910816189 A CN 201910816189A CN 110516211 A CN110516211 A CN 110516211A
Authority
CN
China
Prior art keywords
picture
width
height
long
converted
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.)
Withdrawn
Application number
CN201910816189.4A
Other languages
Chinese (zh)
Inventor
郑侃炜
孔梦圆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hudun Information Technology Co Ltd
Original Assignee
Shanghai Hudun Information 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 Shanghai Hudun Information Technology Co Ltd filed Critical Shanghai Hudun Information Technology Co Ltd
Priority to CN201910816189.4A priority Critical patent/CN110516211A/en
Publication of CN110516211A publication Critical patent/CN110516211A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of methods that Word document is converted to long picture comprising the steps of: A, user import document;B, increase a parameter setting region in software interface, the inside increases several controls, is respectively set to " input page number range ", " height ", " width ", " base map color ", " base map picture ", " output file format ";C, memory stream is written into the Word document of importing, when memory stream is written, only saves content of pages specified in " input page number range ".User can not have to open Word file again, by the relevant parameter for inputting long picture, so that it may quickly generate a long picture when converting long picture using the present invention;Secondly output format can at will be specified to the long picture of generation, the gap size when generating long picture between specified page.It is compared with normal picture production method, i.e., quick and accurate true, avoid maloperation problem when manual operation picture.

Description

A kind of method that Word document is converted to long picture
Technical field
The present invention relates to file processing technology field, method that specifically a kind of Word document is converted to long picture.
Background technique
In presently disclosed information and find no software, SDK (the software development work that Word is converted to a long picture Tool packet), dll (dynamic link library file can be quoted) etc..
At work, the method that Word is converted to long picture by many picture making personnel is all using Adobe company A kind of drawing softwares such as Photoshop (drawing software) will splice again again after Word individual pages screenshot.
It is current that there are many vertical long screens, such as " the LED large display screen above square " or " the vertical advertisement screen of elevator " etc. Apparatus for media playing needs to play long picture.In addition computer screen, which is shown, also very more applications, for example " produces Product demonstration, webpage design " etc. is also required to a big long picture sometimes.If original document is that Word format (meets The Winword of Microsft company generates doc or docx format, or meets the docx format of WPS Office generation), switch to It is using graphics software joining method, i.e., slow and error-prone if one long picture is shown.
Summary of the invention
The purpose of the present invention is to provide a kind of methods that Word document is converted to long picture, to solve the background technique The problem of middle proposition.
In order to achieve the object, the invention provides the following technical scheme:
A kind of method that Word document is converted to long picture comprising the steps of:
A, user imports document;
B, increase a parameter setting region in software interface, the inside increases several controls, is respectively set to " input page number model Enclose ", " height ", " width ", " base map color ", " base map picture ", " output file format ";
C, memory stream is written into the Word document of importing, when memory stream is written, only saved specified in " input page number range " Content of pages;
D, the memory stream that step C is saved is saved as into picture format according to " output file format ";
E, " height " or " width " value inside " parameter setting " is read;
F, " height " and " width " value obtained according to step E, makes a picture, background is with defined above in memory " base map color " or " base map picture " filling, generates one " original graph ";
G, " height " and " width " value obtained according to step F, by " the longitudinal picture " that has been saved or " lateral picture ", by vertical Horizontal Scaling is " height " and " width " value currently obtained.The picture obtained herein and " original graph " is superimposed, production One final " result picture ";
H, " the result picture " ultimately generated is saved, is exported as final result file.
As a further solution of the present invention: there are two types of methods for the importing document: one is pulling to import, one is logical Cross button importing.
As further scheme of the invention: the control " input page number range " is used for input page range.
As further scheme of the invention: the control " height " is used to export the height of result picture, with " width The choosing of both degree " is first, select it to indicate the result picture of output for longitudinal picture.
As further scheme of the invention: the control " width " is used to export the width of result picture, with " height The choosing of both degree " is first, select it to indicate the result picture of output for lateral picture.
As further scheme of the invention: the control " base map color " is used for plurality of pictures during output It when combination has blank, is filled using it, selects one with " base map picture " the two.
As further scheme of the invention: the control " base map picture " is used for plurality of pictures during output It when combination has blank, is filled using it, selects one with " base map color " the two.
As further scheme of the invention: the control " output file format " is used to define the picture of definitive document Output format.
As further scheme of the invention: there are two types of situations by the step E: 1. if selection inside " parameter setting " Be " height ": calculate the length and width of the every picture saved above, obtain " maximum width " of picture, while obtaining picture " total height ", calculate " width "=" height " ╳ " maximum width "/" total height " of result picture, while will protect The picture kept becomes one " longitudinal picture " according to highly linking together;2. if what is selected inside " parameter setting " is " width ": calculating the length and width of the every picture saved above, obtains " maximum height " of picture, while obtaining picture " overall width ", calculates " height "=" width " ╳ " maximum height "/" overall width " of result picture, while will be saved Good picture, links together according to width, becomes one " lateral picture ".
It compared with prior art, can not the beneficial effects of the present invention are: user is when converting long picture using the present invention With Word file is opened again, by the relevant parameter for inputting long picture, so that it may quickly generate a long picture;It secondly can be right The long picture generated at will specifies output format, the gap size when generating long picture between specified page.With normal picture Production method is compared, i.e., quick and accurate true, avoids maloperation problem when manual operation picture.
Detailed description of the invention
Fig. 1 is system architecture diagram of the invention.
Fig. 2 is long one schematic diagram of picture pattern after conversion.
Fig. 3 is long two schematic diagram of picture pattern after conversion.
Fig. 4 is long three schematic diagram of picture pattern after conversion.
Fig. 5 is long four schematic diagram of picture pattern after conversion.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment 1: please referring to Fig. 1-5, in order to achieve the object, the invention provides the following technical scheme:
A kind of method that Word document is converted to long picture comprising the steps of:
One, user imports document;
Importing document, there are two types of methods:
1. document is chosen in dragging:
First software interface increases a FileListBox.The Word document for wanting to operate is selected from any catalogue of computer, directly Connect the FileListBox entered inside software operation interface with mouse drag.
2. clicking button imports document:
Software interface increases a FileListBox.Increase button " addition Word document ", " deleting Word document " simultaneously.
Click " addition Word document " external file can be pressed from both sides in Word document be introduced into FileListBox.
The Word document having been introduced into FileListBox can be deleted by clicking " deleting Word document ".
Two, Word document is converted into a long picture;
1. parameter setting:
Increase a parameter setting region in software interface, the inside increases several controls, be respectively set to " input page number range ", " height ", " width ", " base map color ", " base map picture ", " output file format ".
The definition of each control:
" input page number range ": can be with input page range, for example " 1-5 " indicates page 1 to page 5 of selection, or " 1,7, 11 " indicate that only selection page 1, page 7, page 11, or input " whole " indicate to select whole pages.
" height ": the height of output result picture, with the choosing of " width " the two first, it is selected to indicate the result picture of output For longitudinal picture.
" width ": the width of output result picture, with the choosing of " height " the two first, it is selected to indicate the result picture of output For lateral picture.
" base map color ": during output, plurality of pictures combination when having blank, is filled using it, with " base map figure Both pieces " select one.It can define as default color values herein.
" base map picture ": during output, plurality of pictures combination when having blank, is filled using it, with " base map face Both colors " select one.Can define herein becomes default picture, corresponding filename (belt path) in oneself corresponding computer.
" output file format ": the picture output format of definitive document.
2. starting to convert:
Software interface increases a button " starting to convert ", and clicking it can be inner according to " parameter setting " by the page of Word document The parameter definition in face exports final result.
Conversion process is as follows:
1) memory stream first is written into the Word document of importing, when memory stream is written, only saves regulation in " input page number range " Content of pages.
2) the memory stream saved above is saved as into picture format according to " output file format ", text can be saved as at this time Part can also only save as memory stream.
3) " height " or " width " value inside " parameter setting " is read.
4) according to " height " and " width " value obtained above, a picture is made in memory, background is to be defined above " base map color " or " base map picture " filling, generate one " original graph ".
5) according to " height " and " width " value for obtaining above, by " the longitudinal picture " that has been saved or " lateral picture ", It is " height " and " width " value currently obtained by Scaling in length and breadth.The picture obtained herein and " original graph " is superimposed, Production one final " result picture ".
5) " the result picture " ultimately generated is saved, is exported as final result file.
Embodiment 2 reads " height " or " width " value inside " parameter setting ", at two kinds on the basis of embodiment 1 Value in situation:
1. if what is selected inside " parameter setting " is " height ": calculating the length and width of the every picture saved above, obtain " maximum width " of picture, while " total height " of picture is obtained, " width "=" height " ╳ for calculating result picture is " maximum Width "/" total height ".The picture that will have been kept simultaneously becomes one " longitudinal picture " according to highly linking together.
2. if what is selected inside " parameter setting " is " width ": the length and width of the every picture saved above are calculated, " maximum height " of picture is obtained, while obtaining " overall width " of picture, calculates " height "=" width " ╳ of result picture " maximum height "/" overall width ".The picture that will have been kept simultaneously, links together according to width, becomes one " laterally Picture ".
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (9)

1. a kind of method that Word document is converted to long picture, which is characterized in that comprise the steps of:
A, user imports document;
B, increase a parameter setting region in software interface, the inside increases several controls, is respectively set to " input page number model Enclose ", " height ", " width ", " base map color ", " base map picture ", " output file format ";
C, memory stream is written into the Word document of importing, when memory stream is written, only saved specified in " input page number range " Content of pages;
D, the memory stream that step C is saved is saved as into picture format according to " output file format ";
E, " height " or " width " value inside " parameter setting " is read;
F, " height " and " width " value obtained according to step E, makes a picture, background is with defined above in memory " base map color " or " base map picture " filling, generates one " original graph ";
G, " height " and " width " value obtained according to step F, by " the longitudinal picture " that has been saved or " lateral picture ", by vertical Horizontal Scaling is " height " and " width " value currently obtained;The picture obtained herein and " original graph " is superimposed, production One final " result picture ";
H, " the result picture " ultimately generated is saved, is exported as final result file.
2. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the importing text There are two types of methods for shelves: one is pulling to import, one is imported by button.
3. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the control " input page number range " is used for input page range.
4. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the control " height " is used to export the height of result picture, with the choosing of " width " the two first, it is selected to indicate that the result picture of output is vertical To picture.
5. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the control " width " is used to export the width of result picture, with the choosing of " height " the two first, it is selected to indicate that the result picture of output is cross To picture.
6. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the control " base map color " is used for during output, when plurality of pictures combination has blank, is filled using it, with " base map picture " the two Select one.
7. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the control " base map picture " is used for during output, when plurality of pictures combination has blank, is filled using it, with " base map color " the two Select one.
8. the method that a kind of -7 any Word documents are converted to long picture according to claim 1, which is characterized in that described Control " output file format " is used to define the picture output format of definitive document.
9. the method that a kind of Word document according to claim 1 is converted to long picture, which is characterized in that the step E There are two types of situation: 1. if what is selected inside " parameter setting " is " height ": calculate the length of the every picture saved above with Width, obtains " maximum width " of picture, while obtaining " total height " of picture, calculates " width "=" height " of result picture ╳ " maximum width "/" total height ", while the picture that will have been kept become one and " indulge according to highly linking together To picture ";2. if what is selected inside " parameter setting " is " width ": the length and width of the every picture saved above are calculated, " maximum height " of picture is obtained, while obtaining " overall width " of picture, calculates " height "=" width " ╳ of result picture " maximum height "/" overall width ", while the picture that will have been kept, link together according to width, become one " laterally Picture ".
CN201910816189.4A 2019-08-30 2019-08-30 A kind of method that Word document is converted to long picture Withdrawn CN110516211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910816189.4A CN110516211A (en) 2019-08-30 2019-08-30 A kind of method that Word document is converted to long picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910816189.4A CN110516211A (en) 2019-08-30 2019-08-30 A kind of method that Word document is converted to long picture

Publications (1)

Publication Number Publication Date
CN110516211A true CN110516211A (en) 2019-11-29

Family

ID=68629647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910816189.4A Withdrawn CN110516211A (en) 2019-08-30 2019-08-30 A kind of method that Word document is converted to long picture

Country Status (1)

Country Link
CN (1) CN110516211A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063001A (en) * 2019-12-18 2020-04-24 北京金山安全软件有限公司 Picture synthesis method and device, electronic equipment and storage medium
CN113919295A (en) * 2021-09-07 2022-01-11 湖北美和易思教育科技有限公司 Method for converting document into picture, terminal and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063001A (en) * 2019-12-18 2020-04-24 北京金山安全软件有限公司 Picture synthesis method and device, electronic equipment and storage medium
CN111063001B (en) * 2019-12-18 2023-11-10 北京金山安全软件有限公司 Picture synthesis method, device, electronic equipment and storage medium
CN113919295A (en) * 2021-09-07 2022-01-11 湖北美和易思教育科技有限公司 Method for converting document into picture, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN101699426B (en) Document format conversion system and method
KR102131159B1 (en) Methods and devices for controlling smart devices and computer storage media
KR101760777B1 (en) System of Building Responsive Website And Method there-of
EP2495667A1 (en) System, method, and program for editing of electronic document
Gasston The book of CSS3: A Developer's Guide to the Future of Web Design
CN107832045A (en) Across the method and apparatus of programming language interface conversion
CN105630459A (en) Method for converting PPT document to HTML page
US7650564B2 (en) Global tone adjustment system for document files containing text, raster, and vector images
CN110516211A (en) A kind of method that Word document is converted to long picture
CN110096275A (en) A kind of page processing method and device
JP6879972B2 (en) Methods and devices for embodying editing fonts
CN109165014B (en) Method, device and equipment for editing control and computer storage medium
US20130028514A1 (en) Non-transitory computer-readable storage medium containing html file, file conversion method, and non-transitory computer-readable storage medium containing file conversion program
Bauguess et al. Capital Raising in the US: An Analysis of the Market for Unregistered Securities
CN112015410A (en) Webpage editing method, device and system and computer storage medium
CN112214622A (en) Data processing method and device for rapidly displaying AutoCAD drawing
CN106484413A (en) Document editor and document edit method
Spritzer et al. Towards a smooth design process for static communicative node‐link diagrams
JP7049173B2 (en) Sign language CG translation editing equipment and programs
CN101944081A (en) Computer generation, edition method of Guqin abbreviated character notation and system thereof
CN108447108A (en) Pier facilities monitored picture analysis system and method
KR20150006612A (en) Web page making system and method for maintaining compatibility of web browser and font
CN104317609B (en) A kind of multilingual display design method of instrument
JP6795996B2 (en) Sign language CG editing equipment and programs
JP6518025B1 (en) Program, recording medium, and system for converting display instruction data for instructing display of web page

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20191129

WW01 Invention patent application withdrawn after publication