As3 Flex Printing Help

Закрито Опубліковано %project.relative_time Оплачується при отриманні
Закрито Оплачується при отриманні

my budget is small - I am expecting to pay 1 or 2 hours worth of work for this SMALL fix that a Flex expert should be able to do quickly. I want to print the content of a swfLoader in Flex 3. The swfLoader loads a wide variety of SWFs, many of which use text outlines to create stroked text. The problem is that when Flex prints these fonts, it ignores the outlines. Adding [url removed, login to view] = true; has not helped. I will attach a sample Flex project with swfLoader and this print class, you can test yourself.

My print button component class looks like this:

// ActionScript file

package [url removed, login to view] {

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

public class PrintButton extends Button {

//component attributes

public var component:UIComponent;

public var paper:String;

public function PrintButton():void {

super();

addEventListener([url removed, login to view], printJobInvocation);

}

// Define private click event handler.

private function printJobInvocation(event:MouseEvent):void {

var printJob:FlexPrintJob = new FlexPrintJob();

//Start the print job

if ([url removed, login to view]() != true) return;

if(paper == "OnePage") {

[url removed, login to view](component,

FlexPrintJobScaleType.SHOW_ALL);

[url removed, login to view] = true;

}

else if(paper == "FillPage") {

[url removed, login to view](component,

FlexPrintJobScaleType.FILL_PAGE);

[url removed, login to view] = true;

}

else if(paper == "MatchHeight") {

[url removed, login to view](component,

FlexPrintJobScaleType.MATCH_HEIGHT);

[url removed, login to view] = true;

}

else if(paper == "MatchWidth") {

[url removed, login to view](component,

FlexPrintJobScaleType.MATCH_WIDTH);

[url removed, login to view] = true;

}

else if(paper == "None") {

[url removed, login to view](component,

[url removed, login to view]);

[url removed, login to view] = true;

}

//default print paper setting

else {

[url removed, login to view](component,

FlexPrintJobScaleType.SHOW_ALL);

[url removed, login to view] = true;

}

//output to hardware

[url removed, login to view]();

}

}

}

Adobe Flash Flex

ID Проекту: #901577

Про проект

10 заявок(-ки) Дистанційний проект Остання активність Feb 5, 2011