I'd like to create a custom web part with the FlexPaper component so we can use it in SharePoint 2010. The user would go to the web part properties to select a SWF file (converted PDF) from the Site Assets and link to it, as well as set properties on the FlexPaper control. Any thoughts on how such a web part can be created?
I've got this code in a Content Editor Web Part, but it doesn't seem to be doing anything:
<script src="/helpdesk/SiteAssets/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="/helpdesk/SiteAssets/js/flexpaper_flash.js" type="text/javascript"></script>
<div style="position: relative; top: 10px; left: 10px">
<script type="text/javascript">
var fp = new FlexPaperViewer(
'/helpdesk/SiteAssets/js/FlexPaperViewer.swf',
'viewerPlaceHolder', { config : {
SwfFile : '/helpdesk/SiteAssets/js/wordman1.swf',
Scale : 0.6,
ZoomTransition : 'easeOut',
ZoomTime : 0.5,
ZoomInterval : 0.2,
FitPageOnLoad : true,
FitWidthOnLoad : false,
PrintEnabled : true,
FullScreenAsMaxWindow : false,
ProgressiveLoading : false,
MinZoomSize : 0.2,
MaxZoomSize : 5,
SearchMatchAll : false,
InitViewMode : 'TwoPage',
ViewModeToolsVisible : true,
ZoomToolsVisible : true,
NavToolsVisible : true,
CursorToolsVisible : true,
SearchToolsVisible : true,
localeChain: 'en_US'
}});
</script>
</div>
Thanks.

C:\SWFTools\pdf2swf.exe Paper.pdf -o Paper.swf -T 9 -f. Not crazy about the permissive file perms, but don't know a way around it. – Alex C Jul 25 '11 at 11:39