Page 321 - Open Soource Technologies 304.indd
P. 321

Unit 12: Portable Document Format



               •  PDF files have the concept of the current text position. It’s like a cursor unless you specify   Notes
                 another location, when you insert text it appears at the current text location. You set the
                 text location with the pdf_set_textpos( ) function.
               •  Using  nonstandard  fonts  without  embedding  them  makes  your  documents  much  less
                 portable, while embedding them makes your generated PDF files much larger.
               •  PDF supports many different embedded image formats: PNG, JPEG, GIF, TIFF, CCITT,
                 and a raw image format that consists of a stream of the exact byte sequence of pixels. Not
                 every feature of every format is supported.
               •  The scale parameter indicates the proportional scaling factor to be used when placing the
                 image in the document.
               •  PDF provides several navigation features for PDF files. Bookmarks function as a table of
                 contents for the document, and you can provide viewers with thumbnail images indicating
                 what’s at the other end of each bookmark. In addition, any part of a PDF page can be linked
                 to another part of the current PDF file, another PDF file, or a completely different file.

            12.7 Keywords

            Apache: The Apache library contains functions specific to running PHP under Apache.
            Calendar: The calendar library provides a number of functions for converting between various
            calendar formats, including the Julian Day Count, the Gregorian calendar, the Jewish calendar,
            the French Republican Calendar, and Unix timestamp values.

            CCVS: CCVS is a library for providing a conduit between your server and credit-card processing
            centers via a modem.

            Cybercash: Cybercash is a provider of credit-card processing services. The Cybercash functions
            provide access to Cybercash transactions from PHP.

            Document: A PHP document is made up of a number of pages. Each page contains text and/
            or images.
            EXIF: The Exchangeable Image File Format (EXIF) extension provides a function to read the
            information stored on a device; many digital cameras store their information in EXIF format.
            FDF:  The  Forms  Data  Format  (FDF)  is  a  library  for  creating  forms  in  PDF  documents  and
            extracting data from or populating those forms. The FDF extension allows you to interpret data
            from an FDF-enabled PDF document or to add FDF form fields to a PDF document.
            Pattern: A pattern is a reusable component, defined outside of a page context that is used in
            place of a color for filling or stroking a path.
            PDF: Stands for “Portable Document Format.” PDF is a multi-platform file format developed
            by Adobe Systems.


                          1.  Develop a PHP program to show the font demonstration.
                          2.  Create a pattern from a small PHP logo image and uses it to fill a circle.

            12.8 Review Questions

               1.  What is the mean of PDF? What are the PDF files and why these are used?

               2.  What are the PDF extensions? Why these are used?




                                             LOVELY PROFESSIONAL UNIVERSITY                                   315
   316   317   318   319   320   321   322   323   324   325   326