Copy link to clipboard
Copied
Hi,
does anyone knows how using Flash Builder, to get a "screenshot" of pages.
something like get bitmapData or something of it.
i just want make screenshots of every page and send them to my remote server.
i cant found a way how to get a bitmap data of page.
anyone has ideas?
thanks
Copy link to clipboard
Copied
You want a screenshot (including non-printing items) or a jpeg of the page content?
Harbs
Copy link to clipboard
Copied
i want get a page content as jpg.
like if we go to File -> export -> JPG -> unselect "spreads" checkbox. so we got jpg file for every page.
so this images i need to send to server.
Copy link to clipboard
Copied
To export just single pages instead of spreads set exportingSpread in jpegExportPreferences to false.
app.jpegExportPreferences.exportSpread = false;
Hope that helps.
--
Marijan (tomaxxi)
Copy link to clipboard
Copied
its will be very helpful, if you can give me full code for it.
i am trying with this code but no success:
public static function run():void
{
var app:Application = InDesign.app;
var document:Document = app.activeDocument;
var file:File = new File("C:/Users/admin/Desktop/5.jpg");
if (file.exists){
var preset:PDFExportPreset = new PDFExportPreset();
document.exportFile("jpg", file, false, preset);
}
}
hope you can help me with
Copy link to clipboard
Copied
This should work (exports every page):
var app:Application = InDesign.app;
var document:Document = app.activeDocument;if(document != null)
{
document.exportFile(ExportFormat.jpg, new File("C:\\Temp\\Export.jpg"));
}