How to export full image in PNG format lying inside a smaller sized rectangle?

Hi
In my own created extension for adobe inDesign using CS Extension builder 1.5, I am trying to export a page item lying inside a rectangle frame longer than frame height. Full image is not exported but it gets cropped which is of the rectangle height. I need to get full image exported in PNG format. The item can be text/image/drawing/or group of multiple items lying inside a rectangle frame.
Sometimes the correct image is exported although the rectangle frame size is smaller than the inside image/item. Following is the code I’m using to export the page item.
var targetItem:PageItem = pageItem.allPageItems[0];
targetItem.exportFile(ExportFormat.PNG_FORMAT, targetFile, false);
Can anybody help me out?
Thanks and best regards
Sal

the answer is at : http://forums.adobe.com/thread/1060138

Similar Messages

  • How to save JFrame image as png format?

    hello all..
    i've encountered some problem while i using my Java3D to load my VRML file & save it in png format.
    i've loaded the VRML file in my Java 3D and display it on the JFrame.
    now, i want to save the image as PNG format, but i can't save the image, but just save the background & canvas.
    here's my code:
    Button button = new Button("Save image");
    button.addActionListener( new ActionListener()
    public void actionPerformed(ActionEvent event)
    RenderedImage image = myCreateImage();
    // Write generated image to a file
    try {
    FileDialog fd = new FileDialog(f, "Save as PNG", FileDialog.SAVE);
    fd.show();
    String name= fd.getFile();
    // Save as PNG
    ImageIO.write((RenderedImage)image, "png", new File(name));
    catch (IOException e) {}
    content_pane.add(button, BorderLayout.SOUTH);
    try
    FileReader fr = new FileReader( "TS.java" );
    BufferedReader br = new BufferedReader(fr);
    catch(Exception e) {}
    pack();
    setLocationRelativeTo( null );
    setSize(800, 600);
    setLocation(0, 40);
    setVisible(true);
    setBackground(Color.white);
    public RenderedImage myCreateImage() {
    int width = 800;
    int height = 600;
    // Create a buffered image in which to draw
    BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = bufferedImage.createGraphics();
    g2d.dispose();
    return bufferedImage;
    private void loadFile(String file) {
    int flag = VRML97Loader.LOAD_ALL;
    if(staticLoad)
    flag &= ~VRML97Loader.LOAD_BEHAVIOR_NODES;
    VRML97Loader loader = new VRML97Loader(flag);
    // if the file is a directory, ignore it
    File f = new File(file);
    if(f.exists() && !f.isFile()) {
    System.out.println("Can't load directories specified");
    System.exit(1);
    URL url = null;
    Scene scene = null;
    try {
    if(url != null)
    scene = loader.load(url);
    else
    scene = loader.load("vrml/fish.wrl");
    } catch(Exception e) {
    System.out.println("Exception loading URL:" + e);
    e.printStackTrace();
    System.exit(0);
    urlLabel.setText("File " + file);
    if (scene != null) {
    // get the scene group
    sceneGroup = scene.getSceneGroup();
    sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
    sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
    sceneGroup.compile();
    // add the scene group to the scene
    examineGroup.addChild(sceneGroup);
    // now that the scene group is "live" we can inquire the bounds
    setViewpoint();
    // setupBackground(scene);
    // setupLighting(scene);

    Your g2d is doring nothing!
    Indent your code.
    class{
       type data1;
       type data2;
       type method(){
           statement;
            clause{
               statement;

  • How to save an image in png format?

    I have modified an image with J2ME and stored this into a byte array, now how can I save this byte array like a png Image??? or anyone format. Class Image have not some method for this task.

    you can use rms to save your image. Try to learn it on http://java.sun.com/javame/reference/apis/jsr037/javax/microedition/rms/RecordStore.html

  • How to export Fireworks image to MS Sharepoint

    I am building a SharePoint site and would like to know how to export the image I created in fireworks to SharePoint.  As of right now, I can export the image to the SharePoint home page, but none of the links are in tact.
    Can anyone tell me how to export the image I have created in Firework, along with the links, to the SharePoint home page???

    You did not understand my question or do not have an understanding of SharePoint or Fireworks.
    I am building an image on the home page of the SharePoint site.  I need have the user click on sections of the image to take them to certain places within the SharePoint site.  The image has been built.  The links to the pages have been added to the images with rollovers, using Adobe Fireworks.  I need to take that image, with the links and rollovers, and move that to my SharePoint home page.
    As of right now I can only move the image, but the links and rollovers do not go with it.  I have added it to a 'page viewer' web part on the Sharepoint, but all the actions take place just withing the page viewer web part, rather than moving the entire browser to the selected page.
    Can anyone help with this?

  • How to Export full street address of the contacts from AD OU

    How to Export full street address of the contacts from AD OU

    Break down the one liner suggested by Chen . What do you see when you run the below :
    Get-ADUser -Searchbase 'OU=XYZ,DC=XYZ,DC=XYZ' -Filter * -Properties *
    You will have to replace the OU path in the above.
    Once you see the Users are an output of the above, try below :
    Get-ADUser -Searchbase 'OU=XYZ,DC=XYZ,DC=XYZ' -Filter * -Properties * |
    Select SamaccountName, @{n="Full Address";E={[String]::Join(';',$_.StreetAddress , $_.l, $_.PostalCode, $_.Country)}}
    If you are able to see the objects till this point then only you will get those in your CSV. These are nothing but basic steps to follow when someone gives you a solution.
    Hope this helps.
    Knowledge is Power{Shell}
    DexterPOSH
    My Blog

  • Action script 3: Export object to image with PNG format - make transparent

    Hi!
    I have a problem in export a object to image .PNG (and make transparent). When i add a object TextField in stage and add effect for my object. Then i export to image with format is .PNG.I use BlendMode.NORMAL properties of BitmapData to draw my image - work done and image is exported.
    I use BlendMode.ERASE properties of BitmapData to draw my image - is not word
    See more in attact file : BlendMode.ERASE.png, BlendMode.NORMAL.png
    Code text effect: \OnlyTextEff\view\textEffs.as and \OnlyTextEff\effects\EnvelopeDistord_2.as
    Code export image: \OnlyTextEff\view\textview.as (function name is "exportHandler")
    download demo: http://www.mediafire.com/?vgnauwspt8b6x08
    Does anyone have a good example or explanation of that ? Thanks.

    // that looks like a pretty poor tutorial.  but
    public function init(e:Event=null):void{
    go=new Go();  // you need to declare go
    addChild(go);
    go.addEventListener(MouseEvent.CLICK,startgame);
    public function startgame(e:Event):void{
    removeChild(start_mc);  // where start_mc is the movieclip of your start screen
    addChild(game_mc);  // where game_mc is the movieclip of your game

  • How to export full quality in photos

    In iPhoto you used to be able to export a modified picture in 'current' quality, which was full quality as shown in iPhoto.
    Now in the new photos app this option is gone (only allowing to export original image in full quality). The best now seems to be exporting the jpeg at maximum quality which it's compressing the image from what is seen in photos app.
    Does anyone know how to get around this...incredibly annoying as I want to edit images in photos, then export out that full quality to share or print or whatever.

    You misunderstand what 'quality' means in this context. Quality is about the amount of compression applied to the image when the Jpeg is created. Is had very little to do with the quality of the photo. A well exposed image will print pretty much the same from a 1, 2 or 5mb image, especially from a  domestic printer. You might see artefacts on a very high quality printer, but it's really not that mooch different.
    Jpeg quality really comes into play if you use a lossless editor after exporting. This is in the nature of the Jpeg format. It's not an image format at all, it's a compression format attuned to images. Essentially its a special kind of zip file. When you open a Jpeg it's decompressed, so that 5mb Jpeg could contain a file that uses 50mb of RAM.
    However, if you edit the image, then the file is recompressed and that means that some data is thrown away. In theory, edit a Jpeg enough times and you'll have an empty file. To overcome this, when you edit in apps like iPhoto/Photos the original file is not touched. The edit decisions are recorded in the db and only committed to the file when exported.
    Exporting create a new file, containing the same photograph. But the quality of the file - which is the amount of compression applied - can be selected. If you found that the Preview in iPhoto always matched the reported size of the original then either a: that was a fluke or b: the image wasn't edited.
    Medium gives about the same quality as the Preview, that's all.
    The best quality to export at depends on the next use the file gets: if it's going to editing further, then high. Other than that it doesn't make a huge amount of difference.

  • How to export antialiased images of PDF pages?

    Hello all:
    I recently upgraded to Acrobat XI, and I am surprised to see that you STILL cannot export (or Save As) PDF pages to images that are ANTIALIASED!? Does anyone have a simple answer for this that doesn't involve a workflow of more than 5 steps? This is so headslappingly obvious a need that I'm at a loss for what Adobe's engineers are thinking when programming the Save As Image functions...
    I posted this question all the way back in 2009 (see post at http://forums.adobe.com/message/2411677#2411677), and still the answer is the same: when Acrobat saves pages as TIF or JPEG files, they are ALIASED. Who would want that? Who?! WHY?
    It's simply exasperating that Adobe does not include a tiny, little check box that says "Antialiased" in the "Save As TIF / JPEG Settings" dialog box where you set all kinds of parameters like resolution and colorspace....If the exporting process would just include antialiasing, you could set the resolution you desire and YOU'RE DONE.
    But, as far as I can tell, you still have to perform some kind of gymnastic routine like:
    Open the PDF and select all the desired page thumbnails to export.
    Right-click and choose Extract Pages. Make sure to check "Extract Pages as Separate Files."
    Export all the separate PDFs for each desired page into a folder somewhere.
    Open Photoshop and start recording an Action.
    Open one of the PDFs and specify the desired resolution.
    Save it in a desired location in an image file of your choice (TIF/JPEG).
    Stop recording the Action.
    Delete the resulting image you made of the test PDF page to avoid an overwriting error later when running the batch (or check box to overwrite in batch dialog).
    Run the Action in Batch mode on the entire folder of separate PDF pages.
    This is preposterous.
    Adobe, please get the simple things right for everyday low-level users before adding feature bloat to Acrobat with each passing version. Please.

    Hi Dave: Good points about reducing feature bloat and installer footprint taking priority for most users...
    However, if, as you say:
    Acrobat and Adobe Reader are developed as a standalone product family....
    Ultimately, since you can get an AA bitmap of a PDF file by just opening it in Photoshop etc., there is very little commercial demand for Adobe to include that feature in Acrobat.
    then, those people who do not have Photoshop (because AA is designed to be standalone, right?) cannot access antialiasing in exporting PDF images at all! Your point is exactly my point.
    If there is so little demand, then why include Export to Image functionality at all? Just eliminate it completely to save installer footprint space!....But, then, I'm sure you realize people would complain about that immediately, no? So, again, why include it at all when it's only able to export aliased images which virtually nobody is going to want? That's very passive-aggressive toward's Adobe's users. Nobody really benefits from half-baked features only begrudgingly included in software to placate the vocal minority of users who would otherwise miss it. I realize this isn't a huge issue for most users, but I think this points to a larger mentality within Adobe and the software industry in general....
    There is a huge number of people working in corporations that own legacy versions of AA who have not and will not likely subscribe to Creative Cloud! (e.g.: The 100-person architecture/engineering firm I worked at for 10 years had one copy of Photoshop on a community graphics workstation and made everyone use a sign-up sheet to access it.)
    Also, it's nice in theory that PDFs are supposed to be a print format. But, many many times, AA users have to make images (for PowerPoint, blogs, client portals etc.) from PDFs that they did not originally create and do not have the source files to recreate or export as images from their originating software. PDF export to images from Acrobat is their only choice without access to Photoshop.
    And, if AA is truly designed to be a stand-alone product, untethered from the capabilities of the entire suite of functionality across Creative Cloud apps, then a modular plug-in approach to controlling feature bloat would be more appropriate, no?
    For example, AutoCAD is a giant, sprawling application for technical drawing. And AutoDesk has recognized over the years that AutoCAD is used by many industries, each with special needs unneccesary to other industries' user base. So, they've created add-on packs of plug-ins that transform vanilla AutoCAD into AutoCAD for Architecture, Civil Engineering, Electrical Engineering, Bridge Design, Home Building, etc....see where I'm going?
    And Adobe has a far larger installed user base for Acrobat than AutoDesk does for AutoCAD! How about plugins like AA for Technical Publishing, AA for 3D modeling, AA for Presentations?...

  • How to export my image with transparent bkground (CC)

    Before I ask my question, I want to point out I am currently exporting my image by going to File>Export>.PNG>(72PPI+Transparent)
    The issue im running into is; for example when I am exporting text, I am also exporting a certain amount of area around my image. How can I export the exact outline of my image? I have posted a screen shot of what im refering to.
    When I wanted to use my text image for a website I was building I noticed I couldnt get the image to center. I opened the image in paint and noticed I was exporting the area around my image aswell and not just the image itself. Hopefully the screen shots can explain my scenario a little better...
    I would like to export the text outline only. As you can see in paint I am exporting a fixed area around my image.
    ANY HELP IS GREATLY APPRECIATED!!!!!!!! THANK YOU -JON-

    The image was created in Illustrator. I opened the file in Photoshop and I see that area around my image aswell. I would like to just export the highlighted area. When im exporting through Illustrator, I would like to export a tighter area the image, not so much area around

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

  • How to save an image in different format

    i want to save an image in different format (as .jpg ,.gif, .tiff, .png, .bmp) using save dialog box , where format should come in drop box menu "Save as type" in save dialoge box.what to do.???????plz any one suggest me .........

    alok_raj wrote:
    i want to save an image in different format (as .jpg ,.gif, .tiff, .png, .bmp) using save dialog box , where format should come in drop box menu "Save as type" in save dialoge box.what to do.???????plz any one suggest me .........1) Spell words properly. That word is 'please'.
    2) Fix your sticky keyboard for the '?' and '.' keys. Only one of those characters is generally needed to denote a question or the end of a sentence. Two or more often denotes a dweeb.
    I might come back to your question later, assuming I can actually bare looking at that mess long enough to figure out what you want.

  • How to export dynamic images into pdf

    Hi,
    I need to export a image into PDF which we are getting it from DBase. This returns me the image as BLOB and this we are putting it in between the xml tags. I am passing the xml to xsl-fo. While i tried to export the xml data into pdf using xsl-fo, the content is getting exported into pdf but not the image. I am using FOP, and i have added fop.jar, batik.jar, avalon-xx.jar, jai_codec.jar and jai_core.jar to my class path. I am putting my sample xsl and xml here.
    xml:
    <RTFDrugReport>
    <ImagePath>http://www.thomson-pharma.com/tp/images</ImagePath>
    <NewsEdge>
    <NewsItem>
    <StoryId><![CDATA[200705223600.15_2774000daba43be0]]></StoryId>
    <HeadlineText><![CDATA[NeuroLogica's CereTom Supplies On Site Post-Fight Brain CT During De  La Hoya-Mayweather Weekend]]></HeadlineText>
    <ItemTime><![CDATA[05/23/2007 03:22:24 AM EDT]]></ItemTime>
    </NewsItem>
    </NewsEdge>
    </RTFDrugReport>
    xsl:
    <fo:static-content flow-name="xsl-region-before">
    <fo:block font-family="Helvetica" font-size="14pt" text-align="left" white-space-collapse="false">
    <xsl:variable name="imageName" select="concat(//ImagePath,'/logo_thomson_pharma.png')"/>
    <fo:external-graphic src="'{$imageName}'"/>first
    <fo:external-graphic src="url('{$imageName}')"/>second
    <xsl:value-of select="'{$imageName}'"/>thrid
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fourth
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fifth
    <fo:instream-foreign-object src='url("///file:/D:/Customization/collage.jpg")' height="3cm" width="3cm"/>
    </fo:block>
    </fo:static-content>
    Any help would be appreciated.

    hi,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    <b>interactive form has two imp properties:-</b>
    <b>*dataSource</b>
    data source points to the node all whose context attributes will be made available in the interactive form
    <b>*pdfsource</b>
    points to the context attribute which will hold the pdf.
    note that the type of this pdfSorce attribute will be binary.
    if you still have doubts.
    give me your gmail mail id. i 'll send a tutorial.
    with regards,
    -ag.

  • How to Export SSRS report into Excel format using query string

    Hello all,
    I am new to SSRS world.
    Last night i was trying to add a hyperlink  on the SSRS report (.rdl) file, by clicking which we can export the report into "Excel" format, but with no luck.
    Can anybody tell me how to form the hyperlink, so that we can export the report with its current content ( I mean the report content generated by selecting some parameter values)

    Hi Suman85,
    Based on your scenario, you want to add a link on the SSRS report file, and then click it you can export the report into “Excel” format.
    Just as kishan1901 said , you can add a textbox to your report and type in the words “Click here and export the report
    to excel” .Then right-click the textbox and select Properties. Switch to Navigation tab, click the radiobutton of ‘Jump to URL’ and type in the expression ,here is just a example:
     ="http://vyof1884200/ReportServer$youhoo?/My+Adventure+Works/Product+Sales+and+Profitability+by+Month&rs:Command=Render&rs:Format=excel"
    Then preview the report ,you will see
    Click here and export the report to excel 
    when you move the mouse to it ,the mouse will become a hand ,then left-click, it will jump out a dialog box to indicate user whether the excel file should be saved , opened or canceled. 
    I think this is what you want, if you have any further requirement, could you please describe it in more detail? We would give you some resolution or workaround.
    Regards,
    Challen Foo

  • The crawled property of Image width and height - is there a differnce when the image is png format?

    Hi,
    We are indexing file share with images and get the properties of Image Width, Image Height, Image Size (we show it as refiners in SharePoint after make it managed properties). Somehow when the picture is png format - we see only Size but not height and width.
    Is that any setting that should be done in the file share (when i select an image in the windows explorer window i can see all its properties, and it seems that png files do expose the width and height properties
    keren tsur

    Hi  Keren,
    According to your description, my understanding is that when you tried to  crawl file share with images, the ows_ImageWidth and ows_ImageHeight crawled property for PNG  file could not be generated.
    For your issue, I can reproduce your issue in my SharePoint 2013 environment. For a workaround, you can upload the PNG images into SharePoint images Library and they would work fine.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to export all images as 4x6?

    Okay, one of the things I absolutely love about Aperture is the ability to export many different versions for different purposes. As a wedding photographer, there are many different purposes to export for.
    Here's the glitch that I'm running into though. We've now started only giving DVD images to our clients sized as 4 x 6s at 300 dpi. Anything larger, we'd like them to purchase through us to maintain quality.
    I've been trying to figure out a way to get Aperture to export the images we've edited out as these 4 x 6 at 300dpi, but for the life of me, I can't seem to get it right. We crop at 8 x 12 so the ratio is fine, but getting it to come out right it a bugger.
    I can't tell it to export at 4 x 6 because that only works for portrait and not landscape orientation. I can have a different export for each orientation since I have to maintain numbering consistency with our web galleries and their DVD copy.
    I finally ran it out at 50% of original size, but hardly any of the images come out at 300 dpi. Aperture is just not doing everything I assumed it would.
    Any ideas?

    Set up an export preset as follows (from memory, so I apologise for any slight wording errors):
    Duplicate JPG Original size preset and rename something like 6x4@300
    'Size to' 'Fit within Inches' Width 6.0 Height 6.0
    'DPI' 300
    sRGB colourspace
    Because all your images area already cropped to the right aspect ratio (3:2), setting size to 'fit within' will make the longest side 6 inches at 300dpi. It doesn't matter whether they are landscape or portrait. I have done it and it works perfectly.
    If you have different aspect ratios and want to crop to 3:2 then export automatically, that is more tricky, but I don't think that is what you want.

Maybe you are looking for

  • Do I have malware on my macbook?

    Using Firefox 13.0 and 13.01 Have a vague recollection of doing an update of Flash or Java but am not certain. I've been reading a lot of info around this problem - none of it describes the exact problem I am having. 1.   Suddenly I am unable to get

  • Mac Client Log on Window Takes Long Time

    Mac 10.6.x client is successfully joined the Windows Server 2008 based domain. But it's taking too much time (approx. 5 to 10 minutes) to shows the "Others" option (using that log on by AD user) in login window on Mac client. Has anyone idea why it's

  • Multi User Conference Error (Multiple Subnets)

    Hello, I do not have a Mac OS X Server, but I was told that the OS X Server used Jabber and I am using a Jabber server (Windows based). I was hoping to find someone who has general knowledge of what I'm doing to possibly help out. I did originally po

  • NIDaq Windows application not visible in new project

    Hi Everyone,  I am trying to build a VB.NET WPF application using Measurement Studio 2013 for Visual Studio 2012. I followed the walktrough Creating a measurement  studio NIDAQmx application, but I get stuck at the point of creating the project as Vi

  • Bridge CS6 GIF animation view crashes

    Since I don't see another Adobe Labs forum for Bridge CS6, I'm posting here. I was pleased to finally see an animated GIF preview in Bridge CS6. I'm unhappy to report that attempting to view an animated GIF crashes Bridge CS6. I've allowed the app to