Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8188745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:01:15+00:00 2026-06-07T03:01:15+00:00

For my current assignment I need to make an extension for Adobe InDesign using

  • 0

For my current assignment I need to make an extension for Adobe InDesign using Adobe Creative Suit Extension Builder and Flash Builder. I guess this is more of a question for ones that know Extension Builder and InDesign API.

The point of this extension is to load some data and send some data to a server. I need to make a screenshot of a page, then send it in jpg to a server. But, there are no (or at least i couldnt find any) ways to create a bitmap(to cast it on a object seems impossible, because this Objects are just Objects, and not DisplayObjects).

I managed to silently export pages as jpegs, now I’m thinking about loading them and sending but that will require building an AIR app to handle it all, so this will be a bit bulky.

So to sum up the question, how to take a screencapture of all elements on a page in InDesign using CS Ext.Builder?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:01:17+00:00Added an answer on June 7, 2026 at 3:01 am

    what is the problem with export to JPG ? You can choose to export the page or the objects themselves.

    Here is a snippet I wrote in a recent project. Hope it helps.

    public static function getFilePath():String {
    
    var app:com.adobe.indesign.Application = InDesign.app;
    var sel:* = app.selection, oldResolution:Number, oldColorSpace:JpegColorSpaceEnum, groupItems:Array = [], i:int = 0, n:int = sel.length;
    
    if (!sel || !n )
            {
                Alert.show("Pas de selection !", "title", Alert.OK, Sprite(mx.core.Application.application));
                return "";
            }
    
            for ( i = 0 ; i < n ; i ++ )
            {
                groupItems [ groupItems.length ] = sel[i];
            }
            sel = ( sel.length > 1 )? app.activeDocument.groups.add ( sel ) : sel[0] ;
    
            var tempFolder:File = File.createTempDirectory();
            AppModel.getInstance().jpgFolder = tempFolder;
            var jpgFile:File = new File ();
            jpgFile.nativePath = tempFolder.nativePath + "/temp.jpg";
    
            oldResolution = app.jpegExportPreferences.exportResolution;
            app.jpegExportPreferences.exportResolution = 72;
            oldColorSpace = app.jpegExportPreferences.jpegColorSpace;
            app.jpegExportPreferences.jpegColorSpace = JpegColorSpaceEnum.GRAY;
            sel.exportFile ( ExportFormat.jpg, jpgFile );
    
    
            app.jpegExportPreferences.jpegColorSpace = oldColorSpace;
            app.jpegExportPreferences.exportResolution = oldResolution;
    
            if ( sel is Group )
            {
                sel.ungroup();
                app.select ( groupItems );
            }
    
            return jpgFile.nativePath;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay so I'm having an issue with a current assignment (trust me this is
My current assignment in a beginning Java course is to animate a circle across
This is for a homework assignment, so I don't want the exact code, but
I have a website where I need a javascript version of the current user
I need to preface this with I am not allowed to use an IDE
I am new to this and i am trying to do it without using
As a part of an assignment, I need to write two functions: a function
(Firstly, as a disclaimer, this is related to an assignment. I'm not asking anyone
My current homework assignment has me creating an iterator class for a list. I'm
I am doing an assignment where I need to use pthreads or semaphores to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.