CN101599057B - Method and system for automatically adjusting margins of PDF file - Google Patents
Method and system for automatically adjusting margins of PDF file Download PDFInfo
- Publication number
- CN101599057B CN101599057B CN2008101144813A CN200810114481A CN101599057B CN 101599057 B CN101599057 B CN 101599057B CN 2008101144813 A CN2008101144813 A CN 2008101144813A CN 200810114481 A CN200810114481 A CN 200810114481A CN 101599057 B CN101599057 B CN 101599057B
- Authority
- CN
- China
- Prior art keywords
- limit
- empty
- pdf document
- parameter
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention relates to a method and a system for automatically adjusting the margins of a PDF file, belonging to the technical field of the computer information processing. In the working process before printing, particularly the working process before newspaper printing, sometimes it has a certain requirement for the sizes of the margins of the PDF file needed by imposing. In the prior art, the margins of a layout are manually typesetted and adjusted by a professional typesetter usually without changing the content of the layout, thereby having the defects of poor margin adjusting reliability and low production efficiency. The margins of the PDF file are automatically adjusted by the method and the system according to the margin parameters set by the user without being repeatedly and manually typesetted by the typesetter, thereby saving the manpower cost and the improving the margin adjusting reliability and the production efficiency.
Description
Technical field
The present invention relates to technical field of computer information processing, be specifically related to the method and system of a kind of automatic adjustment pdf document limit sky.
Background technology
At present, computer realm before the seal of books, newpapers and periodicals, conventional is that pdf document is that the workflow of core is as follows with the Portable Document format file:
(1) takes the page description file of small breadth from the customers' place;
(2) the Portable Document format file that the page description file of small breadth is converted into small breadth is a pdf document, and this process is called standardization;
(3) the limit air-conditioning is whole, promptly before next processing links as required the limit sky to pdf document adjust;
(4) according to the breadth of the own hardware device of manufacturer, the pdf document of small breadth is combined into the page description file of large format according to the requirement of printing, this process is called " piecing together big version " or " folding hand ", when soon the pdf document of small breadth is pieced together big edition, this process has just been stipulated the page location of the page on big version, rather than really the pdf document of all small breadths is merged into the big version pdf document of a complexity.Piece together obtaining a page description file with the big version of XML language description after big version process operation is finished, this document has write down each page should be in the accurate position of big version; Simultaneously, piece together and also obtain a breadth and the identical PDF tab file of big version file size after big version process operation is finished, this tab file has write down label information, as information such as slitter marks, fold indication, word markings, the various attributes that these information are used to indicate this big version file and arrange little page file thereon;
(5) the face description document of the pdf document of small breadth, tab file and big version is carried out being converted into lattice file behind the computer interpretation, this process is called rasterisation;
(6) lattice file is sent to the enterprising line output of hardware device of types such as printer, film setter, this process and rasterisation merge and are called output, and after this process was finished, work flow before printing just was through with.
At present, overwhelming majority users use a computer and carry out work except that above-mentioned the 3rd link, if the limit of some pdf document is empty nonconforming empty excessive or too small as the limit, especially in the journalism work flow before printing, sometimes the size of the limit sky of the needed pdf document of doubling hand has certain requirement, and existing P DF file promptly can only be read and can not edit owing to its intrinsic characteristics, make that the limit air-conditioning of pdf document is whole very difficult, if before seal, need to adjust the limit of pdf document in the process of typeset when empty, generally be under the prerequisite that does not change space of a whole page content, space of a whole page limit sky to be carried out manual editing's modification by specialty composing personnel, be manual amendment and adjustment page description file, and then standardize again, the folding hand, a series of work such as output.But such manually-operated exists and occurs a lot of shortcomings such as maloperation, expense effort, reliability be low easily, and efficient is also very low.
Summary of the invention
At the defective that exists in the prior art, the method that the purpose of this invention is to provide a kind of automatic adjustment pdf document limit sky, utilize this method that the limit sky that the empty parameter in limit can realize adjusting automatically pdf document only need be set, do not need manually-operated, not needing again page description file to be inserted software for composing again in particularly setting type before seal manually adjusts, can improve worker productivity and evade the possibility that mistake occurs, make prepress workflow robotization, specialization, save labour turnover, shorten the typography flow process.
Another purpose of this invention provides the system of a kind of automatic adjustment pdf document limit sky, by this system, can adjust the limit sky of pdf document automatically by the empty parameter in the limit of user's setting, do not need manually-operated, simple and convenient, particularly in work flow before printing, can improve worker productivity and evade the possibility that mistake occurs, make prepress workflow robotization, specialization, save labour turnover, shorten the typography flow process.
For reaching above purpose, the technical solution used in the present invention is: the method for a kind of automatic adjustment pdf document limit sky may further comprise the steps:
(1) obtains and to carry out the whole pdf document of limit air-conditioning;
(2) user is provided with the empty parameter in limit as required, according to this parameter the limit sky of pdf document is adjusted automatically, obtains the empty adjusted pdf document in limit, and concrete method of adjustment is as follows:
1) pdf document is rasterized into dot matrix, generates preview graph by these dot matrix then;
2) to the preview graph that generates in the step 1) pixel on its four limits of lining by line scan, thereby calculate the white edge size of preview graph, and then calculate the empty size in limit of PDF;
3) thus calculate the page size of the empty adjusted PDF in limit according to the empty size in the limit of the page size of PDF and PDF;
4) scan source PDF adjusts the numerical value of object relevant with page size in it, just can obtain the empty adjusted PDF in limit.
Further, described preview graph is the image of GIF, JPEG or tiff format.
Further, the empty parameter in the limit described in the step (2) comprises empty parameter in absolute limit and the empty parameter of relative edge;
Further, the empty parameter in described absolute limit is meant that according to the determined numerical value of this parameter be exactly the white edge that the empty adjusted pdf document in limit is kept;
The empty parameter of described relative edge is meant that the determined numerical value of this parameter is not the white edge that the empty adjusted pdf document in limit is kept, and be meant and increase on the basis of the pdf document limit sky before the limit air-conditioning is whole or the white edge of minimizing, be white edge that the empty adjusted pdf document in limit is kept equal the limit air-conditioning whole before the white edge of pdf document add or reduce numerical value determined in this parameter, if this numerical value be on the occasion of, be exactly to add white edge so; If negative value, that reduces white edge exactly;
Further again, the empty parameter of described relative edge also is provided with odd even page or leaf symmetric parameter, this parameter makes that the white edge of the empty adjusted pdf document recto in limit and the white edge of verso are symmetrical, be the white edge that the white edge on the left side of the empty adjusted recto in limit equals the right of verso, the white edge on the right of recto equals the white edge on the left side of verso;
The system of a kind of automatic adjustment pdf document limit sky, this system comprise standardization module and coupled limit air-conditioning mould preparation piece;
Described standardization module: be used to obtain and carry out the whole pdf document of limit air-conditioning;
Described limit air-conditioning mould preparation piece: the empty parameter in limit that is used for being provided with according to the user is adjusted automatically to the limit sky of pdf document, obtains the empty adjusted pdf document in limit, and concrete adjustment process is as follows:
1) pdf document is rasterized into dot matrix, generates preview graph by these dot matrix then;
2) to the preview graph that generates in the step 1) pixel on its four limits of lining by line scan, thereby calculate the white edge size of preview graph, and then calculate the empty size in limit of PDF;
3) thus calculate the page size of the empty adjusted PDF in limit according to the empty size in the limit of the page size of PDF and PDF;
4) scan source PDF adjusts the numerical value of object relevant with page size in it, just can obtain the empty adjusted PDF in limit.
Effect of the present invention is: adopt method and system of the present invention, can utilize computing machine automatically to adjust the white edge of pdf document, should use very convenient, particularly setting type with the pdf document before seal is in the workflow work of core, adjust the limit of pdf document if desired when empty, needn't adjust by artificial at front end, thereby save manpower greatly, and improve speed and accuracy greatly.
Description of drawings
Fig. 1 is the process flow diagram of the method for the invention;
Fig. 2 parameter synoptic diagram that is provided with of the present invention;
Fig. 3 adopts the method for the invention to adjust the empty synoptic diagram in pdf document limit automatically;
Fig. 4 is the structural representation of system of the present invention.
Embodiment
The invention will be further described below in conjunction with Figure of description and specific embodiment:
As shown in Figure 4, the system of a kind of automatic adjustment pdf document limit sky, this system comprise standardization module and coupled limit air-conditioning mould preparation piece;
Described standardization module: be used to obtain pdf document, send coupled limit air-conditioning mould preparation piece then to;
Described limit air-conditioning mould preparation piece: the empty parameter in limit that is used for being provided with according to the user is adjusted the limit sky of pdf document.
As shown in Figure 1, the method of a kind of automatic adjustment pdf document limit sky, centre joint file zhongfeng.ps with a newspaper of processing in the work flow before printing in the present embodiment is an example, suppose the empty size (left side, limit of this centre joint file, right, on, under the limit sky be 5mm) for 5mm, and when finally rolling over hand (promptly piece together big version) we need the limit of centre joint file of corresponding PDF empty for 1mm (left side, the right side, on, under the limit sky be 1mm), because page description file zhongfeng.ps is the PS file, its standard need be turned to pdf document usually in the work flow before printing, the corresponding pdf document in standardization back is 400-_zhongfeng_ps_0001.pdf; As adopt method of the present invention to adjust the limit of the pdf document described in the present embodiment automatically when empty, specific as follows:
Embodiment 1
The method of a kind of automatic adjustment pdf document limit sky may further comprise the steps:
(1) obtains and to carry out the whole pdf document of limit air-conditioning;
In the present embodiment, obtain that need to carry out the whole pdf document of limit air-conditioning be 400-_zhongfeng_ps_0001.pdf;
(2) user is provided with the empty parameter in limit as required, according to this parameter the limit sky of pdf document is adjusted automatically, obtains the empty adjusted pdf document in limit; The empty parameter in described limit comprises empty parameter in absolute limit and the empty parameter of relative number;
The empty parameter in described absolute limit is meant that according to the determined numerical value of this parameter be exactly the white edge that the empty adjusted pdf document in limit is kept;
The empty parameter of described relative edge is meant that the determined numerical value of this parameter is not the white edge that the empty adjusted pdf document in limit is kept, and be meant and increase on the basis of the pdf document limit sky before the limit air-conditioning is whole or the white edge of minimizing, be white edge that the empty adjusted pdf document in limit is kept equal the limit air-conditioning whole before the white edge of pdf document add or reduce determined numerical value in this parameter, if this numerical value be on the occasion of, be exactly to add white edge so; If negative value, that reduces white edge exactly;
The empty parameter in limit need be provided with left side sky, the right sky usually when being provided with, the top is empty and following sky, the empty numerical value in the limit of four direction can be provided with simultaneously, one of them or several numerical value also can only be set, the empty numerical value in the limit of four direction can be identical, also can be different, determine according to actual needs that by the user the whole unit of limit air-conditioning is mm normally also;
In the present embodiment, we need the limit sky of adjusted pdf document is 1mm, this numerical value has been determined the white edge that adjusted pdf document limit sky should keep, therefore we are provided with the empty parameter in absolute limit as required, as shown in Figure 2, with this left side sky, the right is empty, the top sky, following empty limit sky all is set to 1mm, after parameter sets, according to this parameter the limit sky of pdf document 400_zhongfeng_ps_0001.pdf is adjusted automatically, obtain the empty adjusted pdf document 400-_zhongfeng_ps_0001_Clip.pdf in limit, the left side sky of this pdf document, the right is empty, the top sky, following sky is 1mm, promptly left, right, on, under white edge be 1mm, as shown in Figure 3;
When according to the empty parameter in absolute limit the limit sky of pdf document being adjusted automatically, the concrete grammar of employing is:
1) pdf document is rasterized into dot matrix, generates preview graph by these dot matrix then;
2) to the preview graph that generates in the step 1) pixel on its four limits of lining by line scan, thereby calculate the white edge size of preview graph, and then calculate the empty size in limit of PDF;
3) thus calculate the page size of the empty adjusted PDF in limit according to the empty size in the limit of the page size of PDF and PDF;
4) scan source PDF adjusts the numerical value of object relevant with page size in it, just can obtain the empty adjusted PDF in limit;
(3) the limit air-conditioning of pdf document is whole finishes, handle and also be through with, certainly, in actual applications, in the work flow before printing as present embodiment, obtain the empty adjusted pdf document in limit after, continue the empty adjusted pdf document in limit is rolled over follow-up prepress workflow operation such as hand, rasterisation and output, if the pdf document in the subsequent operation also needs the limit air-conditioning whole, operation that can repeating step (2).
Embodiment 2
In the present embodiment, suppose that needing the pdf document of adjustment limit sky is tiaozheng.pdf, the empty size in its limit was before the limit air-conditioning was whole: left side sky and top sky are 5mm, empty and the following empty limit sky in the right is 3mm, needing final limit sky is the empty and empty 4mm of being in top in the left side, empty and the following empty limit sky in the right is 3mm, when if the user has selected relative edge's sky parameter when limit sky parameter is set, left side sky then, the right is empty, the top sky, the empty parameter in following empty limit all is set to-1mm, promptly before the limit air-conditioning is whole, to reduce 1mm on the white edge basis of pdf document tiaozheng.pdf, according to the empty parameter in limit the limit sky of pdf document is adjusted automatically, obtaining the empty adjusted pdf document in limit is the empty and empty 4mm of being in top in the left side, and the empty and following empty limit sky in the right is 3mm; Satisfied user's demand, the method for adjusting according to the empty parameter in limit is identical with embodiment 1.
Method of the present invention is not limited to the example described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.
Claims (6)
1. method of automatically adjusting pdf document limit sky may further comprise the steps:
(1) obtains and to carry out the whole pdf document of limit air-conditioning;
(2) user is provided with the empty parameter in limit as required, according to this parameter the limit sky of pdf document is adjusted automatically, obtains the empty adjusted pdf document in limit, and concrete method of adjustment is as follows:
1) pdf document is rasterized into dot matrix, generates preview graph by these dot matrix then;
2) to the preview graph that generates in the step 1) pixel on its four limits of lining by line scan, thereby calculate the white edge size of preview graph, and then calculate the empty size in limit of PDF;
3) thus calculate the page size of the empty adjusted PDF in limit according to the empty size in the limit of the page size of PDF and PDF;
4) scan source PDF adjusts the numerical value of object relevant with page size in it, just can obtain the empty adjusted PDF in limit.
2. the method for a kind of automatic adjustment pdf document as claimed in claim 1 limit sky, it is characterized in that: described preview graph is the image of GIF, JPEG or tiff format.
3. the method for a kind of automatic adjustment pdf document as claimed in claim 1 limit sky is characterized in that: the empty parameter in the limit described in the step (2) comprises empty parameter in absolute limit and the empty parameter of relative edge.
4. the method for a kind of automatic adjustment pdf document as claimed in claim 3 limit sky is characterized in that: the empty parameter in described absolute limit is meant that according to the determined numerical value of this parameter be exactly the white edge that the empty adjusted pdf document in limit is kept;
The empty parameter of described relative edge is meant that the determined numerical value of this parameter is not the white edge that the empty adjusted pdf document in limit is kept, and be meant and increase on the basis of the pdf document limit sky before the limit air-conditioning is whole or the white edge of minimizing, be white edge that the empty adjusted pdf document in limit is kept equal the limit air-conditioning whole before the white edge of pdf document add or reduce numerical value determined in this parameter, if this numerical value be on the occasion of, be exactly to add white edge so; If negative value, that reduces white edge exactly.
5. the method for a kind of automatic adjustment pdf document as claimed in claim 4 limit sky, it is characterized in that: the empty parameter of described relative edge also is provided with odd even page or leaf symmetric parameter, this parameter makes that the white edge of the empty adjusted pdf document recto in limit and the white edge of verso are symmetrical, be the white edge that the white edge on the left side of the empty adjusted recto in limit equals the right of verso, the white edge on the right of recto equals the white edge on the left side of verso.
6. system that automatically adjusts pdf document limit sky, this system comprises standardization module and coupled limit air-conditioning mould preparation piece;
Described standardization module: be used to obtain and carry out the whole pdf document of limit air-conditioning;
Described limit air-conditioning mould preparation piece: the empty parameter in limit that is used for being provided with according to the user is adjusted automatically to the limit sky of pdf document, obtains the empty adjusted pdf document in limit, and concrete adjustment process is as follows:
1) pdf document is rasterized into dot matrix, generates preview graph by these dot matrix then;
2) to the preview graph that generates in the step 1) pixel on its four limits of lining by line scan, thereby calculate the white edge size of preview graph, and then calculate the empty size in limit of PDF;
3) thus calculate the page size of the empty adjusted PDF in limit according to the empty size in the limit of the page size of PDF and PDF;
4) scan source PDF adjusts the numerical value of object relevant with page size in it, just can obtain the empty adjusted PDF in limit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101144813A CN101599057B (en) | 2008-06-03 | 2008-06-03 | Method and system for automatically adjusting margins of PDF file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101144813A CN101599057B (en) | 2008-06-03 | 2008-06-03 | Method and system for automatically adjusting margins of PDF file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101599057A CN101599057A (en) | 2009-12-09 |
CN101599057B true CN101599057B (en) | 2011-11-16 |
Family
ID=41420505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101144813A Expired - Fee Related CN101599057B (en) | 2008-06-03 | 2008-06-03 | Method and system for automatically adjusting margins of PDF file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101599057B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541479B (en) * | 2010-12-21 | 2015-03-25 | 北大方正集团有限公司 | Method and system for using Portable Document Format (PDF) in security bills |
CN102306143A (en) * | 2011-09-22 | 2012-01-04 | 汉王科技股份有限公司 | Method and system for generating and editing PDF (portable document format) document |
CN105335337B (en) * | 2014-06-17 | 2017-12-19 | 北大方正集团有限公司 | The method for splitting and device of cross-page file |
CN105677267B (en) * | 2014-11-19 | 2018-11-16 | 珠海金山办公软件有限公司 | A kind of page display method and device |
CN113253888A (en) * | 2021-05-06 | 2021-08-13 | 广州文石信息科技有限公司 | Layout document odd-even page display adjustment method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1530856A (en) * | 2003-03-12 | 2004-09-22 | ������������ʽ���� | Placement system, programm and method |
CN1632785A (en) * | 2005-01-18 | 2005-06-29 | 北京北大方正电子有限公司 | Method for attaching label in page rasterizing |
-
2008
- 2008-06-03 CN CN2008101144813A patent/CN101599057B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1530856A (en) * | 2003-03-12 | 2004-09-22 | ������������ʽ���� | Placement system, programm and method |
CN1632785A (en) * | 2005-01-18 | 2005-06-29 | 北京北大方正电子有限公司 | Method for attaching label in page rasterizing |
Also Published As
Publication number | Publication date |
---|---|
CN101599057A (en) | 2009-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101599057B (en) | Method and system for automatically adjusting margins of PDF file | |
US6182096B1 (en) | Method and apparatus of creating highly portable output files by combining pages from multiple input files | |
US6480866B2 (en) | Method and apparatus to facilitate creation of documents from individual pages | |
US7710590B2 (en) | Automatic maintenance of page attribute information in a workflow system | |
US7589851B2 (en) | System for job control of a document processing system and method for job control of document processing process | |
CN101122898A (en) | Layout splicing method and equipment | |
JP5288837B2 (en) | Print job control apparatus, print job control method, print job control program | |
CN101388004A (en) | Method for regulating page size of pollable document format file, apparatus and system | |
CN101082907B (en) | Mixed makeup method and system | |
DE10148655A1 (en) | Interface system and method | |
CN100424629C (en) | Method for automatic generating proof line during makeup | |
CN105765519A (en) | Information processing apparatus, information processing method, and program | |
US9754196B2 (en) | Method and device for the markless control or regulation of a digital printing process | |
US20070091331A1 (en) | Printing support system, printing support program, storage medium, and printing support method | |
JP2014166720A (en) | Post-processing device | |
CN101388002A (en) | Method and system for auto generating folding special color marker | |
CN102611814A (en) | Method for merging images and office machine capable of presetting typesetting format and automatically merging images | |
CN114863147B (en) | Intelligent comparison method and system for spliced large-plate printed images and application of intelligent comparison method and system | |
CN107423005B (en) | Paper selection method and device | |
CN112965671A (en) | Automatic splitting and printing control system for large drawings | |
JP2000326473A (en) | Automatic imposition device | |
CN111258515B (en) | Data processing method, device and equipment | |
CN101472025B (en) | Control module and method for printing poster | |
EP1511292A2 (en) | Image outputting system | |
JP2003270771A (en) | Page layout method for printed matter having picture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111116 Termination date: 20190603 |
|
CF01 | Termination of patent right due to non-payment of annual fee |