Printing on custom-sized paper
The system automates printing on custom-sized paper and contact information sharing, addressing user barriers and privacy concerns by programmatically adjusting printer settings and utilizing contact application features, enabling efficient and secure printing and sharing processes.
Patent Information
- Application Number
- PCT/US2024/020127
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-15
- Filing Date
- 2024-03-15
- Publication Date
- 2024-09-19
AI Technical Summary
Existing solutions for printing on custom-sized paper face challenges such as limited printer settings, manual adjustments for design resizing, and difficulties in sharing contact information across various devices and applications, leading to user barriers and potential privacy concerns.
The system enables automated printing on custom-sized paper by programmatically adjusting printer settings and resizing designs to fit any paper size, while allowing for bulk contact information sharing through contact application features, ensuring privacy and application independence.
This solution provides a seamless, automated, and privacy-preserving method for printing on custom-sized paper using any printer and sharing contact information across various devices, reducing user intervention and addressing previous barriers.
Smart Images

Figure US2024020127_19092024_PF_FP_ABST
Abstract
Description
PRINTING ON CUSTOM-SIZED PAPERCROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit under 35 U.S.C. §119 of U.S. Provisional Patent Application No. 63 / 490,362 filed on March 15, 2023, which is hereby incorporated by reference herein in its entirety.BACKGROUND
[0002] Despite the fact that billions of envelopes are addressed each year and that consumer, custom-sized paper printing products comprise a multi-million dollar industry, existing solutions for addressing envelopes and printing on other custom-sized paper products such as card stock, etc., suffer from several drawbacks.SUMMARY
[0003] First, online custom-sized paper printing applications typically output an electronic document (e.g., Portable Document Format or PDF. web page, etc.) whose dimensions (e.g., page width and height encoded within the electronic document) match the custom paper dimensions. Since many printers do not have a wide variety of paper size options from which to choose, users must enter custom paper dimensions for their printers themselves. Print interfaces (e.g.. print dialog boxes) provided by web browsers generally do not provide users with the ability to specify custom page dimensions. Also, browsers do not currently allow web developers to programmatically adjust printer settings. Instead, users must locate an appropriate printer-specific interface and attempt to enter in their custom dimensions. Depending on printer restrictions / capabilities, this may be impossible. Even if possible, accessing and using a printer-specific interface may be challenging for many users and thus presents a significant barrier to printing onto custom-sized paper. Even for applications capable of programmatically setting custom printer-page dimensions (e.g., applications that run outside of a browser), printer margins often behave in unexpected ways, requiring cumbersome, time-consuming, manual adjustments to print content accurately in the desired position. Some applications instruct users to print custom-sized prints on standard-sized paper (e.g., "letter" or A4 sized-paper) and then cut their printout out of the standard-sized paper. While this method does bypass thelimitations of entering a custom size, it requires the users to perform a manual cutting step which also creates an undesirable barrier to use.
[0004] Second, online printing applications often require users to print on a predetermined template paper size that is not user adjustable. This restriction presents a user barrier since users may wish to print on paper sizes other than the size predetermined by the template. Those products which do allow users to resize content (e.g., designs provided by the product or user-uploaded content) to different paper sizes (either manually or automatically) ty pically require manual adjustments after resizing to preserve design and layout integrity. These manual adjustments also create a user barrier since users may not have the skill or the time to re-size design elements to preserve the “look and feel” of the design as displayed on the initial, pre-defined paper or page size.
[0005] Third, many existing addressing services do not enable users to upload their addresses in bulk directly from a contact application on a mobile device. Those that do offer this capability target specific contact applications, such as APPLE contacts, using an API offered by the contact application vendor. Not only does this method exclude users whose contact applications are not supported, but it also poses potential privacy concerns, since contact application APIs often grant permission to access all of a user's contacts, even if the user wants to share only a subset of those contacts with the addressing service. Existing solutions fail to provide the capability to share a desired subset of contact addresses from virtually any contact application on virtually any device without resorting to application-specific APIs.
[0006] Described herein are systems and processes for automated printing on customsized paper utilizing different electronic document dimensions from the printed customsized paper dimensions. Also described herein are systems and processes for automated resizing of designs (e.g., designs provided by the application), including user-added information, to fit virtually any size of custom paper while preserving the design’s integrity7without requiring any manual intervention. Also described herein are systems and processes to facilitate the sharing contact information with an addressing application (e.g., a web-based application or service) by utilizing the contact sharing feature available in many contact applications. The various systems and processes described herein can be practiced together or separately.
[0007] Disclosed embodiments provide a privacy -preserving, application-independent method for sharing contact information with an online service as well as an accurate, automated solution for printing documents and other content on custom-sized paper (including but not limited to envelopes) using virtually any printer and any print interface, including but not limited to print interfaces from browsers, desktop applications, mobile applications, and applications on other devices. They also provide an automated method for resizing designs and user-customized content to fit any given paper size while maintaining design integrity.
[0008] The systems and processes described herein for sharing contact information using the contact sharing feature available in many contact applications, for content resizing and printing on custom-sized paper, utilizing different electronic document dimensions from the custom-sized paper dimensions, and document calibration represent improvements over the state of the art.
[0009] While embodiments of the present disclosure are described with reference to particular types of paper and particular custom paper sizes (e.g., A7 envelopes), disclosed systems and techniques can be applied to generally any paper type and size.
[0010] It should be appreciated that individual elements of different embodiments described herein may be combined to form other embodiments not specifically set forth above. Various elements, which are described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination. It should also be appreciated that other embodiments not specifically described herein are also within the scope of the following claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The manner of making and using the disclosed subject matter may be appreciated by reference to the detailed description in connection with the drawings, in which like reference numerals identify like elements.
[0012] Fig. 1 is a diagram showing a system and method for printing on custom-sized paper, according to some embodiments.
[0013] Fig. 2 is a flow diagram illustrating a printer setup process for printing on custom-sized paper, according to some embodiments.
[0014] Fig. 2A is a flow diagram showing a process for determining paper loading orientation that may be performed as part of the printer setup process of Fig. 2, according to some embodiments.
[0015] Fig. 3 shows an example of a first orientation document that can be used within the process of Fig. 2A.
[0016] Fig. 3 A shows an example of a second orientation document that can be used within the process of Fig. 2A.
[0017] Fig. 4 shows an example of a cut-out orientation page being inserted into a printer.
[0018] Fig. 5 illustrates how printed orientation documents can be used to determine proper loading orientation of custom paper within a printer.
[0019] Fig. 6 shows an example of a user interface (UI) for determining proper loading orientation of custom paper within a printer.
[0020] Figs. 7 and 7A are flow diagrams showing processes for generating an electronic document suitable for printing on custom-sized paper, according to some embodiments.
[0021] Fig. 8 illustrates how attributes of a text box element can be extracted from a design.
[0022] Figs. 9A-C illustrate static and dynamic elements of a design.
[0023] Fig. 10 shows a method for fitting an image within custom paper dimensions while maintaining image aspect ratio.
[0024] Figs. 1 1 A and 1 IB illustrate two types of document element positioning.
[0025] Fig. 12 illustrates a technique for converting from absolute dimensions to relative dimensions in percentages.
[0026] Figs. 13A and 13B illustrate a technique for fitting text into a dynamic design element.
[0027] Figs. 14 and 15 illustrate another technique for fitting text into a dynamic design element.
[0028] Fig. 16 illustrates how font size can be adjusted using a correction factor to preserve consistency across web browsers, operating systems, fonts, etc.
[0029] Fig. 17 illustrates consistent resizing across groups of dynamic elements with the same font, size, style, etc.
[0030] Figs. 18A-D illustrate a technique for positioning text based on the locations of text ascenders and descenders.
[0031] Fig. 19 illustrates electronic document elements fitted to an envelope (flap open) and with the content rotated to match the orientation of the custom paper.
[0032] Fig. 20 illustrates how the electronic document elements of Fig. 19 can be repositioned relative to a letter-size paper by adding horizontal and vertical offsets.
[0033] Fig. 21 shows an envelope being inserted into a printer.
[0034] Fig. 22 shows the electronic document of Fig. 20 after being printed on the envelope of Fig. 21.
[0035] Fig. 23 is a flow diagram showing a calibration process for printing on customsized paper, according to some embodiments.
[0036] Fig. 24 shows an example of an electronic calibration document with standard, letter-sized dimensions.
[0037] Fig. 25 shows the electronic calibration document of Fig. 24 printed on custom paper.
[0038] Fig. 26 shows an illustrative user interface (UI) that can be used with a calibration process for printing on custom-sized paper.
[0039] Fig. 27 illustrates how an electronic document can be adjusted based on a calibration process.
[0040] Fig. 28 shows the adjusted electronic document of Fig. 27 printed on custom paper.
[0041] Figs. 29A-C illustrate another calibration process for printing on custom-sized paper, according to some embodiments.
[0042] Fig. 30 is a diagram showing a system and method for bulk importing user contacts into a database, according to some embodiments.
[0043] Fig. 31 is a block diagram of a computing device on which methods and processes disclosed herein can be implemented, according to some embodiments of the disclosure.
[0044] The draw ings are not necessarily to scale, or inclusive of all elements of a system, emphasis instead generally being placed upon illustrating the concepts, structures, and techniques sought to be protected herein.DETAILED DESCRIPTION
[0045] As used herein, the terms '‘standard-sized paper” and '‘standard paper” refer to paper having a size that has a recognized standard size and that is widely supported size such as “letter,” “legal,” A4, etc. The terms “custom-sized paper” and “custom paper” refer to paper having arbitrary dimensions, including standard paper dimensions (e.g., A4 or A7) and non-standard dimensions. In some embodiments, a user can specify custom paper dimensions for printing.
[0046] Fig. 1 shows a system and method for printing on custom-sized paper, according to some embodiments. The system and method enable users to upload content to be printed on custom paper sizes (including but not limited to addressing and / or printing on envelopes) and then print that content using virtually any printer connected to any electronic device.
[0047] Illustrative system 100 includes a server device (or '‘server”) 102 and a client device (or “client”) 104 connected via one or more computer netw orks. While Fig. 1shows a single client 104 connected to single server 102, the general concepts described herein can be implemented on an arbitrary number of server devices each configured to service an arbitrary number of client devices.
[0048] Server 102 may correspond to, for example, one or more virtual machines (VMs) running with a cloud computing environment, or a physical / virtual machine hosted in a datacenter. Server 102 can include, among other components, one or more processors and memory configured to store computer program code that when executed on the processor(s) causes the processor to execute processing described herein.
[0049] Server 102 can provide an application programming interface (API) 106 that client 104 can use to invoke specific application functions provided by server 102. In some embodiments, server 102 may provide a web application for printing on custom-sized paper. In such embodiments, API 106 may include a web server configured to receive Hypertext Transfer Protocol (HTTP) requests from client 104 (e.g., GET, POST, and PUT requests) and to send HTTP responses to client 104, e.g., responses encoding HyperText Markup Language (HTML) documents and / or encoding various forms of data, such as JSON. PNG, PDF, etc. Also in such embodiments, client 104 may be configured to execute an HTTP client, such as a web browser.
[0050] In some embodiments, server 102 may be configured to receive print content (e.g., addresses) via email and / or text messages (e.g., SMS or MMS messages) such as described below in the context of Fig. 30. In some cases, the ability to receive and process email / text messages may be provided by one or more third-party services that server 102 interacts with, e.g., using APIs provided by those third-party services. In some cases, server 102 may be configured to directly receive email messages and / or text messages. For example, API 106 can implement Simple Mail Transfer Protocol (SMTP) for receiving email messages.
[0051] As shown in Fig. 1, server 102 can include or otherwise have access to a database 103 for storing and retrieving information used by various methods described herein. For example, database 103 may be configured to store information about users, addresses, printers, and / or print jobs. As another example, database 103 may store a set of designs (or “templates”) that users can select from when printing on custom-sized paper.
[0052] In some embodiments, a design can be stored as a collection of dynamic design elements, such as return address name to be printed on an envelope flap, return address street for the envelope flap, return address city / stat e / zip for the envelope flap, a return address name to be printed on a front of the envelope, return address street for the envelope front, return address city / state / zip for the envelope front, to address name for the envelope front, to address street for the envelope front, to address city / state / zip for the envelope front, image for the envelope front, image for the envelope flap, etc. For a particular design element, database 103 can store various attributes, such as element type (e.g., return address name vs. to address name), font family, font group (indicating which elements are grouped together and thus should have the same font size in a final printed design), font alignment, letter spacing, text transform (if any), z index, color, another element the element is to be positioned relative to (e.g., another text element or image, referred to as an “anchor element,” or to the envelope itself), and an identifier of the design that the element is associated with. Also stored for a design can be element positions, element position types (e.g., left, right, top, bottom), element position values (e.g., a percentage of the envelope / anchor size), units associated with the element position values (e g., percentage vs. pixels), and attributes specifying the type of relative positioning of different elements (e.g., whether an element should be positioned relative to the left or right edge of the envelope or an anchor element). It will be appreciated that some of these attributes may correspond to CSS properties or may be related to CSS properties. In some cases, such design elements and positioned can be programmatically extracted from CSS / HTML.
[0053] In other embodiments, a given design may be stored as an HTML document that includes one or more elements (e.g., images, text boxes, etc.) as well as CSS (Cascading Style Sheet) rules for specifying the presentation and styling of those elements.
[0054] Database 103 can be provided as, for example, a relational database, an object- oriented database, a key-value store, a column-oriented database, a file system, or any combination thereof. In some cases, database 103 may correspond to a cloud storage service.
[0055] Client 104 may correspond to a desktop computer, laptop computer, smartphone, electronic tablet, or other computing device accessible by a user. In somecases, client 104 can be configured to print to a printer 108, e.g., over a computer network or via a USB cable. Printer 108 may be, for example, a conventional consumer-level laser or inkjet printer. Printer 108 can have a loading mechanism (e.g., an opening through which paper can be loaded into the printer) with a width equal to that of standard-sized paper (e.g., letter or A4). A printer loading mechanism is sometimes referred to as a ‘‘feed.” For convenience, printer 108 may be referred to herein to as a “user printer.” Embodiments of the present disclosure enable printing on user printers as well as generating electronic documents that can be taken to a third-party print shop / service for printing.
[0056] In some embodiments, server 102 may require or allow users to register (or “sign up”) prior to printing on custom paper or utilizing other features offered by server 102. For example, server 102 may provide a UI whereby a user can create an account (i.e., register) by entering at least an email address and a password. The combination of email address and password can subsequently be used to authenticate the user account (i.e., allow the user to “log in” to their account and access features of server 102). The email address may also be used to send reminders and / or other notifications to the user. The UI may also allow the user to enter additional information such as their name and one or more return addresses to be used when printing on custom-sized paper.
[0057] In the illustrative embodiment of Fig. 1, server 102 can execute a process comprising one or more of the following steps.
[0058] At step 110. the server 102 can receive print content and parameters from client 104. The content and parameters may be associated with a print job (or “project”). The print content and parameters can be received from client 104 via one or more requests (e.g., HTTP requests). The print content can include text, images, or other content to be printed onto custom paper. In the case of envelope printing, the print content can include a return address (or “from address”) and one or more recipient addresses (or “to addresses”). Server 102 may present a UI that displays a list of return addresses associated with the user’s account, along with controls for selecting a particular return address to use for the print job. The UI may also allow the user to enter a new return address, which can be saved in database 103 in associate with the user’s account. Server 102 may also present aUI that allows a user to enter one or more recipient addresses, or select / search from among recipient addresses stored in association with the user’s account.
[0059] In some embodiments, server 102 may provide a mechanism by which a client 104 can import recipient addresses in bulk directly from a contact application (e.g., via email or text messages), such as described below in the context of Fig. 30. In some embodiments, server 102 may provide a UI to enable client 104 to upload a spreadsheet (e.g., CSV, XLS, etc.) of recipient address. In some embodiments, server 102 may provide a UI to enable the user to paste multiple recipient addresses into a text input (e.g., a text area element). Thus, server 102 may provide one or more means of uploading recipient address in bulk. As used herein, the term “address” can refer to a mailing address or any combination of name and mailing address elements (e.g. city, state, zip / postal code, etc.).
[0060] In some embodiments, database 103 may be configured to store contact groups, each contact group having a user-supplied group name, comprising one or more return addresses, and being associated with a particular user account. Database 103 can permit multiple contact groups to be associated with a single user account, thereby allowing a user to organize their contacts into different groups and import different groups of contacts from different contact applications.
[0061] The print parameters can include various parameters used to determine how and when the uploaded print content is printed. For example, print parameters can include the dimensions (e g., width and height) of custom paper onto which the content is to be printed. In some embodiments, server 102 can present a UI for selecting custom paper dimensions from a predetermined set of dimensions using a dropdown list, menu, table, or other UI element. The UI may also provide text inputs (e.g., width and height text inputs) for the user to enter paper dimensions not included in the predetermined set of dimensions. In general, a user can specify any paper dimensions, including standard or non-standard paper dimensions.
[0062] As another example, the print parameters can include information about a particular design the user wishes to print on the custom paper. As previously discussed, system 100 may store a set of designs that users can select from when printing on customsized paper. For example, server 102 may be configured to present a UI with a gallery, menu, list, etc. of available designs for the user to select among. The parameters of a printjob may identify a particular one of these designs (e.g.. by name, numerical identifier, path, etc.) selected for use with that print job. The server 102 can use the design, along with user-uploaded print content, to generate the electronic document to be printed on custom paper, as described in detail below.
[0063] While embodiments of the present disclosure are described in terms of server device (e.g.. server 102) performing certain processing (e.g.. generating an electronic document to be printed on custom paper) it should be understood that part, if not all, of the described processing may be executed on a client device (e.g., client 104) in response to content delivered by server 102. For example, server 102 may serve one or more HTML pages to client 104 that include (directly or by reference) JavaScript code (or other code executable on client device 104) configured to perform such processing. In other words, client 104 can execute some or all of the described processing at the direction of server 102.
[0064] As another example, the print parameters can indicate the type of paper (e.g., envelope vs. non-envelope) onto which the content is to be printed. In some cases, the type of paper may be determined automatically based on a selected design the user chooses to print.
[0065] As another example, the print parameters can indicate a location on the paper where a return address is to be printed. For example, in the case of an envelope, the user can choose to have the return address printed on the front of the envelope (e.g., in the top left comer) or on the back flap of the envelope, or not to have a return address printed on the envelope. In some embodiments, server 102 may notify the user that printing on the flap of an envelope using a laser printer may require multiple passes through the printing (once on each side of the envelope), as keeping the flap open during printing can result in damage to a laser printer and thus is not supported. Server 102 can provide a UI to select the location on the paper where a return address is to be printed and / or to provide said notice.
[0066] As another example, the print parameters can include a so-called “job type" parameter indicating whether the print job is to be executed immediately on a user printer (“print now”), at a later time on a user printer (“print later”), or prepared for a third-party print shop / service (“prepare for print shop”). The “print later” option can beused, for example, when a user uploads content (e.g.. addresses) from one device (e.g., a smartphone) and intends to print from another device (e.g., a laptop computer to which a printer is connected).
[0067] In some embodiments, server 102 may be configured to present a user interface (UI) that allows the user to choose a design, enter custom paper dimensions, choose the location on the custom paper where the return address is to print, and / or select the print job type. In some cases, the UI may be a web page.
[0068] At step 112, server 102 sends a response to client 104 based on the print job type. If the job type is “print later,” then server 102 can store the uploaded print content and parameters to database 103 along with a unique identifier for the print job (“job id”). In some cases, a job id may be a UUID (Universal Unique Identifier). If the user has an account, server 102 can associate the print job (“draft job”) with the user’s account. Server 102 can send client 104 a response that includes a link to access the print job on server 102, thus enabling the user to resume the draft job at a later time (e.g., on a different client device). In some cases, the link can be a URL that encodes the job id. In some cases, the job id can be encrypted within the link to prevent tampering and unauthorized access to print jobs. In some embodiments, when a user has one or more draft jobs associated with their account, server 102 may send reminders (e.g.. periodic reminders) to the user at their registered email address. The user may be required to authenticate themself with server 102 (e.g., using their email and password) before accessing / resuming a draft job. In some embodiments, server 102 may provide a UI whereby a user can access and resume their draft jobs. For example, the UI can show a list of draft jobs with links to resume particular jobs (the links may include thejob id, such as previously discussed). In any case, when a user resumes a draft job, server 102 can proceed with thejob as if it were a “print now” j ob, as described below.
[0069] If thejob type is “prepare for print shop,” server 102 can generate an electronic document (such as a PDF) having dimensions that match the paper dimensions specified for the print job. The process for generating a “prepare for print shop” document can be similar to that for generating a “print now” document (as described below), except that the electronic document is generated to have dimensions that match the custom paper dimensions (rather than standard paper dimensions). Server 102 can then make thegenerated print shop document available to client 104. For example, server 102 may encode the contents of the document in an HTTP response sent to client 104. As another example, server 102 may store the generated document to database 103 or other storage means and send client 104 a link to download the document therefrom. In any case, the user can send / take the electronic document to a print shop / server for printing on the custom-sized paper.
[0070] If the job type is “print now,” server 102 can proceed to step 114. Here, server 102 can automatically select an existing printer previously selected by the user. This preference can be stored, for example, in database 103. Alternatively or additionally, server 102 can prompt the user to select an existing printer associated with their account (e.g., a printer they previously setup) or to setup anew printer. For example, server 102 may present a UI that includes a list of printers the user previously set up (e.g., by displaying descriptive names of the printers) from which the user can select a printer. The UI may also include a button, link, or other type of control for setting up a new printer. Server 102 may store information about a user’s printer(s) along with their account such that the user only needs to perform the printer setup process once per printer. Server 102 may also associate the selected, or newly setup, printer with the user’s print job (e.g., by updating information about the job stored in database 103). Details of the printer setup process are provided below in the context of Fig. 2. Of note, the printer setup process is independent of the customer paper size used for a particular print job and, thus, does not need to be repeated for subsequent print jobs using different customer paper sizes.
[0071] At step 116, server 102 can generate an electronic document suitable for printing on the custom-sized paper. The selected design and provided print content can be resized and scaled to print correctly on the custom paper size.
[0072] In some cases, the electronic document can be generated to have standard paper dimensions (where the particular standard size can be determined based on the user’s geolocation, for example). Thus, the document dimensions do not necessarily match the paper size. In more detail, the document can be generated in such a manner that the content will correctly print onto custom-sized paper loaded into printer 108 (according to the instructions provided at step 114), while the standard paper size option is selected within a print interface of client 104 (e.g., a print dialog provided by a web browserrunning on client 104). For example, the electronic document can be correctly printed on an A7 envelope using the letter / A4 paper size option.
[0073] In some cases, the electronic document can be generated to have the custom paper dimensions. For example, in the case of “prepare for print shop’' or if the printer is not capable of centering (e.g.. if the printer loading mechanism has a single slider).
[0074] A detailed process for generating the electronic document for printing on user printer 108 is provided below in the context of Fig. 7. As previously discussed, the actual document generation process can be executed server-side, client-side at the direction of the server, or as a combination of server- and client-side processing.
[0075] Server 102 can then make the generated document available to client 104 for printing on user printer 108. For example, server 102 may encode the contents of the document in an HTTP response sent to client 104. As another example, server 102 may store the generated document to database 103 or other storage means and send client 104 a link to download the document therefrom. In some cases, server 102 may serve a web page to client 104 that includes JavaScript (or other code executable on client device 104) for automatically printing the generated document to user printer 108. For example, such JavaScript can programmatically open the browser’s print interface (e.g., print dialog). It is appreciated herein that many printing applications default to a standard paper size within their print interfaces. Thus, the electronic document can advantageously be printed on the custom-sized paper using the print interface’s default paper size option.
[0076] At step 118, given the information about print job received at step 110 (e.g., the custom paper size) and information about the printer determined at step 114, the illustrative process can provide instructions for properly loading the custom paper into the user’s printer.
[0077] For example, if the printer is determined to be an inkjet printer, instructions can be provided to insert an envelope face up with the flap open and pointing away from printer’s loading mechanism. This may be the most reliable printing direction and allows a return address to be printed on the flap without difficulty. Alternatively, if the printer is determined to be a laser printer, instructions can be provided to the user to insert an envelope face up with the flap closed and pointing toward the printer’s loadingmechanism. It is appreciated herein that printing with the flap open can damage laser printers due to the heat of the rollers interacting with the envelope’s adhesive.
[0078] In some embodiments, step 118 may provide instructions in the form of a video. In some cases, different videos may be provided depending on the printer loading mechanism (e.g., open slot vs. tray) determined at step 204.
[0079] As discussed further below with the printer setup process of Fig. 2, some printers have a means to center paper within the loading mechanism while others do not. The disclosed technique of generating and printing an electronic document having standard paper dimensions on custom-sized paper may rely on such centering capability. Thus, if the printer does not have centering capability, it may be necessary to generate the electronic document to have a width matching that of the custom paper (or height if the document is rotated). This can be done using the same general processes illustrated in Figs. 7 and 7A, but with the processing modified for the different electronic document dimensions. In this case, the document must be printed using the correct custom-paper size option. Step 118 can provide instructions for accessing a printer-specific interface on client 104 and choosing the correct custom-paper size option. In some embodiments, server 102 may store different step-by-step instructions for different makes / models of printers, prompt the user which make / model of printing they are using, and present appropriate step-by-step instructions in response thereto.
[0080] As another example, if the custom paper is wider than the printer’s standard paper size (e.g.. the maximum paper width that can be loaded into the printer’s), then instructions can be provided to rotate the custom paper 90° before loading it into the printer. This situation can arise, for example, when printing on wide envelopes, such as business-size (or “Number 10”) envelopes. In this case, the instructions can also indicate that the envelope should be inserted with the flap closed, regardless of whether the printer is a laser printer or an inkjet, to avoid potential feeding problems (e.g., the feeder grabbing the flap and causing a crooked print, having to ensure the printer sliders touch the exact tip of the point of the flap, etc.).
[0081] As another example, based on the results of a process for determining proper loading orientation for the user’s printer (such as described below in the context ofFig. 2A), instructions may be provided to flip the paper over, for example so that the back of an envelope is facing upwards when fed into the printer.
[0082] The paper loading instructions can be provided to the user in various forms. For example, a server device can generate a web page that includes text, images, and / or video explaining how to load the custom paper into the user printer.
[0083] As discussed herein, there are some situations where printing can be done on an envelope with the flap open and other situations where printing can be done on an envelope with the flap closed. For example, the flap may be closed when printing on a laser printer and / or when the envelope needs to be rotated to fit within the printer. If printing is done with the flap closed and the print job specifies that the return address is to be printed on the flap, then it may be necessary' to feed the envelope into the printer twice: once to print on the front of the envelope and again to print on the back of the envelope with the folded flap. In this situation, step 116 may be modified to generate both the front- and back-side electronic print documents and step 118 may be modified to provide instructions for both the front- and back-side printings.
[0084] At step 120, optional troubleshooting may be performed. For example, if the print job does not print properly on user printer 108, troubleshooting can include guiding the user through one or more calibration processes such as those described below in the context of Fig. 23 and Figs. 29A-C. Other troubleshooting that may be performed includes, for example, re-sizing the electronic document, suggesting print setting modifications to the user, and suggesting designs known to accommodate the widest range of printers.
[0085] In some embodiments, a calibration process can determine one or more calibration offsets (e.g.. a vertical and / or horizontal offset) needed to correct for misalignment between the print position encoded within the electronic document and the actual print position on the custom paper that results when the document is printed on the user’s printer 108. Such misalignment may result from various sources, such as the particular printing application used, the particular printer used, and / or the particular type and size of custom paper. Thus, the calibration offsets may, in general, be dependent upon to some combination of printing application, printer, and custom paper size. Calibration offsets determined at step 120 may be used to generate another, corrected electronicdocument at step 116, as indicated by a dashed line in Fig. 1. In addition, the calibration offsets can be stored in database 103 and applied to automatically correct subsequent print jobs associated with the same user, printing application, printer, and / or custom paper size. For example, if the user initiates another print job, then the process can determine the user’s printing application, the selected printer (step 114), and the custom paper dimensions (step 110), and can then query database 103 for calibration offsets associated with the combination of printing application, printer, and custom paper size (or a subcombination thereof). The user’s printing application can be determined, for example, based on a “User- Agent” header value in an HTTP request sent by client 104 to server 102.
[0086] In some embodiments, the print content received at step 110 may comprise a collection of N items (e.g., a list of N recipient addresses, in addition to a single return address), with different items to be printed on a different sheets / pieces of custom-sized paper (e.g., different envelopes). In such embodiments, server device 102 can be configured to generate an electronic document (e.g., at step 112 and / or step 116) that includes N pages, each page including the content of a corresponding list item. For example, if a user enters / selects ten (10) recipient addresses, server device 102 may generate a PDF having ten (10) pages. In this way, the user can, for example, address many different envelopes using a single electronic document provided by server device 102. If N is particularly large (e.g., larger than a predetermined threshold value), then server device 102 may generate M electronic documents each having N / M pages (where M can be a predetermined value, for example).
[0087] In some embodiments, sever 102 can provide a preview of the selected print job prior to, or after, the user selects an existing printer or sets up a new printer. The print preview can include generating an electronic document using a process similar to that described below in conjunction with Fig. 7. However, whereas the final electronic document generated for printing can include N pages (e.g., one page for each recipient), the preview document may include a single page (e.g., corresponding to a first recipient in the list of N recipients). The preview document can be displayed within the user’s browser, for example.
[0088] Fig. 2 shows an example of a printer setup process 200 for printing on customsized paper, according to some embodiments. Process 200 may be implemented and performed by a server device, such as server device 102 of Fig. 1. Process 200 provides a guided setup process enabling users to print on custom-sized paper, utilizing virtually any printer device.
[0089] At step 202. a type of a printer can be determined. For example, a determination can be made as to whether a user printer is an inkjet printer, a laser printer, or another type of printer. In some embodiments, the server can present a UI that allows the user to select the printer type.
[0090] At step 204, the printer’s loading (or ‘'feeding”) mechanism can be determined. For example, a determination can be made as to whether the printer has an open slot through which paper is to be inserted, or a tray into which paper is loaded. In some embodiments, the server may present a UI for the user to select the printer loading mechanism (e.g., open slot vs. tray).
[0091] At step 206, the printer’s centering capability can be determined. It is appreciated that some printers, particularly those having an open slot loading mechanism, may provide one or more sliders for positioning the paper within the loading mechanism. For example, some printers have two sliders that can be used to center paper within an open slot (e.g., sliders on both sides of the open slot), whereas other printers may have a single slider that can be used to left- or right-align paper within the open slot. The process in Fig. 7 for generating an electronic document having standard-sized paper dimensions suitable for printing on custom-sized paper illustrated may depend on the ability' to center paper within the printer’s loading mechanism. In some embodiments, the server may present a UI for the user to indicate whether the printer has sliders on both sides of the loading mechanism (e.g., the open slot).
[0092] At step 208, a standard paper size associated with the printer can be determined. The standard paper size can correspond to (e.g., be a proxy for) the maximum width of the printer’s loading mechanism (e.g.. open slot or tray width), and thus be used to determine when custom paper needs to be rotated 90° before loading it into the printer (e.g., as in the case of Number 10 envelopes which tend to be wider than printer slots / trays). The printer’s standard paper size can also be used to instruct the user as towhich paper size option to select in the printing application’s print interface. In some embodiments, the standard paper size may be hardcoded or preconfigured into the server device (e.g., as letter or A4). In some embodiments, the standard paper size may be specified as a parameter of the print job. In some embodiments, the standard paper size can be based on the user’s geolocation. For example, a determination can be made (e.g., using IP-based geolocation) as to whether the user is located in North America or in another region of the world. If the user is located in North America, “letter” can be determined as the standard paper size, otherwise A4 can be determined as the standard paper size.
[0093] At step 210, a loading orientation can optionally be determined using a process such as that described below in the context of Fig. 2A. It is appreciated herein that proper insertion orientation is critical to the success of certain print jobs, such as envelope addressing.
[0094] At step 212, information about the user printer determined in steps 202-210 can be stored to database 103. For example, database 103 may be configured to store the determined printer type (e.g., laser vs. inkjet), loading mechanism (e.g., tray vs. open slot), centering capability, the standard paper size, and / or loading orientation. In some embodiments, the server may present a UI to allow a user to enter a descriptive name for the printer, can store the descriptive name along with the other printer information in database 103.
[0095] Turning to Fig. 2A, for certain custom paper types, such as envelopes, paper orientation is critical and can be difficult to determine apart from trial-and-error. To address this, illustrative process 220 is provided by which a user can print an orientation mark (or “direction mark”) and determine how to insert the custom paper into a given printer. Illustrative process 220 allows correct orientation to be determined without using the custom paper itself, which can be particularly useful for cases in which the user has limited supply of the custom paper due to cost, availability, etc. Each step of process 220 can be carried out using one-sided printing, avoiding the added complexity' of two-sided printing.
[0096] At step 222, the server can generate a first orientation document (e.g., a PDF or other type of electronic document) having markings indicating cut lines and loadingdirection. Fig. 3 shows an example of a first orientation document 300 with cut line markings 302, 304 and loading direction marking 308 (e.g., an arrow). The first orientation document 300 can have standard-sized dimensions, such as “letter” or A4. The cut line markings 302, 304 indicate where printed document should be cut to produce paper having custom dimensions, such as the same dimensions as an A7 envelope, as represented by region 306 in Fig. 3.
[0097] Referring again to Fig. 2 A, at step 224, the server can provide the first orientation document 300 to the client for printing on standard-sized paper. The server can also provide instructions to the client for cutting the standard-sized paper along the marked cut lines 302, 304, to produce the cut-out orientation page 306 having desired dimensions and loading direction marking 308.
[0098] At step 226, the server can generate a second orientation document (e.g., a PDF or other type of electronic document) having an orientation mark and the desired dimensions (e.g., A7). Fig. 3 A shows an example of a second orientation document 320 with orientation mark 310, here shown as the letter “A” (however various other letters and symbols may be suitable for use as the orientation mark).
[0099] Referring again to Fig. 2 A, at step 228, the server can provide the second orientation document 320 to the client for printing on the orientation page 306. As shown in Fig. 4, the user can insert the orientation page 306 into the printer with the loading direction marking 308 facing up and pointing toward the printer. The printing of the second orientation document results in orientation mark 310 being printed onto the cut-out document, in addition to the previously printed loading direction marking 308, as shown in Fig. 5.
[0100] In some embodiments, and as shown in Fig. 5, a calibration pattern 312 may be printed simultaneously with the orientation mark 310. That is, the server can generate the calibration document to include both orientation mark 310 and calibration pattern 312, in some embodiments. Calibration pattern 312 can be used in a troubleshooting calibration process described below in the context of Fig. 23.
[0101] Referring again to Fig. 2A, at step 230, the combination of the orientation mark 310 and loading direction marking 308 can be used to determine proper loadingorientation of custom paper into the user's printer. Depending on the make, model, and / or configuration of the user’s printer, the orientation mark 310 may be printed onto either the front or back of the orientation page 306. Moreover, the orientation mark 310 may be oriented as shown in Fig. 3 A or rotated 180°. This means there are four different combinations of orientation mark 310 and loading direction marking 308. These combinations could correspond to different loading patterns for different printing scenarios (e.g., different paper types).
[0102] For example, in the case of an envelope, the following four combinations of direction marking 308 (“Arrow”) and orientation mark 310 (“A”) can determine the orientation and direction of loading the custom paper into the printer:Combination 1 : -> A: Arrow points toward the “A” from the left.Combination 2: AArrow" points tow ard the “A” from the right.Combination 3 : A: Arrow points away from the “A” to the right.Combination 4: <- A: Arrow points away from the “A” to the left.
[0103] If the direction marking 308 prints on the back of the orientation page, the user folds the paper so that direction marking 308 points toward the orientation mark, as shown in Fig. 5 (which corresponds to combination 2 from the example above).
[0104] As an example of applying the above combinations to printing on the front side of an envelope, combination 1 could correspond to loading the envelope flap side up with the flap to the left, combination 2 could correspond to loading the envelope flap side up with the flap to the right, and so on.
[0105] In some embodiments, the server may present a UI prompting the user which one of the above four combinations resulted from their printing on custom paper. Based on the user’s input, an electronic document generated by the process of Fig. 7 can be rotated and / or the user may be provided with instructions on proper loading. For example, if the orientation mark is rotated 180° from what is expected, then the electronic document (e.g., PDF) can be rotated by 180° to “undo” that rotation. As another example, if the orientation mark prints on the opposite side of the paper than expected, without 180° rotation, then the user can be instructed to flip the paper over when inserting into the printer.
[0106] Thus, the illustrative process 220 of Fig. 2A can be used to determine how to insert custom paper into a given printer without using the custom paper itself.
[0107] Alternatively, in the case that printing a mark on the custom paper itself is acceptable, an orientation mark can be printed directly onto the custom paper to determine orientation of the custom paper. For example, as shown in Fig. 6, the server may generate a document (e.g., a PDF or other type of electronic document) having the custom paper dimensions (e.g., A7) and an orientation mark 602. The server may provide the document to the client for printing on the custom paper, and then present a UI 600 prompting the user as to where the orientation mark 602 printed on the custom paper. In the example shown, UI 600 includes a first button 604 to indicate the symbol printed on the front of the custom paper (e.g., front of an envelope), a second button 606 to indicate the symbol printed on the back of the custom paper (e.g., back of the envelope), and a link 608 to indicate the symbol did not print on the custom paper.
[0108] If the direction mark prints on the wrong side of the envelope / custom paper, instructions can be provided to flip the envelope / custom paper over. If the print fails again, the more involved process 220 of Fig. 2A may be used.
[0109] Turning to Figs. 7 and 7A, to side-step printer paper dimension limitations previously discussed, process 700 can programmatically generate an electronic document (e.g., a PDF, HTML, or WORD document) whose content is scaled and positioned to print correctly on custom-sized paper (e.g., A7 envelopes) but whose electronic document dimensions match the dimensions of standard-sized paper (e.g., ‘'letter” or A4). This allows users to print on custom paper using the standard paper size option (e.g., default option) in the print interface of their document processer, web browser, or other printing application.
[0110] Fig. 7 shows an example of a process 700 for generating an electronic document suitable for printing on custom-sized paper, according to some embodiments. Process 700 may be implemented and performed by a server device, such as server device 102 of Fig. 1, by a client device, such as client device 104 of Fig. 1, or by a combination of server- and client-side processing.
[0111] Process 700 can operate on a print job having print content (e.g., one or more addresses) and print parameters (e.g.. the dimensions of custom paper onto which the content is to be printed, a design selected for the print job, etc.).
[0112] As previously discussed, the content associated with a given print job may comprise a collection of N items (e.g., a list of N addresses), with different items to be printed on a different sheets / pieces of custom-sized paper. In this case, process 700 maybe repeated, in full or in part, for each item of content to generate a single electronic document (e.g., PDF) with N pages. In some cases, process 700 can generate M electronic documents each having N / M pages. This approach can be used, for example, when the number (N) of recipient addresses is particularly large (e.g., larger than a predetermined threshold value).
[0113] At step 702, a collection of document elements can be generated for use in printing content (e.g.. a return address and a recipient address) on custom paper according to a selected design. Within the generated collection, a given document element can be specified in terms of its type (e.g., text box, image, etc.), its content (e.g., text, image source, etc.), and one or more attributes (e.g.. position, width, height, font size, font family, font style, font weight, color, margin, line height, etc.). A detailed process for generating the collection of document elements and programmatically determining element attributes is described below in conjunction with Fig. 7A.
[0114] Within a design, a given document element can be positioned in various ways, such as being positioned relative to another element or positioned relative to the page. For example, using CSS, a document element can have a “position” property that determines the type of positioning (e.g., “static,” “absolute,” “relative,” and “fixed”) as well as one or more properties specifying position offset (e.g., “top” and “left”). For brevity, herein a document element’s “position” refers to the set of attributes that determine an element’s position and does not necessarily refer only to that element’s CSS “position” property.
[0115] At step 704, an electronic document (e.g., PDF) can be generated having standard paper dimensions (e.g., letter or A4) and, thus, the document’s default orientation may be in portrait mode. The standard paper dimensions can be determined based on which printer is selected for the print job (e.g., from the information determined at step208 of Fig. 2). In some cases, step 704 can include generating a blank document using a document generator such as jsPDF. ReportLab. PyPDF2, pdfkit, etc.
[0116] If the custom paper is wider than the standard paper dimensions, then the electronic document may be generated to have a default orientation of landscape. For example, a business-size envelope (or ‘"Number 10” envelope) is 9.5 inches wide and standard letter-sized paper is 8.5 inches wide. In this case, the document can be generated to have landscape orientation. After the various design elements are added to the document, the document can then be rotated into portrait mode, as discussed below. It is appreciated herein that different printers and / or printing applications (e.g.. browsers) may be inconsistent in how they handle landscape-mode documents, but consistent in how they handle portrait-mode documents. Thus, the illustrative method can facilitate printing by producing a final electronic document having portrait orientation, regardless of the custom paper size.
[0117] At step 706, each of the generated document elements (from step 702) is added (or “embedded”) into the electronic document. For example, step 706 can include programmatically setting the initial position of each document element relative to the custom paper size, then rotating the content to match the orientation of the custom paper, as illustrated by document 1900 in Fig. 19 for an A7 envelope with the flap open. It will be appreciated from Fig. 19 that the custom paper dimensions used for generating the electronic document can factor in the size of an envelope flap if it is determined that printing can safely be done with the flap open (e.g., in the case of an inkjet printer). Step 706 can also include programmatically modifying the position of each element relative to the standard electronic document size by adding horizontal and vertical offsets, such as illustrated by document 2000 in Fig. 20.
[0118] Referring again to Fig. 7, at step 708, the orientation of the electronic document can optionally be changed. For example, if the document was generated to have landscape orientation at step 704, then step 708 can rotate the document to portrait mode to facilitate printing.
[0119] As previously discussed, a calibration process can be used to correct for misalignment between the print position in the electronic document and the actual print position on the custom paper. The output of the calibration process can be one or morecalibration offsets (e.g., horizontal and / or vertical offset). Such calibration offsets can be provided as input to process 700 and. if so, may be used to adjust the position of the custom paper page within the generated electronic document (e.g., by shifting the custom page up, down, left, or right within the electronic document).
[0120] Fig. 7A shows a process 720 for generating the collection of document elements for printing content on custom paper according to a selected design. Process 720 may be implemented and performed by a server device, such as server device 102 of Fig. 1, and / or by a client device, such as client device 104 of Fig. 1. Process 720 may be implemented and performed by a server device, such as server device 102 of Fig. 1, by a client device, such as client device 104 of Fig. 1. or by a combination of server- and client- side processing.
[0121] The general concepts and techniques described below for process 720 can be used to generate a collection of document elements suitable for embedding within printed document pages as well as for various types of electronic medium (e.g., graphics, text, etc.).
[0122] At step 722, positions and dimensions of elements defined within the print job’s design can be determined. Position may be represented, for example, by a distance / offset from the left edge of the page (“left”) and by a distance / offset from the top of the page (“top”). Dimensions can be represented, for example, by width and height. In some cases, the elements and properties of a design can be retrieved from a database (e.g., database 103 of Fig. 1).
[0123] Fig. 8 shows an example of a design 800 having an element 804 (text box) and associated properties 806. While this example shows the properties 806 expressed as CSS, design element properties can be stored in the database as separate values, such as described above with Fig. 1.
[0124] Referring again to Fig. 7A, each document element identified at step 722 can be classified as either a static element or a dynamic element. Static elements are elements whose content remains constant across printed document pages or, in the case of an electronic medium, remains constant as one scrolls or otherwise alters the visual elements displayed on the electronic medium. Examples of static elements include images andfigures. Dy namic elements are elements whose content can change across printed document pages or, in the case of an electronic medium, can change as one scrolls or otherwise alters the visual elements displayed on the electronic medium. Examples of dynamic elements include text boxes. For envelope designs, the elements corresponding to the return address and recipient address may be treated as dynamic elements. For cards and invitation-type designs, the elements corresponding to recipient name can be treated as dynamic. Other design elements may be treated as static.
[0125] Figs. 9A-C illustrate a design having static and dynamic elements. Fig. 9A shows static elements 900 and 902 that remain constant across pages. Fig. 9B shows a dynamic element 904 that can change across pages. Fig. 9C shows an example preview of multiple pages having the same static content and different dynamic content 906. The process of Fig. 7A distinguishes between static and dynamic elements for layout purposes, and populates dynamic elements with user-defined print content (e.g., addresses).
[0126] Referring again to Fig. 7A, at step 724, the static elements identified at step 722 can be resized and positioned with respect to the custom paper dimensions and boundaries. In some embodiments, all static elements may be combined into a single image. This can be done offline for a given design and the resulting combined static image can be cached / stored at the server. Alternatively, the combined static image can be generated on-demand (e.g., per print job) using a server-side or client-side imaging library. For example, referring to the example of Fig. 9, static elements 900 and 902 (but not dynamic element 904) may be combined (or “flattened”) into a single image. The combined static image will have a fixed aspect ratio determined by the design. The combined static image can then be resized to fit the custom paper dimensions (or the dimensions of a designated area on an electronic medium or physical page) while preserving the fixed aspect ratio, such as illustrated in Fig. 10. The resized image can then be positioned relative to the custom paper boundaries (or the boundaries of a specified area on an electronic preview medium or physical page). For example, the resized combined static image can be vertically and / or horizontally centered relative to the custom paper boundaries.
[0127] As previously discussed, within a design, a given document element can be positioned relative to another element or positioned relative to the page. Fig. 11 A showsan example of a text box 1100 (dynamic element) positioned relative to the edges of an image 1102 (static element). Fig. 1 IB shows an example of a text box 1110 positioned relative to the edges of a page 1112. In the example of envelope addressing, text box 1100 of Fig. 11 A may correspond to the recipient address (or “main address”) and text box 1110 of Fig. 11B may correspond to the return address. As discussed above in the context of Fig. 1. such element positioning information can be stored on a per-design element basis in database 103. For example, a design can designate that front return address elements will be placed relative to an edge of the custom paper. As another, a design can designate that a recipient address element is placed relative to one or more static elements of the design (e.g., an image). If there are no static elements (as is the case in an address-only envelope design), then all design elements can be positioned relative to the custom paper.
[0128] Referring again to Fig. 7A, at step 726, the dynamic elements identified at step 722 whose placement is calculated or otherwise determined relative to static elements can be positioned relative to the combined static image (from step 724). For example, within database 103, the combined static image can be specified as an anchor for one or more of the dynamic elements. For these elements, step 726 can compute the top, left, height, and w idth of the dynamic elements relative to the w idth and height of the combined static image, with the top and left positions of the dynamic elements being relative to the combined static image. Advantageously, with this approach, process 720 does not need to keep track of where particular static elements are in the combined image, as all positions can be determined relative to the combined static image.
[0129] At step 728, the dynamic elements identified at step 722 whose placement is determined relative to the edges of the custom paper itself (or by the edges of a designated area on an electronic preview' medium or physical page) are positioned. The position of such elements can be calculated relative to the width and height of the custom paper. For example, a design can specify the left position of an element to be 5% of the width of the custom paper, the top position of an element to be 5% of the height of the custom paper, etc. Elements can be positioned relative to the left, center, or right of the custom paper, according to some embodiments.
[0130] At step 730. the dynamic elements identified at step 722 can be converted to have relative dimensions based on custom paper dimensions (or of the dimensions of adesignated area on an electronic preview medium or physical page). Within a design, various elements including dynamic elements may be specified using absolute dimensions (e.g., pixels). To provide automatic scaling to any custom paper size or screen area, step 730 converts dynamic elements from absolute dimensions (e.g., pixels) to relative dimensions (e.g., percentages). For example, as shown in Fig. 12, the relative width of a text box can be calculated by dividing the text box's absolute width by the paper / page width. Relative height can be similarly calculated.
[0131] Referring again to Fig. 7A, at step 732, the dynamic design elements within the electronic document can be populated based on the print job’s content (e.g., address information provided by the user). Because the dynamic element dimensions have already been set (in step 730), the print content is resized to fit within these elements. In the case of dynamic text elements, the following sub-steps may be performed.
[0132] In a first sub-step of step 732. the font size of the dynamic element can be set to a maximum font size that satisfies the following conditions: (1) the width of the text does not exceed the width of the containing element (i.e., the already-sized dynamic design element); and (2) the height of the text does not exceed the height of the containing element. In some embodiments, this maximum font size can be determined by starting with a predetermined max font size and iteratively decreasing the font size until both conditions are satisfied, with the maximum font size being determined to be the first iterated font size to satisfy both conditions. Similarly, a procedure can start with a predetermined min font size and iteratively increase the font size until either condition is violated, with the maximum font size being determined as the font size from the prior iteration that did not violate either condition. In some embodiments, a binary search may be used to approximate the maximum font size. For example, starting w ith a range font sizes (e.g., a min and a max font size), step 732 can repeatedly narrow the range by halves until a font size is found that satisfies both conditions within a predetermined tolerance (e.g., the width and height of the text are within ±X% of the width and height, respectively, of the containing element). Fig. 13A shows an example of a font size that violates condition (1) for given user-provided print content, whereas Fig. 13B shows an example of a font size (e.g.. the maximum font size) that satisfies both conditions (1) and (2).
[0133] Alternately, to preserve vertical line spacing, the font size of the dynamic element can be set to a maximum font size that satisfies the following conditions: (1) the width of the text does not exceed the width of the containing element, and (2) the height of a string of text containing all ascenders and descenders in a given language (e.g. “a quick brow n fox jumps over the lazy dog A QUICK BROWN FOX JUMPS OVER THE LAZY DOG'’) does not exceed the height of the containing element. As illustrated in Fig. 14, to maintain design integrity, accurate font sizing, and appropriate vertical line spacing, step 732 can consider the font case, and all ascending and descending characters in the font when determining font size.
[0134] Fig. 14 illustrates font size difference when ascenders, descenders, and case are ignored. A first example 1400 shows lowercase text with no ascenders and no descenders. A second example 1402 shows sentence case with ascenders and descenders.
[0135] Fig. 15 shows how font case (e.g. upper, lower, etc.) and ascending and descending characters can be incorporated into font sizing and vertical spacing. A phrase incorporating all alphabetic characters in the English language can be fitted to the vertical height of the text box. The case of this phrase can be determined by the case used in the design (e.g.. the dynamic element may be designed with placeholder text that is lowercase, uppercase, or sentence case). The font size of the fitted text is then used for the design. A first example 1500 shows all letters in the English language in lowercase. A second example 1502 shows all letters in the English language in uppercase. A third example 1504 shows all letters in the English language in sentence case (i.e., both lowercase and uppercase).
[0136] Referring again to Fig. 7A, in a second sub-step of step 732, the font size determined by one of the above techniques may be optionally scaled according to a correction factor (e.g., a multiplier) to compensate for sizing inconsistencies among browsers, operating systems, fonts, electronic document generators, etc. As one example, a lookup table may be maintained to determine a correction factor for a given browser. The lookup table may be stored on the server and populated with correction factors computed for various different browsers. For a given browser, the correction factor can be computed as the ratio of a font size computed on a reference browser to the font size computed onthe given browser. Other techniques may be used to compute and store such correction factors. Fig. 16 illustrates how font size can be adjusted using a correction factor.
[0137] Referring again to Fig. 7A, in a third sub-step of step 732, subsets of dynamic elements can optionally be grouped together. For a particular group, the text in all grouped elements can be resized to match the smallest computed font size in one of the grouped elements. In other words, if the font size is decreased for one text element in the group, it decreases for all text elements in the same group. As mentioned above in the context of Fig. 1, design elements stored within database 103 can be assigned a group; this information can be used here.
[0138] Referring to Fig. 17, a design 1700 can include a first group 1702 of elements comprising three text elements scaled relative to each other, a second group 1704 of elements also comprising three text elements scaled relative to each other, and a single (ungrouped) text element 1706 that is not scaled relative to any other text element in the design.
[0139] Referring again to Fig. 7A, in a fourth sub-step of step 732, vertical spacing between different dynamic elements (e.g., two text elements vertically stacked on top of each other) can be optionally adjusted for further aesthetic enhancement. For example, a second text element that sits below first text element can be positioned so that the descender of the first text element lies below the ascender of the second text element without alphanumeric characters in either line overlapping each other. To achieve this, step 732 can: (a) determine which alphanumeric characters in the first text element overlap the vertical extension of the second text element’s bounding box; and (b) using the determined characters, adjust the spacing between the second and first text elements to a desired value (e g., a value determined according to the print job’s design properties).
[0140] Figs. 18A and 18B show an example of adjusting vertical spacing of text elements 1800, 1802 based on the absence of ascending and descending characters. Fig. 18A shows the original design and Fig. 18B shows the adjusted design. In this example, the area above second text element 1802 that intersects with first text element 1800 (region 1804) contains no descending characters (Fig. 18 A), so the second text element 1802 can be fitted into the remaining space without overlapping (Fig. 18B).
[0141] Figs. 18C and 18D show an example of adjusting vertical spacing of text elements 1806, 1808 based on the absence of presence and descending characters. In this example, the area above second text element 1808 that intersects with first text element 1806 (region 1810) contains a descending “j” (Fig. 18C), so the second text element 1808 can be raised just high enough so it will not overlap with the descending “j,” thus improving readability (Fig. 18D).
[0142] Fig. 20 illustrates a finished, letter-sized, electronic document 2000 generated for an A7 envelope with the return address to be printed on the flap. The illustrated document can be generated using the processes of Figs. 7 and 7A, for example. Fig. 21 shows how an A7 envelope 2100 can be loaded into a printer 2102. Fig. 22 shows the same A7 envelope 2100 after the generated electronic document is printed thereon (e.g., from a web browser).
[0143] Turning to Fig. 23, sometimes, it may not be enough simply to print on customsized paper using an electronic document whose dimensions match a standard paper size. Due to the difference between the electronic document dimensions and the custom-sized paper dimensions, the print content may print off the paper in various ways depending on the users’ document processor and / or web browser, custom-sized paper dimensions. printer feed mechanism, printer software, etc. Even in cases where the electronic document size matches the paper size, printer margins may cause undesirable shifts in the content position. In such cases, to correctly position the content on the custom-sized paper, a calibration process can be provided.
[0144] Fig. 23 illustrates a calibration process 2300 for printing on custom-sized paper, according to some embodiments. Process 2300 may be implemented and performed by a server device, such as server device 102 of Fig. 1, by a client device, such as client device 104 of Fig. 1, or by a combination of server- and client-side processing.
[0145] At step 2302, a calibration document (electronic document) can be generated with markings or symbols (e.g.. letters) designating the edges of the custom-sized paper and indicating the direction, scaling, and magnitude of any misalignment between the print position in the electronic document and the actual print position on the custom paper. The calibration document can be provided to a client device for printing on custom-sized paper using a user printer.
[0146] Fig. 24 shows an example of an electronic calibration document 2400 with standard, letter-sized dimensions generated for an A7 envelope. Calibration document 2400 is generated to have marks 2401a-d indicating the four comers of custom paper (i.e., A7 envelope) and calibration patterns 2402a-d positioned within those four comers. For illustration purposes, marks 2401a-d and calibration patterns 2402a-d are enlarged and darkened in the figure; in practice, these elements may be generated using a smaller font and / or a lighter font color so as to appear nearly invisible. It is appreciated herein that using nearly invisible marks can prevent auto-adjustment from document or browser software which may interfere with calibration.
[0147] A first calibration pattern 2402a consists of diagonal letters starting with “A’?at the left edge of the custom paper (more particularly, starting at the line formed by marks 2401a and 2401b which denote the left edge of the custom paper within the calibration document 2400). A second calibration pattern 2402b consists of diagonal letters starting with 'A" at the right edge of the custom paper. The first and second calibration patterns 2402a, b can have equal, horizontal spacing to allow for calculating horizontal scaling and offset.
[0148] A third calibration pattern 2402c consists of diagonal letters starting with ' A" at the top edge of the custom paper. A fourth calibration pattern 2402d consists of diagonal letters starting with “A” at the bottom edge of the custom paper. The third and fourth calibration patterns 2402c, d can have equal, vertical spacing to allow for calculating vertical scaling and offset.
[0149] While Fig. 24 shows letters used for the calibration patterns 2402a-d, various other marks or symbols could be used instead.
[0150] Due to the mismatch between the electronic document dimensions and the custom-sized paper dimensions, part of the calibration pattern may be cut off based on the printer feed mechanism, browser implementation, etc. In the case that no marks or symbols are cut off, it may be determined that no calibration adjustments are required when generating electronic documents for printing.
[0151] Fig. 25 shows a result of printing the electronic calibration document of Fig. 24 on custom paper. As shown, on a printed paper 2500, the first calibration pattern 2402a iscut off such that the first letter to appear is “P,” as indicated by circle 2500a The other three calibration patterns 2402b, c,d are not cut off because the first letter to appear in each is "A,” as indicated by respective circles 2500b, c,d.
[0152] Referring again to Fig. 23, at step 2304. the missing (i.e., cut off) portions of the calibration patterns 2402a-d on the printed paper 2500 can be determined. For example, on all four sides of the printed paper 2500, the first letters which have not been cut off in the respective calibration patterns 2402a-d can be determined. Various techniques may be used to determine these letters, such as via manual entry, a scan, a photograph, etc. In some embodiments, the server device may provide a UI similar to UI 2600 of Fig. 26 to enable a user to manually enter the first visible letters from each respective calibration patterns 2402a-d (e g., “P,” ‘"A,” “A,” and “A” for the left, top, right, and bottom edges respectively.
[0153] Referring again to Fig. 23, at step 2306. based on the cut off portions of the calibration patterns 2402a-d determined at step 2304, one or more calibration offsets (e.g., a horizontal offset and / or a vertical offset) can be determined. For example, using a first visible letter entered by the user for a given calibration pattern, the number of letters cut off for that calibration pattern can be computed, and then the offset can be calculated by multiplying the number of letters by the fixed honzontal / vertical letter spacing in the calibration pattern.
[0154] The calibration offsets can then be used to adjust the position of the print content on generated electronic documents to print correctly on the custom-sized paper, such as illustrated in Fig. 27.
[0155] Fig. 28 shows the adjusted electronic document of Fig. 27 printed on custom paper. As can be seen, after calibration, the address prints correctly on the envelope. In some cases, the determined calibration offsets can be stored to a database for use with subsequent print jobs, such as discuss above in the context of Fig. 1.
[0156] Figs. 29A-C show another calibration process that can be used for printing on custom-sized paper. Fig. 29A shows an example of a design 2900 as it is intended to print on custom paper. Fig. 29B shows a corresponding actual design 2902 that may be printed due to printer misalignment, etc.
[0157] Fig. 29C shows an example of a UI 2904 that can be provided to enable a user to adjust the design (represented by box 2906) around the page (represented by box 2906) until it is in the position they observe in their printout 290 (Fig. 29B). Based on the user input, one or more calibration offsets (e.g., a horizontal offset and / or a vertical offset) can be determined by computing the difference between the user-indicated position of the design and the original position of the design. The calibration offsets can then be used to adjust the position of the print content on generated electronic documents to print correctly on the custom-sized paper, as previously discussed.
[0158] Fig. 30 illustrates a system and method for bulk importing of user contacts (e.g., addresses) into a database, according to some embodiments. To side-step potential privacy concerns and the proprietary constraints of available contact application API protocols, the disclosed method takes advantage of the widespread capability in many existing contact applications to export and / or share contact information in a standardized format, such as vCard.
[0159] Illustrative system 3000 includes a server device (or “server”) 3002 and a client device (or “client”) 3004 connected via one or more computer networks. While Fig. 1 shows a single client 3004 connected to single server 3002, the general concepts described herein can be implemented on an arbitrary number of server devices each configured to service an arbitrary number of client devices.
[0160] Server 3002 may be similar in makeup to server 102 of Fig. 1, including having an API 3006 that client 4104 can use to invoke specific application functions provided by server 3002. Server 3002 can be configured to receive one or more types of messages such as email messages, text messages, etc. The ability to receive and process such messages may be provided by one or more third-party services that server 3002 interacts with, e.g., using APIs provided by those third-party services (e.g., such as a Webhooks-type API). In some cases, server 3002 may be configured to directly receive email messages and / or text messages. For example, API 3006 can implement Simple Mail Transfer Protocol (SMTP) for receiving email messages.
[0161] As shown in Fig. 1, server 102 can include or otherwise have access to a database 3003 for storing uploaded contact information (e.g., addresses). Database 3003 can take various forms, such as those described above with database 103 of Fig. 1.
[0162] Client 3004 may be similar in makeup to client 104 of Fig. 1,
[0163] In the illustrative embodiment of Fig. 30, server 3002 can execute a process comprising one or more of the following steps.
[0164] At step 3010, server 3002 can generate a unique identifier and provide the unique identifier to client 3004. Examples of unique identifiers that can be generated include email addresses, phone numbers, alphanumerical codes, or any other collection of symbols uniquely identifying the user’s identify and / or message.
[0165] In the case of an email address, the unique identifier can have a format such as <unique-part>@<domain> where <unique-part> is a pseudorandom value and <domain> is an Internet domain for which server 3002 is capable of receiving email messages (either directly or via a third-party email service). Thus, the unique identifier may be a properly formed email address to which the user can send their contacts (e.g.. using the "‘export” feature available in many contact applications).
[0166] Server 3002 can also store the unique identifier (or a portion thereof) to database 3003 in association with a user account (e.g., a user account with which client 3004 previously authenticated). In some embodiments, server 3002 may present a UI that displays the generated unique identifier and allows the user to easily copy the unique identifier (e.g., to a clipboard of client 3004).
[0167] At step 3012, server 3002 can receive a message associated with a unique identifier. For example, server 3002 may listen for email messages received using a Webhooks-type API provided by the third-party7email service. As another example, server 3002 may query the third-party email service for newly received messages on a periodic basis. When a message is received, server 3002 can process the message to determine a unique identifier associated with it. For example, in the case of email, server 3002 can extract the unique identifier from the “TO” header in the email message.
[0168] Server 3002 can match the unique identifier associated with the message to a user using the information stored in database 3003. If a match is found, processing can continue to step 3014. Otherwise, if no match is found, then server 3002 can disregard the message.
[0169] At step 3014, server 3002 can process information contained in the message (e.g., by extracting and parsing one or more message attachments) to obtain information about one or more contacts of the user. In some cases, server 3002 may be configured to parse one or more standardized contact formats, such as vCard. Server 3002 can then store the contacts to database 3003.
[0170] In some embodiments, server 3002 can present a UI that displays the newly stored contacts (e.g., in list form) and provides controls for the user to edit and / or delete individual contacts.
[0171] The general concepts and techniques described may also be applied for secure, and privacy-preserving importing / uploading of various other types of information and are not limited to contact information. For example, the general concepts and techniques described herein may be used for importing information in various standard file formats used by various applications on mobile, desktop, or other electronic devices.
[0172] Fig. 31 shows an illustrative computing device 3100 that may implement various features and processes as described. Computing device 3100 may correspond to, for example, server device 102 of Fig. 1, client device 104 of Fig. 1. server device 3002 of Fig. 30, and / or client device 3004 of Fig. 30. The computing device 3100 may be implemented on any electronic device that runs software applications derived from compiled instructions, including without limitation personal computers, servers, smart phones, media players, electronic tablets, game consoles, email devices, etc. In some implementations, the computing device 3100 may include one or more processors 3102, volatile memory 3104, non-volatile memory 3106, and one or more peripherals 3108. These components may be interconnected by one or more computer buses 3110.
[0173] Processor(s) 3102 may use any known processor technology, including but not limited to graphics processors and multi-core processors. Suitable processors for the execution of a program of instructions may include, by way of example, both general and special purpose microprocessors, and the sole processor or one of multiple processors or cores, of any kind of computer. Bus 3110 may be any known internal or external bus technology, including but not limited to ISA, EISA, PCI, PCI Express, NuBus, USB, Serial ATA or FireWire. Volatile memory 3104 may include, for example, SDRAM. Processor 3102 may receive instructions and data from a read-only memory or a random-access memory or both. The essential elements of a computer may include a processor for executing instructions and one or more memories for storing instructions and data.
[0174] Non-volatile memory 3106 may include by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory' devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. Non-volatile memory 3106 may store various computer instructions including operating system instructions 3112, communication instructions 3114, application instructions 3116, and application data 3117. Operating system instructions 3112 may include instructions for implementing an operating system (e.g., Mac OS®. Windows®, or Linux). The operating system may be multi-user, multiprocessing, multitasking, multithreading, real-time, and the like. Communication instructions 3114 may include network communications instructions, for example, software for implementing communication protocols, such as TCP / IP, HTTP, Ethernet, telephony, etc.
[0175] Peripherals 3108 may be included within the computing device 3100 or operatively coupled to communicate with the computing device 3100. Peripherals 3108 may include, for example, network interfaces 3118, input devices 3120, and storage devices 3122. Network interfaces may include for example an Ethernet or Wi-Fi adapter. Input devices 3120 may be any known input device technology, including but not limited to a keyboard (including a virtual keyboard), mouse, trackball, and touch-sensitive pad or display. Storage devices 3122 may include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks.
[0176] The system can perform processing, at least in part, via a computer program product, (e.g., in a machine-readable storage device), for execution by, or to control the operation of, data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). Each such program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. How ever, the programs may be implemented in assembly or machine language. The language may be a compiled or an interpreted language and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may be deployedto be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network. A computer program maybe stored on a storage medium or device (e.g., CD-ROM, hard disk, or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer. Processing may also be implemented as a machine-readable storage medium, configured with a computer program, where upon execution, instructions in the computer program cause the computer to operate. The program logic may be run on a physical or virtual processor. The program logic may be run across one or more physical or virtual processors.
[0177] The subject matter described herein can be implemented in digital electronic circuitry', or in computer software, firmware, or hardware, including the structural means disclosed herein and structural equivalents thereof, or in combinations of them. The subject matter described herein can be implemented as one or more computer program products, such as one or more computer programs tangibly embodied in an information carrier (e.g., in a machine-readable storage device), or embodied in a propagated signal, for execution by, or to control the operation of, data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). A computer program (also known as a program, software, software application, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or another unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file. A program can be stored in a portion of a file that holds other programs or data, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network.
[0178] The processes and logic flows described in this disclosure, including the method steps of the subject matter described herein, can be performed by one or more programmable processors executing one or more computer programs to perform functions of the subject matter described herein by operating on input data and generating output.The processes and logic flows can also be performed by, and apparatus of the subj ect matter described herein can be implemented as, special purpose logic circuitry, e.g.. an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0179] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processor of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random-access memory or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. Information carriers suitable for embodying computer program instructions and data include all forms of nonvolatile memory, including by ways of example semiconductor memory devices, such as EPROM, EEPROM, flash memory device, or magnetic disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry7.
[0180] In the foregoing detailed description, various features are grouped together in one or more individual embodiments for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that each claim requires more features than are expressly recited therein. Rather, inventive aspects may lie in less than all features of each disclosed embodiment.
[0181] As used herein, the term “predetermined,’’ when referring to a value, is used to refer to a value that is set, or fixed, prior to execution of processing in which that value is used. For example, a predetermined value may be hardcoded into software, defined in a configuration file, or stored in a database prior to said execution. As another example, a predetermined value can be calculated during said processing from one or more other values that are hardcoded into software, defined in a configuration file, or stored in a database prior to said execution.
[0182] References in the disclosure to “one embodiment,” “an embodiment,” “some embodiments,” or variants of such phrases indicate that the embodiment(s) described caninclude a particular feature, structure, or characteristic, but every embodiment can include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment(s). Further, when a particular feature, structure, or characteristic is described in connection knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
[0183] The disclosed subject matter is not limited in its application to the details of construction and to the arrangements of the components set forth in the following description or illustrated in the drawings. The disclosed subject matter is capable of other embodiments and of being practiced and carried out in various ways. As such, those skilled in the art will appreciate that the conception, upon which this disclosure is based, may readily be utilized as a basis for the designing of other structures, methods, and systems for carrying out the several purposes of the disclosed subject matter. Therefore, the claims should be regarded as including such equivalent constructions insofar as they do not depart from the spirit and scope of the disclosed subject matter.
[0184] Although the disclosed subject matter has been described and illustrated in the foregoing exemplary embodiments, it is understood that the present disclosure has been made only by way of example, and that numerous changes in the details of implementation of the disclosed subject matter may be made without departing from the spirit and scope of the disclosed subject matter.
[0185] All publications and references cited herein are expressly incorporated herein by reference in their entirety.
Claims
CLAIMS1. A method comprising: receiving, from a client device, content to be printed on paper having a first size; generating an electronic document having a second size different from the first size; embedding the content within the electronic document, the content embedded within a region of the electronic document having the first size; and providing the electronic document having the second size to the client device for printing on the paper having the first size.
2. The method of claim 1 wherein the first size is a custom paper size and the second size is a standard paper size.
3. The method of claim 1 wherein the paper is an envelope.
4. The method of claim 3 wherein the content includes one or more addresses to be printed on the envelope.
5. The method of claim 4 wherein the one or more addresses include a return address and one or more recipient addresses.
6. The method of claim 5 comprising: receiving, from the client device, an indication of whether the return address is to be printed on a front of the envelope or a back of the envelope, wherein the embedding of the content within the electronic document includes embedding the return address within the electronic document such that the return address prints on the indicated front or back side of the envelope.
7. The method of claim 1 comprising: determining a centering capability of a printer to be used to print the electronic document on the paper having the second size, wherein the generating of the electronic document having the second size includes determining the second size based on the printer centering capability.
8. The method of claim 1 comprising: calculating one or more offsets based on misalignment between the content embedded within the electronic document and an actual print position on the paper; and generating another electronic document with the content embedded using the one or more offsets to correct for the misalignment.
9. The method of claim 1 wherein the electronic document is generated to have a first orientation, the method comprising: after the embedding of the content within the electronic document, rotating the electronic document to have a second orientation different from the first orientation.
10. The method of claim 1 wherein the content is embedded within the electronic document based on a selected design having one or more static elements and one or more dynamic elements.
11. The method of claim 10 wherein the one or more static elements includes a plurality of static elements, the method comprising: combining the plurality of static elements into a single image; and resizing and positioning the single image within the electronic document based on the first size of the paper.
12. The method of claim 10 comprising: positioning ones of the one or more dynamic elements relative to ones of the one or more static elements.
13. The method of claim 10 comprising: positioning ones of the one or more dynamic elements relative to an edge of the region of the electronic document having the first size.
14. The method of claim 10 comprising populating the one or more dynamic elements from the content.
15. The method of claim 14 wherein the one or more dynamic elements include one or more text elements, the method comprising: adjusting font sizes of the one or more dynamic elements to fit the content within the computed dimensions of the dynamic elements.
16. The method of claim 1 comprising: providing a unique identifier to the client device; receiving a message from the client device associated with a unique identifier and having one or more attachments; processing the message attachments to extract one or more addresses; and storing the addresses in a database.
17. A system comprising: one or more processors; and a memory storing computer program code that when executed on the one or more processor causes the processor to execute a process comprising: receiving content to be printed on paper having a first size; generating an electronic document having a second size different from the first size;embedding the content within the electronic document, the content embedded within a region of the electronic document having the first size; and providing the electronic document having the second size for printing on the paper having the first size.
Citation Information
Patent Citations
System and method for production and distribution of mail pieces for mass mailings
US20030055869A1
Graphical user interfaces
US20090199113A1
Ganged imposition postal sort system
US20170262241A1
Virtualized printing of indicia, logos and graphics
US6982808B1
Cited By
Self-adaptive adjustment method and device for size of ticket printing template
CN120295585A
