[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] pdf2swf: This file is too complex to render - SWF
From: |
Tobias Fink |
Subject: |
Re: [Swftools-common] pdf2swf: This file is too complex to render - SWF only supports 65536 shapes at once error |
Date: |
Wed, 19 Aug 2015 06:33:57 +0000 |
Hi LI Xin,
i know this isn't the correctest solution, but as a workaround i've implemented
my program it that way that it uses sfwtools to convert each single page
without the "polytobitmap" option, and in case of (any) error try to convert it
using the option.
This works out fine (best available conversion results for each page), even
thou it will consume double conversion cpu and memory in the worst case.
Best Regards,
Tobias
PS: The conversion runs like this:
- run "pdf2swf -I <<FILE>>"
- parse the results to get the number of pages
- for each pagenumber:
-- run "pdf2swf <<FILE>> -p <<PAGENUMBER>> -G -j 90 -z -t -T 10 -s
internallinkfunction=true -s externallinkfunction=true -o <<OUTPUTFILE>>"
-- in case of error (return-value of above execution != 0): run "pdf2swf
<<FILE>> -p <<PAGENUMBER>> -G -j 90 -z -t -T 10 -s poly2bitmap -s
internallinkfunction=true -s externallinkfunction=true -o <<OUTPUTFILE>>"
--
Tobias Fink
Software Engineer
-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von ??
Gesendet: Mittwoch, 19. August 2015 03:48
An: address@hidden
Betreff: [Swftools-common] pdf2swf: This file is too complex to render - SWF
only supports 65536 shapes at once error
Hello,
I am very new to Swftools,
and I have a question about pdf2swf.
I see the following errors when converting a PDF file to SWF.
/pdf2swf -T 9 -f -t -G -s storeallcharacters input.pdf -o output.swf//
//
//ERROR ID Table overflow//
//ERROR This file is too complex to render - SWF only supports 65536
shapes at once.
/
I googled this error, found that it could be fixed by adding "-s
poly2bitmap".
Here are my questions:
1. Can I know if a PDF is too complex or not before actually converting it?
2. Is it possible to apply "-s poly2bitmap" option only when it is
necessary?
Because I heard people saying "-s poly2bitmap" would slow the
converting process.
My Swftools version: 0.9.2
Thanks for your help in advance.
LI Xin
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>