Tricky SVG document resulting from PDF conversion
- Hi all,
i have the following document obtained from a demo version of PDF2SVG,
a PDFTRon product, and it looks very good with Internet Explore + ASV
but it renders very poorly with native SVG of Firefox 18.104.22.168.
You can download the file here:
However, even if in ASV is looking better, when i try to select
certain text elements, like the third last line in the bottom right
side of the page (the line beginning with the faint text "I
prezzi..."), ASV seems to go crazy (ASV version 3.03).
If i look at the source, i can't say why that text is so tricky for ASV.
Is anyone able to explain this odd behaviour?
As Adobe support is due to end in january 2008, are there any chances,
in case it's a bug, to get this fixed before then?
This is caused by the following problem in the file: they draw that
text with font fnt1 (which is probably translated from PDF Type3
font), which is defined as following:
Notice how units-per-em is 1 and ascent and descent are three-digit
numbers. Adobe Viewer simply thinks that these characters are really,
really tall and draws the selection boxes as very tall rectangles.
You can try to edit ascent and descent numbers manually and see if it
One other problem that I have noticed is that they place stylesheet
at the very end. This is obviously convenient for generation, but is
not a good idea, because it can cause a "flash of unstyled content"
(google it) when a viewer is doing progressive rendering.
Adobe Systems Inc.
--- In firstname.lastname@example.org, "Flavio" <flavio@...> wrote:
> Hi all,
> i have the following document obtained from a demo version of
> a PDFTRon product, and it looks very good with Internet Explore +
> but it renders very poorly with native SVG of Firefox 22.214.171.124.
> You can download the file here:
> However, even if in ASV is looking better, when i try to select
> certain text elements, like the third last line in the bottom right
> side of the page (the line beginning with the faint text "I
> prezzi..."), ASV seems to go crazy (ASV version 3.03).
> If i look at the source, i can't say why that text is so tricky for
> Is anyone able to explain this odd behaviour?
> As Adobe support is due to end in january 2008, are there any
> in case it's a bug, to get this fixed before then?
> Thank you
thank you for the explanation.
I will submit the problem to PDFTron, now i am sure it's something
they ought to fix in their program, unless this happens only with the
- Regarding text selection we are simply converting information that is
available in PDF documents. Adobe implemented robust text selection
in Acrobat Reader, however the same does not apply to their SVG
viewer. The ideal solution would be to make ASV as robust as the
Acrobat Reader is for PDF files. Unfortunately, with Adobe dropping
support for ASV & SVG, it seems that this will never happen. On our
side, we will try to tweak the SVG output to better match the
expected behavior in the current version of ASV.
Regarding the missing random characters, this is only a limitation in
the demo version of PDF2SVG and it does not occur in the production
version (http://www.pdftron.com/pdf2svg/faq.html#demo1). If you would
like you can send your test files to 'support at pdftron.com' and we
will gladly convert the files to SVG using the production version.
PDFTron Systems Inc.
From: Flavio Casetta [mailto:fc@?????.com]
Sent: Friday, February 02, 2007 2:43 AM
Likewise, i'd like to know if there is anything that can be done in
order to improve text detection because when i select the same phrase
from within Adobe Reader, i get correct word boundaries, spaces and
so on, whereas PDF2SVG, albeit giving a good graphic representation,
seems to loose the textual information by combining letters randomly.
I am currently evaluating this product and i find it extremely good
otherwise, so i really hope you can fix this problem before taking