Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.
Stack Gives Back Featured on Meta. A filename is optional if one was specified while opening or creating the PDF. As a side effect, the document structure is removed from memory when the file is saved, so it will no longer be usable. PDF::API2 contains circular references, so this call is necessary in long-running processes to keep from running out of memory.
This will be called automatically when you save or stringify a PDF. You should only need to call it explicitly if you are reading PDF files and not writing them. As a side effect, the document structure is removed from memory when the string is created, so it will no longer be usable. The date may be truncated at any point after the year.
The date format is as described in created above. The standard keys title, author, etc. Creates if needed and returns the document's outline tree, which is also known as its bookmarks or the table of contents, depending on the PDF reader.
Returns a new page object. By default, the page is added to the end of the document. If you include an existing page number, the new page will be inserted in that position, pushing existing pages back. This is useful if you want to transpose the imported page somewhat differently onto a page e. One of decimal standard decimal arabic numerals , Roman uppercase roman numerals , roman lowercase roman numerals , Alpha uppercase letters , or alpha lowercase letters. There is no default numbering style.
If omitted, the page label will be just the prefix if set or an empty string. Set the default physical size for pages in the PDF. If called without arguments, return the coordinates of the rectangle describing the default physical page size.
Set default prepress page boundaries for pages in the PDF. If called without arguments, returns the coordinates of the rectangles describing each of the supported page boundaries. Add a font to the PDF. Helvetica or the path to a font file. The font format is normally detected automatically based on the file's extension.
Kerning automatic adjustment of space between pairs of characters is enabled by default if the font includes this information. Replace with "move" first two arguments and "polyline" remaining arguments.
Replace with either "position" if called with arguments or "crlf" if called without arguments. Replace with "text" , setting align to center. Replace with "text" , setting align to right. Remove initial hyphens from option names. For more information on module installation, please visit the detailed CPAN module installation guide.
Changes to the coordinate system only affect subsequent paths or text. Use a negative argument to rotate clockwise. There is no documented default miter limit. If called without any arguments, a solid line will be drawn.
If called with one argument, the dashes and gaps will have equal lengths. If called with two or more arguments, the arguments represent alternating dash and gap lengths. See PDF specification 1. XObject on the page in the specified location. This is initially zero. Returns the width of the text in points. Options: align One of left default , center , or right.
In each case, the position will then be moved to the end of the text. The value may be one of the following: auto Determines the underline distance from the text based on the font and font size. A positive distance moves the line downward.
When creating PDFs for print shops, you'll most commonly use just the media box and trim box. Traditional print shops may also use the bleed box when adding printer's marks and other information. The media box defines the boundaries of the physical medium on which the page is to be printed.
It may include any extended area surrounding the finished page for bleed, printing marks, or other such purposes. The default value is a US letter page 8. The crop box defines the region to which the contents of the page shall be clipped cropped when displayed or printed. The default value is the page's media box. This is a historical page boundary. The bleed box defines the region to which the contents of the page shall be clipped when output in a production environment.
This may include any extra bleed area needed to accommodate the physical limitations of cutting, folding, and trimming equipment. The actual printed page media box may include printing marks that fall outside the bleed box. The default value is the page's crop box. The trim box defines the intended dimensions of the finished page after trimming.
0コメント