Text::PDF::TTFont0(3pm) User Contributed Perl Documentation Text::PDF::TTFont0(3pm)NAME
Text::PDF::TTFont0 - Inherits from PDF::Dict and represents a TrueType Type 0 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)
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 throughout a particular PDF file.
All font resources are full PDF objects.
out_text($text)
Returns the string to be put into a content stream for text to be output in this font. The text is assumed to be UTF8 encoded and the
return string is a glyph sequence for the text. If subsetting is enabled, then all the glyphs returned are also marked for output.
out_glyphs(@n)
Marks the glyphs as being needed in the output font when subsetting. Returns a string to render the glyphs as specified.
width($text)
Returns the width of the string, assuming it to be UTF8 encoded.
outobjdeep($fh, $pdf, %opts)
Handles the creation of the font stream including subsetting at this point. So if you get this far, that's it for subsetting.
ship_out($pdf)
Ship this font out to the given $pdf file context
empty
Empty the font of as much as possible in order to save memory
perl v5.8.8 2006-09-09 Text::PDF::TTFont0(3pm)
Check Out this Related Man Page
Text::PDF::Dict(3pm) User Contributed Perl Documentation Text::PDF::Dict(3pm)NAME
Text::PDF::Dict - PDF Dictionaries and Streams. Inherits from PDF::Objind
INSTANCE VARIABLES
There are various special instance variables which are used to look after, particularly, streams. Each begins with a space:
stream Holds the stream contents for output
streamfile
Holds the stream contents in an external file rather than in memory. This is not the same as a PDF file stream. The data is stored
in its unfiltered form.
streamloc
If both ' stream' and ' streamfile' are empty, this indicates where in the source PDF the stream starts.
METHODS
$d->outobjdeep($fh)
Outputs the contents of the dictionary to a PDF file. This is a recursive call.
It also outputs a stream if the dictionary has a stream element. If this occurs then this method will calculate the length of the stream
and insert it into the stream's dictionary.
$d->read_stream($force_memory)
Reads in a stream from a PDF file. If the stream is greater than "PDF::Dict::mincache" (defaults to 32768) bytes to be stored, then the
default action is to create a file for it somewhere and to use that file as a data cache. If $force_memory is set, this caching will not
occur and the data will all be stored in the $self->{' stream'} variable.
$d->val
Returns the dictionary, which is itself.
$d->copy($inpdf, $res, $unique, $outpdf, %opts)
Copies an object. See Text::PDF::Objind::Copy() for details
perl v5.8.8 2006-09-09 Text::PDF::Dict(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)
Dear all,
I plan to take HP-UX cert. EXAM.
But, I cannot find hp-ux system & network administration II.pdf file
Do you know where can I download??
Do you have? can you send to me?
Thank you! (2 Replies)
:confused:
We have a Sco Open Unix 5.0.5 Server that I am trying to configure to allow for PDF creation. Currently the server is just using lpr to print to laser printers located throughout the facility. The goal is to be able to also print to pdf documents. There is no option for... (2 Replies)
I have a file where the data is stored in 6 columns, I would like to subset only lines with the fourth column is blank.
Can anybody help me with this?
Thanks
Joseph (19 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)
Hi,
I want to open a pdf file in my PCLinuxOS, but when I click on the PDF file to open it, a message box prompts asking for Open With : KGhostView ; Save File....etc.
So the default pdf genereator to open is set to KGhostView. How do I change the default to KPdf, another pdf generator..
... (3 Replies)
Hello, ladies, gentlemen.
First I suppose I should introduce myself.
I've been poking at C since a long time ago, somewhere around 1990. (Don't misinterpret that. "Poking at C", in this statement, means that I jumped on it, studied it for anything from a day to a weekend to a finished "Hello,... (21 Replies)
Hi
can you please show me how to subset data from a file?
file1 looks like this:
>chr1 strand:+ excise_beg:554293 excise_end:554402
TAATATATTAGATTTGACCTTCAGCAAGGTCAAAGGGAGTCCGAACTAGTCT
>chr2 strand:+ excise_beg:554542 excise_end:554651
ACAGCATACCCCCGATTCCGCTACGACCAACTCATACACCTCCTATGAAAAAA... (17 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)
Is there a way to covert te attached text file to a pdf?
I have tried:
enscript-p output.ps article.txt
PRE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }PRE.ctl { font-family: "Lohit Hindi",monospace; }P { margin-bottom: 0.08in; } awk '{ A=$2; next} END { for (i in A) print... (7 Replies)
Hello friends,
I need to convert ASCII text to PDF on RHEL 6 so I did the below and could generate PDF but it has lot of junk/special characters.
yum install enscript ghostscript
enscript -p output.ps input.txt
ps2pdf output.ps output.pdf
So I download latest source of Ghostscript... (4 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)