[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Problem with OpenOffice- generated PDFs
From: |
Bas Horsting |
Subject: |
[Swftools-common] Problem with OpenOffice- generated PDFs |
Date: |
Sun, 29 Oct 2006 12:02:24 +0100 |
Hi, this is my first post to this list!
I'm building an entire website around swftools :) and I think pdf2swf is
fantastic. PDFs come out great.
I only have one problem. Whenever I convert a PDF generated by OpenOffice
(from a DOC or XLS conversion to PDF) (in my case, 1.1.5, for technical
reasons we cannot use 2),
the fonts show up in the final swf, but something is quite wrong with them:
I use the getTextSnapshot "trick" to make text selectable and copiable, but
in a mayority of files generated by oofice, the selection turns up as a
string of "????" (question marks).
I see these question marks in swf2pdf's debug output as well when i turn
on -v -v -v.
Below is a good example: In this case, Helvetica-Bold works fine, but
Helvetica doesn't, in the same document (I attached the SWF, PDF and the
DOC, just in case)
Is it me, or is weird stuff going on with the Helvetica font?
I've been trying everything, can't get it to work... does anyone have an
idea?
Many thanks in advance,
Bas Horsting
Ah and i use pdf2swf - part of swftools 2006-04-26-2108
____________________________________________________________________________
Here is the output:
Author: IFernandez
Creator: Writer
Producer: OpenOffice.org 1.1.5
CreationDate: 20061027133702+02'00'
Pages: 1
Linearized: no
Encrypted: no
VERBOSE initializing swf output
VERBOSE Starting new SWF page of size 595x842
VERBOSE Render (0,0)-(595,842) move:0/0
NOTICE processing PDF page 1 (595x842:0:0) (move:0:0)
VERBOSE SearchFont(Helvetica-Bold)
VERBOSE updateFont(Helvetica-Bold-9-0) ->
/usr/local/share/swftools/fonts/n019004l.pfb (max size: 14.100000)
VERBOSE =========== Helvetica-Bold (ID:9,0) ==========
VERBOSE | Tag: Helvetica-Bold-9-0
VERBOSE | Type: 1
VERBOSE | is serif
VERBOSE Loading /usr/local/share/swftools/fonts/n019004l.pfb...
VERBOSE Font /usr/local/share/swftools/fonts/n019004l.pfb loaded
successfully
VERBOSE |
VERBOSE writing font using TrueTypeFontFile::writeTTF
VERBOSE updateFont(CAAAAA+Helvetica-8-0) -> /tmp/68b03ac84f64e196 (max size:
14.100000)
VERBOSE =========== Helvetica (ID:8,0) ==========
VERBOSE | Tag: CAAAAA+Helvetica-8-0
VERBOSE | Type: TrueType
VERBOSE | Embedded id: CAAAAA+Helvetica id: 4
VERBOSE | is symbolic
VERBOSE Loading /tmp/68b03ac84f64e196...
VERBOSE Font /tmp/68b03ac84f64e196 loaded successfully
VERBOSE |
NOTICE SWF written
____________________________________________________________________________
This is the output (part of it) with -v -v -v on:
DEBUG drawChar(147.056700,478.100000,c='?' (12), u=97 <1>) CID=0
name="NULL" render=0
DEBUG Char [>12<,(null),97] maps to 12
DEBUG drawChar(154.896300,478.100000,c='?' (13), u=98 <1>) CID=0
name="NULL" render=0
DEBUG Char [>13<,(null),98] maps to 13
DEBUG drawChar(162.735900,478.100000,c='?' (12), u=97 <1>) CID=0
name="NULL" render=0
DEBUG Char [>12<,(null),97] maps to 12
DEBUG drawChar(170.575500,478.100000,c='?' (14), u=106 <1>) CID=0
name="NULL" render=0
DEBUG Char [>14<,(null),106] maps to 14
DEBUG drawChar(173.705700,478.100000,c='?' (15), u=111 <1>) CID=0
name="NULL" render=0
DEBUG Char [>15<,(null),111] maps to 15
DEBUG drawChar(181.545300,478.100000,c='?' (16), u=58 <1>) CID=0
name="NULL" render=0
DEBUG Char [>16<,(null),58] maps to 16
DEBUG drawChar(185.451000,478.100000,c='?' (8), u=32 <1>) CID=0
name="NULL" render=0
DEBUG Char [>8<,(null),32] maps to 8
DEBUG drawChar(189.356700,478.100000,c='?' (17), u=48 <1>) CID=0
name="NULL" render=0
DEBUG Char [>17<,(null),48] maps to 17
DEBUG drawChar(197.196300,478.100000,c='#' (35), u=53 <1>) CID=0
name="numbersign" render=0
DEBUG Char [>35<,numbersign,53] maps to 35
DEBUG drawChar(205.035900,478.100000,c='?' (19), u=47 <1>) CID=0
name="NULL" render=0
DEBUG Char [>19<,(null),47] maps to 19
DEBUG drawChar(208.941600,478.100000,c='?' (18), u=49 <1>) CID=0
name="NULL" render=0
DEBUG Char [>18<,(null),49] maps to 18
DEBUG drawChar(216.781200,478.100000,c='?' (20), u=50 <1>) CID=0
name="NULL" render=0
DEBUG Char [>20<,(null),50] maps to 20
DEBUG drawChar(224.620800,478.100000,c='?' (19), u=47 <1>) CID=0
name="NULL" render=0
DEBUG Char [>19<,(null),47] maps to 19
DEBUG drawChar(228.526500,478.100000,c='?' (17), u=48 <1>) CID=0
name="NULL" render=0
DEBUG Char [>17<,(null),48] maps to 17
DEBUG drawChar(236.366100,478.100000,c='?' (21), u=51 <1>) CID=0
name="NULL" render=0
doc.zip
Description: Binary data
testing.zip
Description: Binary data
- [Swftools-common] Problem with OpenOffice- generated PDFs,
Bas Horsting <=