PDA

View Full Version : How to print pdf file from published html



ijam20
October 23rd, 2008, 07:45 AM
I have a print button, where i tried to link to pdf file and i want it automatically print. for now i have this action on my button :

on (release){
getURL("map.pdf");
}

i manage to view the file when i run it using swf.. but, once i publish it to html it's not working..

i want it to view the pdf file and come with the print option..

Please someone come out with the solution.

Cheers,
JIM @ ijam20

ijam20
October 27th, 2008, 10:28 PM
hello.. does anyone understand this question.. any solution to print from published HTML file..

haam
October 28th, 2008, 12:45 PM
it's more than likely a targeting problem.

"map.pdf" might work when testing from the SWF but once the SWF is inside it's HTML holder the path to "map.pdf" might change.

try hard coding it to a web url to test it. if that works then it's def your path and you need to figure out how the HTML page sees the PDF and target it accordingly.