Text::PDF::TTFont(3pm) User Contributed Perl Documentation Text::PDF::TTFont(3pm)NAME
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)NAME
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)