Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDF Printing Issue

5 views
Skip to first unread message

passeyhead

unread,
Aug 20, 2008, 12:11:07 PM8/20/08
to
I'm trying to print a PDF from my Flex app. The problem is that I
keep getting a black line down the right side of the paper. It seems
to correspond with the non-printable part of the paper. Has anyone
dealt with printing a PDF from Flex?

Here's my code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
horizontalAlign="center"
verticalAlign="middle"
width="100%" height="100%"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #FFFFFF]">

<mx:Script>
<![CDATA[
import mx.printing.FlexPrintJob;
import mx.printing.FlexPrintJobScaleType;

private function printMe():void
{
var job:FlexPrintJob = new FlexPrintJob;
job.start();
job.addObject(img, FlexPrintJobScaleType.SHOW_ALL);
job.send();

}
]]>
</mx:Script>
<mx:Image id="img"
source="http://webdev2/students/dra/21312.swf"
click="printMe()"
left="0"
top="0"
scaleContent="false"
autoLoad="true"/>
</mx:Application>

0 new messages