Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

text::pdf::ttfont(3pm) [debian man page]

Text::PDF::TTFont(3pm)					User Contributed Perl Documentation				    Text::PDF::TTFont(3pm)

Text::PDF::TTFont - Inherits from Text::PDF::Dict and represents a TrueType font within a PDF file. DESCRIPTION
A font consists of two primary parts in a PDF file: the header and the font descriptor. Whilst two fonts may share font descriptors, they will have their own header dictionaries including encoding and widhth information. INSTANCE VARIABLES
There are no instance variables beyond the variables which directly correspond to entries in the appropriate PDF dictionaries. METHODS
Text::PDF::TTFont->new($parent, $fontfname, $pdfname, %opts) Creates a new font resource for the given fontfile. This includes the font descriptor and the font stream. The $pdfname is the name by which this font resource will be known throught a particular PDF file. All font resources are full PDF objects. $t->width($text) Measures the width of the given text according to the widths in the font $t->trim($text, $len) Trims the given text to the given length (in per mille em) returning the trimmed text $t->out_text($text) Indicates to the font that the text is to be output and returns the text to be output $f->copy Copies the font object excluding the name, widths and encoding, etc. TITLE
Text::PDF::TTIOString - internal IO type handle for string output for font embedding. This code is ripped out of IO::Scalar, to save the direct dependence for so little. See IO::Scalar for details perl v5.8.8 2006-09-09 Text::PDF::TTFont(3pm)

Check Out this Related Man Page

PDF::API2::Resource::Font::CoreFont(3pm)		User Contributed Perl Documentation		  PDF::API2::Resource::Font::CoreFont(3pm)

PDF::API2::Resource::Font::CoreFont - Module for using the 14 PDF built-in Fonts. SYNOPSIS
# use PDF::API2; # $pdf = PDF::API2->new; $cft = $pdf->corefont('Times-Roman'); # METHODS
$font = PDF::API2::Resource::Font::CoreFont->new $pdf, $fontname, %options Returns a corefont object. Valid %options are: -encode ... changes the encoding of the font from its default. See perl's Encode for the supported values. -pdfname ... changes the reference-name of the font from its default. The reference-name is normally generated automatically and can be retrived via $pdfname=$font->name. $font = PDF::API2::Resource::Font::CoreFont->new_api $api, $fontname, %options Returns a corefont object. This method is different from 'new' that it needs an PDF::API2-object rather than a PDF::API2::PDF::File-object. PDF::API2::Resource::Font::CoreFont->loadallfonts() "Requires in" all fonts available as corefonts. SUPPORTED FONTS
PDF::API2::CoreFont supports the following 'Adobe Core Fonts': Courier Courier-Bold Courier-BoldOblique Courier-Oblique Helvetica Helvetica-Bold Helvetica-BoldOblique Helvetica-Oblique Symbol Times-Bold Times-BoldItalic Times-Italic Times-Roman ZapfDingbats PDF::API2::CoreFont supports the following 'Windows Fonts': Georgia Georgia,Bold Georgia,BoldItalic Georgia,Italic Verdana Verdana,Bold Verdana,BoldItalic Verdana,Italic Webdings Wingdings AUTHOR
Alfred Reibenschuh perl v5.14.2 2011-03-10 PDF::API2::Resource::Font::CoreFont(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find eof, then process

Newbie question. I want to create a shell script that will only move/copy a file if it's determined that the eof string exists. This is to control files being uploaded via FTP. I don't want to move incomplete files, so my only thought is to check for eof, or compare file size every 15-30 seconds on... (12 Replies)
Discussion started by: mfilby
12 Replies

2. Shell Programming and Scripting

Script To dlete PDF file s and Folders

Hi We have to delete PDF files and Folders older than five days .Can anyone help with the shell script Regards Ved (10 Replies)
Discussion started by: ved123
10 Replies

3. UNIX for Dummies Questions & Answers

Report to PDF

Hi their, I am trying to find out if there is a way that when a report is generated it can be converted to a PDF or generated as a PFD. :D (5 Replies)
Discussion started by: Croney69
5 Replies

4. UNIX for Dummies Questions & Answers

Problem working with Pipe Delimited Text file

Hello all: I have a following textfile data with name inst1.txt HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ DTL|H|5464-1|0|02-02-2008|02-03-2008||||F||||||||| DTL|D|5464-1|1|02-02-2008|02-03-2008|1||JJJ DTL|D|5464-1|2|02-02-2008|02-03-2008|1||JJJ... (9 Replies)
Discussion started by: ravi0435
9 Replies

5. Shell Programming and Scripting

SED or AWK "append line to the previous line"

Hi, How can I remove the line beak in the following case if the line begin with the special char ;? TEXT Text;text ;text Text;text;text I want to convert the text to: Text;text;text Text;text;text I have already tried to use... (31 Replies)
Discussion started by: research3
31 Replies

6. AIX

Print text between two delimiters

Hi, Can somebody help me with the below situation, Input File, ======== 2007_08_07_IA-0100-014_(MONTHLY).PDF 2007_08_07_IA-0100-031_(QUARTERLY)(RERUN).PDF 2008-02-28_KR-1022-003_(MONTH)(RERUN)(REC1).CSV Required output, ============ MONTHLY QUARTERLY MONTH ... (15 Replies)
Discussion started by: sravicha
15 Replies

7. Shell Programming and Scripting

Text centering

Hello, people, I have to make a tool that is centering the given text by the screen width or given parameter. I have no idea how to write this script. Can anyone make it for me ir at least help? (4 Replies)
Discussion started by: LimitedWings
4 Replies

8. Homework & Coursework Questions

Text centering

Hello, people, 1. The problem statement, all variables and given/known data: I have to make a tool that is centering the given text by the screen width or given parameter. I have no idea how to write this script. Can anyone make it for me ir at least help? 2. Relevant commands, code,... (7 Replies)
Discussion started by: LimitedWings
7 Replies

9. Programming

Parsing a Text file using C++

I was trying to parse the text file, which will looks like this ###XYZABC#### ############ int = 4 char = 1 float = 1 . . ############ like this my text file will contains lots of entries and I need to store these entries in the map eg. map.first = int and map.second = 4 same way I... (5 Replies)
Discussion started by: agupta2
5 Replies

10. Shell Programming and Scripting

Remove Numbers from file

I have a file that has some text that looks like this Some Text 1. More text 2. Different text Final Text I would like the remove the lines of text that start with the numbers. Some Text Final Text I have tried to use cat file.txt | grep -Ev 1. >... (9 Replies)
Discussion started by: icculus99
9 Replies

11. Shell Programming and Scripting

Read filenames in sorted order

Hi , My requirement is to scan a directory for file names with LTR.PDF* and send those files via ftp to another server one by one. Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99 and these needs to be sent in sorted order. is there a way to get... (10 Replies)
Discussion started by: nishantrk
10 Replies

12. HP-UX

Cannot read PDF emailed by HP-UX server

I have a very strange issue. Now that we have a lot of our users using iPads to read statements, this is becoming more of an issue. We have some financial statements that are generated into PDF format by an application that runs in HP-UX, and then we use uuencode to attach the statements to the... (4 Replies)
Discussion started by: lawadm1
4 Replies

13. Shell Programming and Scripting

Text columns processing using awk

P { margin-bottom: 0.25cm; line-height: 120%; }CODE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }CODE.ctl { font-family: "Lohit Hindi",monospace; }A:link { } I'm trying to build an awk statement to print from a file (file1): A 1,2,3 * A 4,5,6 ** B 1 ... (4 Replies)
Discussion started by: dovah
4 Replies

14. UNIX for Beginners Questions & Answers

Sort a text file based on names in square brackets

Hi all, I have a text file similar to this: Text More text Etc Stuff That Is Needed Etc Etc This contains over 70 entries and each entry has several lines of text below the name in square brackets. (5 Replies)
Discussion started by: Scally
5 Replies

15. UNIX for Beginners Questions & Answers

Change text font to greater one in this very good MOTIF texteditor ?

Hi, i have here found a very good texteditor source code programmed in the MOTIF GUI language. For myself i need NOTHING else to program. To start from a very easy point of view i want to RUN this editor on my LINUX machine and type simple C code. The reason for this post is that the text... (7 Replies)
Discussion started by: Sennenmut
7 Replies

Featured Tech Videos