How to generate transparent preview of the document?

Hi all,
I would like to generate trsansparent preview of an document in PNG file. Normal (not-transparent preview) I am doing by JavaScript like it is described below:
var myDocument = app.open(File(app.scriptArgs.getValue("documentPath")));
myDocument.exportFile(ExportFormat.jpg, File(app.scriptArgs.getValue("thumbnailPath")), PDFExportPreset.acrobatCompatibility);
myDocument.close(SaveOptions.no);
The result is normal JPG file. But I would like to get a transparent image. How can I do this?
Thank you for all information!

Hmm could you give any example of code? According to the scripting reference there is nothing like "ExportFormat.PNG_FORMAT" - I cannot even find this in Google. On official Adobe webpage in the scripting reference I can find:
Name Description Value
TAGGED_TEXT
Exports to a tagged text file with a TXT extension.
1416066168  =                 'Tgtx'
PDF_TYPE
Exports to PDF format.
1952403524  =                 't_PD'
EPS_TYPE
Exports to EPS format.
1952400720  =                 't_EP'
RTF
Exports to rich text format (RTF).
1381254688  =                 'RTF '
SVG
Exports to SVG format.
1398163232  =                 'SVG '
SVG_COMPRESSED
Exports to SVGZ format.
1398163267  =                 'SVGC'
TEXT_TYPE
Exports to text (TXT) format.
1952412773  =                 't_te'
XML
Exports the document's tagged content to XML.
1481460768  =                 'XML '
JPG
Exports to JPEG format.
1246775072  =                 'JPG '
INDESIGN_INTERCHANGE
Exports to InDesign Interchange (INX) format.
1229871136  =                 'INX '
INDESIGN_SNIPPET
Exports to InDesign Snippet (INDS) format.
1936617588  =                 'snpt'
INCOPY_CS_DOCUMENT
Exports to InCopy CS document (INCD) format.
1702126436  =                 'etcd'
INCOPY_DOCUMENT
Exports to InCopy document (INCX) format.
1702126456  =                 'etcx'
and this is all (http://www.indesignscriptingreference.com/CS3/JavaScript/ExportFormat-enum.htm). When I am trying to use the code on a group of objects, it is failing. The code:
var myDocument = app.documents.add();
myDocument.pages.item(0).place(File(app.scriptArgs.getValue("snippetPath")));
g = myDocument.pages.item(0).groups.add (myDocument.pages.item(0).allPageItems);
g.exportFile(ExportFormat.PNG_FORMAT, File(app.scriptArgs.getValue("pngThumbnailPath")), PDFExportPreset.acrobatCompatibility);
myDocument.close(SaveOptions.no);
And the error:
Error Number: 55
Error String: Object does not support the property or method 'PNG_FORMAT'
Line: 6
Source: g.exportFile(ExportFormat.PNG_FORMAT, File(app.scriptArgs.getValue("pngThumbnailPath")), PDFExportPreset.acrobatCompatibility);

Similar Messages

  • How to generate PNG file to the disk folder by IBOT?

    Is there a piece of code in JavaScript on how to generate PNG file to the disk folder by IBOT?
    thanks a lot

    Please disregard this message. The information below is only semi-accurate. When I get some kinks worked out I'll edit this again. -Bill
    FYI,
    Don't really know if I'm adding anything useful but here it is. I use NetBeans and I simply added an images folder so now I have my package (deckofcards) and a sub package deckofcards.images.
    The image:
    back: Image {
                url: "{__DIR__}images/B.JPG",
                backgroundLoading:true
                placeholder:bind placeholder
            };works and the value of "{__DIR__}images/B.JPG" becomes
    <CARD backUrl="jar:file:/C:/Users/Bill/Documents/NetBeansProjects/DeckOfCards/dist/DeckOfCards.jar!/deckofcards/B.JPG">
      ...when I marshal. That string (backUrl) will unmarshal correctly and can be use in the url variable to display and image too.
    -Bill
    Edited by: bthayer on Feb 21, 2009 6:04 AM

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • Why no longer appers a preview of the document i created?

    in others versions i can see a preview of the document i created, and now i only see the pages icon in the preview document

    Does it work if you disable/uninstall Google Toolbar - to see if that's the problem?

  • How to enable Print Preview with the Envy 5530

    How to enable Print Preview on the Envy 5530

    Hi,
    A print preview is not offered by the current HP software as older software versions provided.
    A preview is only available if the application you are printing from include a such, it is not provided by the printer driver itself.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How to configure which changes in the document triggers Event Handler again

    Hi Experts
    Due to some reason after creation of Purchase Order, the event handler is not created in EM system. Now is there any way to resend this PO to EM? For example, is it possible to trigger Event Handler by changing some field in PO? If it is possible that way, Could you guide how to configure which changes in the document (PO/SO/Delivery/Shipment) can trigger Event Handler in EM system?
    Thanks
    Ravi

    Hello Ravi,
    if you change the PO Header/Item the respective EH  should be created if the Relevance condition is fullfilled.
    I'm not sure if it also works in the case that you change the PO Header and EH for PO Items will be created.
    Best regards,
    Steffen

  • I have just bought a Panasonic Lumix compact camera. Aperture and Preview can't open the RAW files from this camera. Panasonic recommend downloading 'SYLKPIX Developer Studio SE' to save RAW file formats.How can Aperture and Preview read the files?

    I have just bought a Panasonic Lumix compact camera. Aperture and Preview can't open the RAW files from this camera. Panasonic recommend downloading 'SYLKPIX Developer Studio SE' to save RAW file formats.How can Aperture and Preview read the files?

    Either use 'SYLKPIX Developer Studio SE' to develope the RAW files and to save them in another lossless format like TIFF, or try if Adobe's free DNG Coverter can convert your Lumix RAW files to dng. Then import the dngs. This way, your files will still be RAW files.  This works (most times) for my Lumix FZ28.
    Adobe DNG Converter 8.3  http://www.adobe.com/support/downloads/detail.jsp?ftpID=5695

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • In print preview - how can you have multipage previews of the document - 1 - 2 - 3- 6 - 12 page preview and so on so that you can see if the document is ok to print?

    WINXP - In Explorer you can have multi-page print previews from 1, 2, 3, 6 upwards to check and confirm that the document will print correctly to your needs - and does this across the screen format as opposed to down the page, so that you can see all 12 pages on your screen to quickly see that the print percentage is correct and all pages fall into the print area and so on - how can you set this up with Firefox, because printing with Firefox is so unstable, you don't know what to expect when printing a document or web page?

    No what I mean is how can you see many pages across the screen without having to scroll like in explorer where you can see 12 or more small pages on your screen without scrolling down, like tiled across your screen as opposed to vertical down the page. Thanks

  • How do I save changes to the document

    How do I save the text changes

    Hi Janie,
    What sort of changes have you made? All changes made to the document are automatically saved once you close the document.
    Shradha

  • JEditorPane: how to replace small parts of the document?

    Hi
    Im trying to create an application that will allow two people to type into two different JEditorPanes, but have the two people essentially editing the same document. So if one person types someting into thier frame, I want that modification sent to the other frame as well.
    The problem I've come across is how to make changes to the contents of the frame without interfering with the person whos trying to type into it. That problem boils down to how do you replace only a small part of the document whithout taking control of the users caret?

    Hopfully I got your problem right. To change only small parts of the EditorPane's document should not be the probelm you can get it with EditorPane.getDocument(). But I think you have to take control over the caret, because the when user 1 has finished editing and sends the doc to user 2 who is editing the doc, user 2's caret position will change because the document length has changed.
    The easiest way would be to add an input area (TextArea) for each user where they can type theit text and than to add the text into the document when they press enter, so you don't have the trouble with te caret position. If you don't want to do this then you could try that: the input of the users is cached while they are typing (not changing the doc) till they press enter. Then the doc is send to the other user, the users doc in the pane is updated and his current typing is added to the end of the new received doc. You can figure out the correct position by doc.getLength() and set the new caret position to doc.length + currentTyping.length
    Hope that helps
    Eryk

  • How to edit / remove watermarks after the document is digitally signed

    how to edit / remove watermarks after a document is digitally signed ?

    Hello Dave,
    Thank you for your reply.
    I have 2 things to mention.
    (1)It is possible to do so if I open the document in Acrobat 8.
    (2) Is there any work around solution for X-pro ?
        I create a draft document and send it for approval with “draft” watermark.
        I receive it back after approval with the approver’s signature.
      Then I have to remove the “draft” watermark.
      How can I do it?
    Any suggestion will be appreciated
    Thank you.
    Parag Bhagwat

  • How to configure DMS to create the document of WBS and Netwrok.

    1、Microsoft office 2007: how to assign to  WBS?
    2、the other document type like rar. how to assign to WBS?
    Please explain me all the steps to be required.
    Thanks in advance!

    Hi,
    Use following basic steps to configure the DMS for WBS & Network Actvities.
    1) SPRO / IMG -> Cross - Application Component -> Document Management System -
        > Control Data -> Define Number Ranges for Document Numbers.
        Here you can use Internal or External Number Range for saving the documents.
    2) SPRO / IMG -> Cross - Application Component -> Document Management System -
        > Control Data -> Define Document Types
        Here you have to add various Document Types (must be 3 char)  as per your requirement
        For Example.:
        COM     Comparitive Statemnt
        MMB     Measurement Book
        MPR     Monthly Work Proggs
    3) SPRO / IMG -> Cross - Application Component -> Document Management
        System -> Control Data -> Define Document Types -> Define Document Status. ( Not Mandatory )
        Document status is used to show the current status of yr document.
        For Example:
        IW - In Work
        RE - Released
        CR - Change Request
        AR - Archieved
    4) SPRO / IMG -> Cross - Application Component -> Document Management
        System -> Control Data -> Define Document Types -> Define Object links.
        If you want to attach the documents to WBS Element & Network Actvity add following Objects by     using above menu path
    PRPS  - WBS Element
    VORGNET - Network
    If you are going to store the DMS documents in same R/3 Server follow the below menu path, here you must take help of your BASIS Consultant
    5) SPRO / IMG -> Cross - Application Component -> Document Management
        System -> General Data -> Define Data Carrier.
    If you are going to store the DMS documents in Seperate DMS Server follow the below menu path, here you must take help of your BASIS Consultant
    6) SPRO / IMG -> Cross - Application Component -> Document Management
        System -> General Data -> Settings for Storage Systems > Maintain Storage System & Maintain Storage Category
    7) SPRO / IMG -> Cross - Application Component -> Document Management
        System -> General Data -> Define Work Station Application
    In addition of above go through below sap help link
    http://help.sap.com/saphelp_46C/helpdata/EN/c1/1c31a243c711d1893e0000e8323c4f/frameset.htm
    By using below link you can able to configure DMS.
    http://help.sap.com/saphelp_46C/helpdata/EN/6f/72369adc56d11195100060b03c6b76/frameset.htm
    Note: Hence forth if you have any DMS realted query, then you must post in sdn DMS Forum which is dedicated for DMS only.
    Hope its useful.
    Regards
    Sandeep

  • How to generate current time in the format yyyy-mm-ddThh:mm:ssZ in the xslt

    Hello,
    i am tring to generate current time in the format yyyy-mm-ddThh:mm:ssZ in my xlst file.
    the following info are necessary,
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:attribute name="generationDate"><xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy-mm-dd hh:mm:ss'), java:java.util.Date.new())"/></xsl:attribute>
    but java SimpleDateFormat doesnt support yyyy-mm-ddThh:mm:ssZ.
    thanks in advance.

    Hi wwuest,
    I use the following code to generate such a date format :
              try {
                   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                   Date date = sdf.parse(strDate);
                   sdf.applyPattern("yyyy-MM-dd'T'hh:mm:ss");
                   strDate = sdf.format(date);
              } // catching the parse exceptionMaybe you could try this method and see if it pass through xsl with :
    new SimpleDateFormat("yyyy-MM-dd").applyPattern("yyyy-MM-dd'T'hh:mm:ss'Z'")Bye

  • How to expand all frames in the document using a script?

    Hi,
    I have used the ImageCatalog script to place a 1000+ images of different dimensions in the document. On the ImageCatalog dialog box, I have unchecked the Proportional and Frame to Content option to place the images in 100%. I am looking for a way to expand all the graphic frames to reveal all the images it placed on the document. When you double-click the bottom-right handle, it would expand the frame to see the full content. (it would time consuming when you do this one by one)
    Let me know. Thank you very much.

    If I understand you correctly, you placed the images without using Fit Frame To Contents and now you are trying to rectify this? Do you get that making just the frames larger, at this point, may make them overlapping others? If that's going to be a problem, just run the script again but this time with the correct settings ...
    Anyhow. Typing on my iPad so I can't check; but something in the lines of
    g = app.activeDocument.allGraphics;
    for (i=0; i<g.length; i++)
      g[i].fit (FitOptions.FRAME_TO_CONTENT);
    See http://jongware.mit.edu/idcsjs5.5/pc_Graphic.html#fit

Maybe you are looking for

  • Help with this crash report?

    Can anyone give me a hand with this? Safari crashes almost instantly after startup. Date/Time: 2006-11-18 07:59:59.310 +0100 OS Version: 10.4.8 (Build 8L127) Report Version: 4 Command: Safari Path: /Applications/Safari.app/Contents/MacOS/Safari Paren

  • Why does PSE4 give me an error message when trying to download

    I used to have this installed on my older mac mini 10.6.8 and it worked fine, then my computer was getting slow, so I had it wiped and everything reinstalled so it works again, but now I can't put photoshop elements 4 back on it. Also, when I try to

  • JEditorPane + XML + XSLT

    Hello, i have a little problem with a JEditorPane. Well, i have a XML file with XSLT and i want to put it in a JEditorPane. The problem is that i can see the XML but without the Stylesheet. I can't understand what is wrong. Please if you have any ide

  • Sub operations in routing

    hi sap gurus, while creatng routing we want to create suboperations for the finished product. pls tell the flow path how to create suboperations with transaction code. regards and thaks in advance muralidhar.t

  • "Check in All" Bug?

    My company has been using the InDesign/InCopy workflow for the past three years. We upgraded to CS3 several months ago and have begun to see a problem with the "Check in All" feature. What we are experiencing is that when you have several stories che