• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Export to server as JPEG images

New Here ,
Jun 14, 2012 Jun 14, 2012

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

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2012 Jun 14, 2012

Copy link to clipboard

Copied

You want a screenshot (including non-printing items) or a jpeg of the page content?

Harbs

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2012 Jun 14, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 14, 2012 Jun 14, 2012

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)

http://tomaxxi.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2012 Jun 14, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 15, 2012 Jun 15, 2012

Copy link to clipboard

Copied

LATEST

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"));
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines