Thanks Alessandro.
Yes, I did read that post and tried adding the suggested code to both
classes (HelloWorld and DefaultBasicExample) but it made no
difference. I also needed to import it.sephiroth.utils.HashMap because
the compiler choked on the private static var _link:Array =
[it.sephiroth.utils.HashMap]; line if I didnt. ie
import it.sephiroth.utils.HashMap;
public class HelloWorld extends DefaultBasicExample
{
private static var _link:Array = [it.sephiroth.utils.HashMap];
...
}
I also switched to using the mxmlc compiler as you suggested (but it
still hasnt solved the problem). ie
amxmlc -library-path+=pdflib HelloWorld.as
The folder pdflib contains:
as3_jpeg_wrapper.swc
as3commons-logging-1.1.swc
as3corelib.swc
purePDF.swc
purePDFont.swc
By process of elimination I find that the problem is with the
document.add() method. eg
var paragraph: Paragraph = new Paragraph("My line");
document.add(paragraph);
If I comment out the document.add(paragraph); then the process runs to
the end (and displays the "Document has no pages" error message as you
would expect since that is the only content I am adding). ie
setting up as3_jpeg_wrapper library
Welcome to purepdf 0.74.20100527
Error: The document has no pages
Thanks again for your help.
Regards,
Murray
On Jan 4, 6:46 pm, Alessandro Crugnola <
alessandro.crugn...@gmail.com>
wrote:
> Did you read this post?
http://www.flashsecrets.com/2009/04/argumenterror-error-2173-unable-t...