TIFF-file data structure for driverless, selectable multi-option TIFF printing
A TIFF-file data structure for use by a printer to print a plural-page print job relating to serially-paginated pages, in the context of implementation by the printer of a driverless, page-image-data-independent printing method, where the data structure exists in the form of an otherwise conventional TIFF-file data structure which has been modified by the selective alteration therein of solely at least one of (a) the order, and (b) the orientation, of page printing from a multi-page TIFF file. The subject data structure includes (a) plural, page-specific page-data units, one for each page in a print job, and (b) for each page-data unit, an associated path pointer which, during printing, defines the relative order of specific page-data-unit printing, such path pointers collectively being internally data-constructed to direct a printing operation in a manner whereby not all successively page-numbered page-data units are printed successively in regular serial order.
Latest Patents:
- MULTI-FUNCTIONAL ACTIVE COMPLEX FOR RESTORATION OF SKIN BARRIER AND SEBUM REGULATION AND METHOD FOR ADMINISTERING THE SAME
- COLLABORATIVE CARE METHOD FOR SCALP HAIR FOLLICLES AND STRANDS
- ANTIMICROBIAL COMPOSITIONS
- INJECTABLE COMPOSITION, PHARMACEUTICAL FORMULATION INCLUDING THE SAME, AND METHOD FOR PREPARING THE COMPOSITION
- A MACROLIDE FOR USE IN A METHOD OF PREVENTING OR TREATING AN IMMUNOLOGICAL DISEASE OR DISORDER
This invention relates to the printing of multi-page documents from a TIFF file, and specifically to the driverless printing of such documents, in a manner which also enables the convenient implementation and performance of a multiplicity of conventional print options. In particular, the invention involves specifically a unique TIFF-file data structure (also called a TIFF file) which features modifications in the Image File Directory (IFD) portion(s) of that data structure, and which thereby enables such driverless printing.
IFD data in a TIFF file is associated with each page-specific (image) data unit, referred to herein both as a page-data unit, and sometimes as a data-page unit. Such IFD data is normally organized to establish regular, serial-order sequential printing of pages. The IFD data includes operational path pointers for directing this normal activity.
As will be seen, the invention, in its focus on a TIFF-file data structure as mentioned, provides an easy and elegant way to utilize the internal structure of a TIFF file per se to enable driverless, rasterization-free, multi-option-capability, TIFF-file printing.
What is more specifically proposed by this invention is a TIFF-data file structure wherein modifications have been made in an otherwise conventional TIFF-file data structure regarding the page-order and/or page-orientation contents only of IFD data contained in that data structure. Associated image data, per se, is not altered. Such page-order and/or page-orientation modifications can readily enable rasterization-free, driverless implementation of multi-page-printing, with full access to a wide range of conventional print options, such as document page splitting, page-specific printing with respect to certain selected pages, face-down and face-up printing where desired, multi-copy per-page printing of selected pages from a file, collated multi-page printing, uncollated multi-page printing, and many others.
The IFD changes which are made to create the TIFF-data file structure of this invention relate only to page-order and/or page-orientation tag changes therein, which tag changes include, in general terms, (a) additions, (b) subtractions, and (c) internal modifications, as by the rewriting of pointers.
While there are various ways to generate the modified TIFF-data file structure of the invention, one very convenient way includes intercepting an otherwise conventional TIFF-data file upstream from a printer, and then appropriately changing just (i.e., solely only) the page-order tags and/or the page-orientation tags of IFD data present in that file, so as to implement, after such modification, and in a driverless manner, a selected print option, which “manner” differentiates from normal TIFF-file printing. Such a modified data file—a TIFF-file data structure—includes information that directs the operation of page printing in accordance with the selected print option.
These and other objects and advantages which are attained by the invention will become more fully apparent as the description that now follows is read in conjunction with the accompanying drawings.
DESCRIPTION OF THE DRAWINGS
Turning now to the drawings, as this description moves through each of the nine drawing figures herein, the elegance, simplicity, and versatility of the present invention should become very apparent with respect to its ability to accommodate rasterization-free, driverless, multi-option-selectability of print options with respect to the carrying out of multi-page TIFF-file print jobs. Each of these drawing figures, which is largely self-explanatory, illustrates one or more practices of the present invention. The entire collection of drawing figures, however, is not exhaustively illustrative of all possible print options which can be implemented in accordance with practice of this invention. How to invoke such other options in accordance with this invention will become apparent to those skilled in the art from the several specific illustrations presented herein. In each of
With this understood, and turning attention first of all to
With attention directed to
This illustration, as associated with the invention, addresses the issue of printing a multiple-page TIFF file to firmware (i.e. a structural arrangement) that nominally supports only a single-page TIFF file. To print multiple pages, a printing device typically constructs a separate print job on a per-page basis. This print job may be constructed by, for example, a document-creating application, some background process, a printer driver, a spooler, a print processor, or a print assistant that is inserted somewhere in the relevant print-data stream.
The invention approaches this task by not creating a separate physical spool file. Instead, TIFF data is directly written to the port manager for the specified printing device, or devices, and the data is modified in memory in an appropriate manner. In accordance with creation and use of the TIFF-file data structure of the invention, printing of multiple pages on what is otherwise a single-page TIFF reader is accomplished by modifying and altering simply the IFD page-order pointer which is directed to the first IFD in the file. The IFD describes the contents and locations of an image (i.e. a page); each page in the file has a separate IFD; and each IFD is sequentially linked to the next IFD in the file.
Referring to
In implementing this version of the present invention, the TIFF reader employed in the particular printing device or devices is (are) presumed to be capable of supporting multiple-page TIFF formats. In a case where the employed TIFF reader is one which supports only single-page TIFF formats, the process illustrated in
The printing of selected pages in a document-splitting practice, enabled by the data file structure of the invention is accomplished, as an illustration, by changing the value of the first IFD offset to the IFD offset of the first page in the corresponding page sequence which is to be printed, and by changing the value of the IFD offset of the last page in the corresponding page sequence. For example, on a ten-page document which is to be split into page sequences 1-5, inclusive, and 6-10, inclusive, the TIFF for the first sequence would be sent to a printer with the next IFD offset of the fifth page image changed to zero in memory to indicate the last page. The second sequence would be sent to the printer with the first IFD offset changed to the IFD offset of the sixth page image in memory to indicate the first page.
This just-described approach is pictured for the splitting of a five-page TIFF file document into two sequences, with one including pages 1-3, inclusive, and the second including pages 4 and 5.
An appropriate algorithm to accomplish this in accordance with the invention is set forth below in Table II
The printing of so-called page sequences is accomplished principally by manipulating one or more IFD offsets corresponding to the pages in the non-consecutive sequence. For example, this is accomplished by changing the value of the first IFD offset to the IFD of the first page in the non-consecutive page sequence, and by changing the next IFD offset of this page to the IFD offset of the next page in the non-consecutive sequence, and so forth. The next IFD offset of the last page in the non-consecutive page sequence is set to zero (null) to indicate the end of the sequence. For example, the non-consecutive page sequence 1-2, inclusive, and 4 out of a five-page document would be sent to the TIFF reader in the printing device with the IFD offset of the second page changed to the IFD offset of the fourth page, and the IFD offset of the fourth page changed to zero (null) to indicate the end of the non-consecutive selected sequence. Table III immediately below illustrates the algorithm appropriate for this behavior of what is shown in
Face-down printing is, of course, a normal order print sequence for handling by a conventional TIFF file. Here, little if any IFD manipulation is required unless there is, in addition, some further print option to be implemented which, while generally calling for a normal order arrangement of printing, nevertheless introduces some additional requirement that invokes the need to change IFD data in some fashion. Face-up printing, however, requires a specifically related change in IFD data content.
To accomplish face-up, reverse-order printing according to the invention, all of the IFD offsets normally presented in the standard TIFF-file data format are reversed, in order to assure that images are printed in a manner which will result in face-up collation. In reverse-order, face-up printing, the numeric last page in the file is printed first, the next to last numbered page is printed second, the third from last page is printed third, etc. A completed job results in the presentation to the user of a printed document which reads, from top to bottom, first-to-last page.
Printing a face-up collated page sequence in accordance with the invention, thus, is accomplished by changing, in the TIFF-file data structure, the value of the first IFD offset to the last page, the next IFD offset of the first page to zero (null), and all of the remaining next IFD offsets to the IFD offset of the prior page. For example, in a four-page document, the first IFD offset is set to the fourth page, the next IFD offset of the fourth page is set to the third page, the next offset of the third page is set to the second page, the next IFD offset of the second page is set to the first page, and the IFD offset of the first page is set to zero (null) to indicate the last page of the job.
Table IV immediately below presents an algorithm for accomplishing this performance.
Performance of the special TIFF-file data structure of the invention in accordance with this kind of print option works without repetitively sending image data per copy for printing, but instead by repetitively sending IFDs (which are relatively small data files, or sub-files), to point back to the original first image, so that the associated TIFF reader simply repeats reading and printing of the same page for each copy. One should note that image data offsets in the IFD entries according to this practice of the invention progress from the beginning of the file, and thus the IFD data does not need to be otherwise modified. For example, in a three-copy single-page print request, the first IFD would be parsed from the TIFF file, and appended to the end of the TIFF data once for each copy other than one that is called for in the specific print job. The original IFD represents the first copy. The next IFD offset of the first IFD is changed to point to the IFD offset of the first copy, thus yielding a second duplicate copy, and the next IFD offset of the first copy is set to the IFD offset of the second IFD copy, thus producing the third duplicate copy. The next IFD offset of the second IFD copy would be set to zero (null), thus to indicate the last called-for duplicate copy.
Table V immediately below presents an appropriate algorithm for this activity.
Directing attention now to
Printing multiple uncollated copies selected from a multiple-page TIFF file is accomplished by appending a copy of each page's IFD to the end of the TIFF for each copy requested which is greater than one in number, by changing the value of the first IFD next IFD offset from zero (null), to the offset of the first page's first IFD copy, and by changing the next IFD offset of each IFD copy to the next appended IFD copy, until the last IFD copy is reached, where the next IFD offset is set to zero (null), to indicate the last copy of the last called-for page.
For example, in a two page, two-copy print job, the IFDs for pages one and two are parsed from the TIFF file. The copy of the first IFD is appended to the end of the TIFF data, once per called-for copy greater than one in number. The next IFD offset of the first IFD is changed to point to the IFD offset of the first IFD copy (thus creating the second duplicate page copy), and the next IFD offset of the first IFD copy is set to the IFD of the second page. The copy of the second-page IFD is appended to the end of the TIFF data, once per called-for copy greater than one in number. The IFD offset of the second IFD is changed to point to the IFD offset of the second IFD copy (i.e. the second page copy) and the next IFD offset of the second IFD copy is set to zero (null), to indicate the last copy of the last page in the job.
Table VI below presents an appropriate algorithm.
Addressing now what is shown in
Printing of such multiple collated copies of a multi-page TIFF file is accomplished by appending a copy of each page's IFD to the end of the TIFF file in sequential page order for each copy greater than one in number which is called for, by changing the value of the last page's next IFD offset from zero (null) to the offset of the first page's first IFD copy, and by changing the next IFD offset of each IFD copy to the next appended IFD copy until the last IFD copy is reached, where the next IFD offset is set to zero, or null, to indicate the last copy in the job.
For example, in a specific print job calling for two copies of two pages, the IFD for pages one and two would be parsed from the TIFF file. Copies of the first and second IFDs would be appended the end of the TIFF data in sequential page order once per copy in number greater than one. The next IFD offset of the last page's IFD would be changed to point to the IFD offset of the first IFD copy (thus yielding the first page of the second copy), and the next IFD offset of the first IFD copy would be set to the IFD of the second page IFD copy. The next IFD offset of the second page IFD copy would be set to zero (null), thus to indicate the end of the last copy.
Table VII below sets forth an appropriate algorithm for this behavior.
Printing in landscape mode, which is not the normal default mode, is accomplished by rotating the image 90-degrees to the left, by setting the IFD directory entry for orientation to 8. 8=0th row represents the visual left-hand side of the image, and the 0th column represent the visual bottom of the image. Such printing in landscape mode is accomplished by parsing the IFD directory entries for the orientation entry, and by changing the entry, per page where required, to the value of 8.
Table VIII below describes and sets forth an algorithm for performing in this manner according to the invention.
It will thus be apparent that the present invention proposes a unique and very elegant and sophisticated approach toward utilizing the page-order, and/or page-orientation, data content by specially re-structuring an otherwise conventional TIFF multi-page data file to accomplish driverless, rasterization-free, direct TIFF printing under circumstances allowing free selection and implementation of a very wide range of popular print options. IFD data which becomes modified by practice of the present is limited to page-order, and/or page-orientation, tag data.
While a number of file structure embodiments, and manners of practicing the present invention, have been fully described and illustrated herein, it is appreciated that variations and modifications may be made without departing from the spirit of the invention.
Claims
1. A TIFF-file data structure for use by a printer to print a plural-page print job relating to serially-paginated pages, in the context of implementation by the printer of a driverless, page-image-data-independent printing method, where the data structure exists in the form of an otherwise conventional TIFF-file data structure which has been modified by the selective alteration therein of solely at least one of (a) the order, and (b) the orientation, of page printing from a multi-page TIFF file, said data structure comprising
- plural, page-specific page-data units, one for each page in the job, and
- for each said page-data unit, an associated path pointer which, during printing, defines the relative order of specific page-data-unit printing, said path pointers collectively being internally data-constructed to direct a printing operation in a manner whereby not all successively page-numbered page-data units are printed successively in regular serial order.
2. The data structure of claim 1, wherein the paths associated with said pointers are constructed to effect multi-page, page-specific printing of page-data units represented in the data structure in a printing-system configuration which normally supports only a single-page TIFF file.
3. The data structure of claim 1, wherein the paths associated with said pointers are constructed to effect page splitting relative to the page-specific page-data units.
4. The data structure of claim 1, wherein the paths associated with said pointers are constructed to effect selective page-specific printing relative to the plural, page-specific page-data units present in the data structure.
5. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable face-down printing of the plural, page-specific page-data units present in the data structure.
6. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable face-up printing of the plural, page-specific page-data units present in the data structure.
7. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable selective, per-page-data-unit, multi-copy printing from the data structure.
8. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable selective, uncollated, multi-copy, per-page-data-unit printing from the data structure.
9. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable selective, collated, multi-copy, per-page-data-unit printing from the data structure.
10. The data structure of claim 1, wherein the paths associated with said pointers are constructed to enable selective portrait or landscape printing of the page-data units in the data structure.
Type: Application
Filed: Apr 2, 2007
Publication Date: Aug 9, 2007
Applicant:
Inventor: Andrew Ferlitsch (Tigard, OR)
Application Number: 11/732,024
International Classification: G06F 3/12 (20060101);