swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Swftools-common] Tiled patterns and shape overflow


From: Sander Kruger
Subject: RE: [Swftools-common] Tiled patterns and shape overflow
Date: Fri, 27 Nov 2009 15:35:03 +0100

Hi,

I think the patterns are already detected. pdf2swf shows me a message
saying:
NOTICE  File contains tiled patterns

Apparently (I have not looked at the source code), it also contains the
logic to convert polygons to bitmap (for feature poly2bitmap). I think what
is needed next is a way to apply a bitmap fillstyle to the shapes that use
the tiled patterns.

I have no idea how complicated this would be, however.

Regards,
Sander.

-----Oorspronkelijk bericht-----
Van: address@hidden
[mailto:address@hidden Namens Danny
Wilson
Verzonden: vrijdag 27 november 2009 14:01
Aan: address@hidden
Onderwerp: Re: [Swftools-common] Tiled patterns and shape overflow

We are also receiving many PDFs from our customers with patterns in the
layout which explode the SWF filesize and cause flash player to become
unresponsive.
I would very much appreciate pattern detection and conversion to bitmap, but
this is of course much easier asked then implemented.

Anyone have a clue how could these patterns could be detected?  Are these
even defined in the PDF files as patterns?


On 27 nov 2009, at 09:17, Sander Kruger wrote:

> I wouldn't say it's an Excel problem. In fact it depends on the PDF
> converter how gridlines are expressed in PDF. For example, my Cutewriter
> creates grey lines (not patterned), but Acrobat 6 creates the tiled
> patterns.
> 
> I could imagine that there are other programs that create patterns. For
> example, I have seen many Powerpoint presentations with transparency where
> the transparent bits are converted to patterns by some PDF converters.
> 
> I suppose that this mostly happens with older versions, yet I think it's
> almost impossible to rule out that such files will come across. If pdf2swf
> is used as a server software with multiple file sources, then it would be
> useful to have a solution for it in pdf2swf.
> 
> Would it be conceivable to put such an option into the program that only
> converts patterns to bitmaps and uses them as a fillstyle?
> 
> Regards,
> Sander.
> 
> -----Oorspronkelijk bericht-----
> Van: address@hidden
> [mailto:address@hidden Namens Chris
> Pugh
> Verzonden: donderdag 26 november 2009 19:15
> Aan: Sander Kruger
> CC: address@hidden
> Onderwerp: Re: [Swftools-common] Tiled patterns and shape overflow
> 
>> 2009/11/26 Sander Kruger <address@hidden>:
>> Hello,
>> 
>> I haven't found an etiquette page for this list, so I hope I'm in the
> right
>> place.
>> 
>> 
>> Is there a way to optimize pdf2swf for documents containing tiled
> patterns?
>> For example, I have an Excel file that, when printed to PDF with visible
>> gridlines results in a modest PDF file of 18k.
>> 
>> However, the gridlines are drawn with a tiled pattern, resulting in a
> shape
>> overflow. I think this happens because pdf2swf defines every shape in the
>> pattern as a separate shape.
>> 
> Just maybe this is an Excel specific issue?   Have you tried all the
> available
> options within Excel?
> 
> I don';t use Excel.  I do however use Gnumeric and OpenOffice Calc ( under
> both Windows and Linux ).  Neither appear to exhibit such an effect when
> a gridded sheet is converted to a pdf with pdf2swf.  Even under maximum
> zoom.
> 
> Regards,
> 
> 
> Chris.
> 
> 
> 
> 








reply via email to

[Prev in Thread] Current Thread [Next in Thread]