Is it a bug that the +/- character (0xB1) is not rendered by Times and Courier corefonts, or is this character simply missing? This is how to reproduce the...
I get from the docs how to make an image file. Basically, my $picture = '/path/to/picture'; my $photo = $page->gfx; my $photo_file=$pdf->image_jpeg($picture); ...
I would suspect you could go via a GD image object from a stream [haven't tried myself] - though I have found during recent experiments that the speed, ...
... I don't know why some fonts have one encoding and some have another, but you can change it with like so: $pdf->corefont ($font, -encode => 'iso8859-1' ),...
I am generating three-page pdf files with only text and graphics (rectangles, arc, lines). I'm a fair bit surprised to find that these PDF files are over 130kb...
Hello, Somewhere there is a script pdf-optimize.pl It may or may not be installed with PDF::API2, I forget, but it is also available on CPAN under contrib.: ...
Mark Fowle
mfowle@...
May 3, 2006 1:06 pm
2872
... Thanks for that Mark, however it doesn't have the required effect .. the file is now 4 bytes LARGER! pdf-optimize.pl /tmp/Cheese.large.pdf...
OK I have only seen that in situations where the pdf is already very clean, either the pdf is simple, or the file has already been cleaned. There are other...
Mark Fowle
mfowle@...
May 4, 2006 1:25 pm
2874
I saw drastic differences in the size of the resulting pdf's depending on the types of the images that I was putting into the pdf. Different image formats...
Bascially I need to process existing PDFs and perform the following operations. * Build a basic semantic understanding of the document based on the tagged ...
... but ... This worked, however it introduced another problem. Both Times and Courier (the ones that would not print the +/- sign) after having their encoding...
Greetings. I was wondering is there a way to replicate streams for content that is absolutely identical (including position) and is present on several pages,...
The encoding of the Adobe core fonts is AdobeStandardEncoding. PDF supports 4 ( STD, MAC, WIN, PDF) Also, there are 14 core fonts in the following families:...
Content for a page can in one or more indirect objects each of which would have to be a content stream. I am not sure how PDF::API handles it, but yes, the...
I want to open an existing PDF and add something to the background. How can I do that? (if I simply draw on the page everything is being placed on top of the...
According to Appendix D of the 1.5 PDF Specification, the +/- is 0xB1 (octal 261) which is decimal 177 for all encodings EXCEPT STD. The only way you can get...
As noted in the POD for PDF::API2::Page (though not explained very well) if you obtain a reference to a text or gfx object and supply a true value as a...
... 0xB1 (octal 261) which is decimal 177 for all encodings EXCEPT STD. The only way you can get a different character is if the /Encoding in the PDF is...
... The corefont example script rendered everything correctly leading me to further investigation yielding this: use PDF::API2; my $pdf = PDF::API2->new; my...
... a correct latin1 string. ... a incorrect utf8 string. the string receives the utf8 flag (from pack) but the apostrophes get improperly decomposed into...
... I don't think the problem is that the string is improperly encoded. The problem is that it is a unicode string at all. encByUni is improperly mapping \x27...
... This comment from Alfred got me thinking for a second that I indeed can not concatenate Unicode with non-Unicode. Glad that Ken pointed out that "I have...
... I don't see that. In your particular case the default encoding contains 39 => quoteright 169 => quotesingle u2c includes the inverse mapping of this, from...
I've just run some PDF::API2 code that was developed on 0.3r77 and noticed that the paragraph method no longer returns witdth of the text on the last line or a...
Hi, Does anyone know of a way to view PDFs in Perl/Tk? I tried searching the modules for PDF::API2 and Tk but no luck. -- __END__ Just my 0.00000002 million...