Create an ExtendScript to create PDFs...object help

Hi Adobe Framer Community-
Does anyone know which FM Object the Constants.FV_SaveFmtBookWithFm property value constant is a property of? I think it's a property of the Doc object, but I'm having trouble finding documentation on how to work with this and/or to confirm this.
I am working on an ExtendScript script to automate the PDF process from DITA/XML files in FrameMaker 11 and following the directions on pg. 11 of the Adobe FrameMaker 10 Scripting Guide (also outlined very nicely on FrameAutomation.com) to get the notification set up. I'm using Constants.FA_Note_PreSaveDoc here, and I can get an alert to display the iparam (=0), the sparam (=..\GettingStarted.fm), and the object type (=object Doc).
So if the notification tells me the object type is Doc when I perform a Save Ditamap As -> Book 11 with fm components (*.book), how do I determine what (in the Doc object) the Constants.FV_SaveFmtBookWithFm property goes to? As far as I can tell, the Doc object contains the first page, followed by the paragraphs, etc. Does the Constants.FV_SaveFmtBookWithFm property value belong to some other object perhaps?
Thanks for any and all suggestions!
Diana

Hi Rick,
Thanks very much! It sounds like I should try adding the Constants.FA_Note_PreFileType to the switch in my setupNotifications function. I'll try playing around with that first and see if I can make some headway before calling.
When the notification is received, I want my script to copy template files that are either landscape or portrait in orientation into the default directory my ditafm-output.ini file is pointing to for my output files (based on the actual file name of the ditamap being saved as book 11 w/fm components).
Basically, I want to remove user error and have FrameMaker automatically copy the correctly-oriented template files into the default output directory so, for example, when I save my user guide (landscape) I don't let it churn for 40 minutes only to discover I forgot to change the output templates to landscape, and the entire guide (incorrectly) appears in portrait.
I'll see what I can try today/tonight and then will most likely call you tomorrow!
Thanks,
Diana

Similar Messages

  • Error while creating PDF object

    We are using Adobe Interactive Forms with Guided Procedures.  Netweaver 7.0 SP14 (Dual stack Java & Abap).  All was working well it appears until we configured SSL for ADS - don't know for sure if this caused the problem but it is the only change we can identify around the time that our problems began.
    When we attempt to Create an Impersonalized Form we receive the following error -
    Cannot retrieve template structure: Execution ended in an unrecognized state
    When we attempt to test a callable object associated with an interactive form we receive -
    Error while creating PDF object: PDF object could not be created; object returned from ADS is null.
    In both cases the entries in the default trace log are the same -
    Service XMLFormService: Native process (PID=0) /usr/sap/UFD/DVEBMGS02/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 134
    PDF object could not be created; object returned from ADS is null
    com.sap.caf.eu.gp.base.exception.EngineException: PDF object could not be created; object returned from ADS is null
    at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.createInstanceDocument(AdobePDFAdapter.java:542)
    at com.sap.caf.eu.gp.model.iforms.preproc.FormPreprocessor.execute(FormPreprocessor.java:507)
    Like I mentioned earlier this functionality was working successfully in our environment at one time.
    Any guidance in this matter would be greatly appreciated.
    Thanks,
    Joe

    Joe,
    If you originally configured ADS without SSL, I would recommend going back through the ADS Configuration Guide for your NetWeaver stack and make sure all the necessary changes for SSL were made.  I've seen another case where a step was missed in SSL configuration for ADS which caused a form to error.
    If everything looks good based on your SSL configuration, I would recommend creating an OSS Note.
    -Matt

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • Exception: cx_fp_runtime_usage  when creating pdf object

    Hi, experts,
      i found out that every time we call the method create_pdf_object to get an reference of a pdf object, there always a exception occurs, any way to  get ride of it?
    somehow , the pdfobj work even the exception occurs.
      l_fp = cl_fp=>get_reference( ).
      TRY.
          l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
          l_pdfobj->execute( ).
        CATCH cx_fp_runtime_internal
        cx_fp_runtime_system
        cx_fp_runtime_usage INTO l_fpex.
      endtry.

    Hi ,
    I am getting this exception too!
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
        file_table = lt_file_table
        rc = lv_rc
    USER_ACTION =
    FILE_ENCODING =
        EXCEPTIONS
        file_open_dialog_failed = 1
        cntl_error = 2
        error_no_gui = 3
        not_supported_by_gui = 4
        OTHERS = 5.
        READ TABLE lt_file_table
        INTO lv_filename
        INDEX 1.
        cl_gui_frontend_services=>gui_upload(
        EXPORTING
        filename = lv_filename
        filetype = 'BIN' "Binary
        IMPORTING
        filelength = lv_filelength
        CHANGING
        data_tab = lt_rawtab
        EXCEPTIONS
        file_open_error = 1
        file_read_error = 2
        no_batch = 3
        gui_refuse_filetransfer = 4
        invalid_type = 5
        no_authority = 6
        unknown_error = 7
        bad_data_format = 8
        header_not_allowed = 9
        separator_not_allowed = 10
        header_too_long = 11
        unknown_dp_error = 12
        access_denied = 13
        dp_out_of_memory = 14
        disk_full = 15
        dp_timeout = 16
        not_supported_by_gui = 17
        error_no_gui = 18
        OTHERS = 19 ).
    Get FP reference
        DATA: lo_fp TYPE REF TO if_fp VALUE IS INITIAL.
        lo_fp = cl_fp=>get_reference( ).
    For handling exceptions
        DATA: lo_fpex TYPE REF TO cx_fp_runtime VALUE IS INITIAL.
        TRY.
    Create PDF Object using destination 'ADS' (<-- this is how it is
    defined in SM59)
            DATA: lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL.
            lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
    FIELD-SYMBOLS: <ls_rawtab> LIKE LINE OF lt_rawtab.
    Move to XSTRING
    LOOP AT lt_rawtab ASSIGNING <ls_rawtab>.
      CONCATENATE pdf_data <ls_rawtab>-data INTO pdf_data IN BYTE MODE.
    ENDLOOP.
    Set document
            lo_pdfobj->set_document(
            EXPORTING
           pdffile = lv_filename
          pdfdata = PDF_DATA
    Tell PDF object to extract data
            lo_pdfobj->set_task_extractdata(
            EXPORTING
            xsltdata = pdf_data
    Execute the call to ADS
            lo_pdfobj->execute( ).
          CATCH cx_fp_runtime_system.
        ENDTRY.
    Any idea what could be wrong? The ADS connection, when tested with report seems to work fine!
    Regards,
    Poonam

  • How to create a smallest file size pdf from indesign CS4 document

    How to create a smallest file size pdf (suitable for upload to a website) from indesign CS4 document which contains multiple illustrator CS4 illustrations.
    I have chosen the "smallest file size option" but the pdf file is over 30MB, can anyone help please.
    Thank you

    One trick is to
    Set the placed graphics to have a transparency of 99.9% (you can do this with Find/Change and select Objects)
    This is enough to force the graphics throught the Transparency Flattener
    Next set the Transparency Blend Space to RGB (Edit>Transparency Blend Space)
    Next set a custom Transparency Flattner Preset Edit>Transparency Flattner
    Next
    Use File>Export and choose
    Smallest file size
    PDF Compatibility Acrobat 4 (PDF 1.3)
    In Advanced Section - go to transparency and selec the new Flattener Preset you created.
    *this will convert your vectors to raster, but it should reduce your file size

  • "Setup encountered a problem while validating the state of Active Directory: Exchange organization-level objects have not been created, and setup cannot create them because the local computer is not in the same domain and site as the schema master. Run se

    Team,
    I am trying to Install Exchange on my Lab, getting below error
    message.
    The Schema Role is installed on Root Domain and trying to install
    exchange on Child domain.
    1 Root Domain - 1 Child domain. both are located on single site.
    “Setup encountered a problem while validating
    the state of Active Directory: Exchange organization-level objects have not been created, and setup cannot create them because the local computer is not in the same domain and site as the schema master. Run setup with the /prepareAD parameter and wait for
    replication to complete.”
    Followed below articles:
    http://support.risualblogs.com/blog/2012/02/21/exchange-2010-sp2-upgrade-issue-exchange-organization-level-objects-have-not-been-created-and-setup-cannot-create-them-because-the-local-computer-is-not-in-the-same-domain-and-site-as-the-sche/
    http://www.petenetlive.com/KB/Article/0000793.htm
    transferred the schema roles to different server on root domain, still no luck.
    can someone please help me.
    regards
    Srinivasa k
    Srinivasa K

    Hi Srinivasa,
    I guess, you didn't completed the initial setup schemaprep and adprep before starting the installation. You can do it as follows:
    1. Open command Prompt as administrator and browse to the root of installation cd and run Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
    After finishing this,
    2. Setup.exe /PrepareAD /OrganizationName:"<organization name>" /IAcceptExchangeServerLicenseTerms
    3. To prepare all domains within the forest run Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms. If you want to prepare a specific domain run Setup.exe /PrepareDomain:<FQDN of the domain you want to prepare> /IAcceptExchangeServerLicenseTerms
    4. Once you complete all of the 3 steps, install the pre-requisities for Exchange 2013
    5. Finally, run the setup program
    Hope this will help you
    Regards from Visit ExchangeOnline |
    Visit WindowsAdmin

  • I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages

    I've created a PDF form using Adobe acrobat. I created the forms from a PDF that I made using pages and word on Mac running Mountain lion. How do I allow the user of the form to insert JPEG files when filling out the form and how do I allow the user to add more fields or groups of fields as needed.

    The type of form yo're describing is possible if you create it in LiveCycle Designer. It may also be possible in Acrobat, but there are certain restrictions. The type of form is known as a dynamic XFA form. LiveCycle Designer is not available on the Mac, so you'd have to install the software on a Windows machine and learn how to create this type of form. The LiveCycle Designer forum here is a good resource for getting more help.
    Reader 11 now supports creating new pages using templates with a form that you create in Acrobat (Acroform). This requires some JavaScript programming. It also adds support for using a button to display a page from a PDF, which can be an image or anything else a PDF can be. So the user would click a button, be prompted to import a page from an existing PDF, and the button (or a different button) displays it as its icon. This would require the user to convert the image to PDF first, which is relatively easy these days (e.g., using Preview on the Mac, or Word on Mac/Windows). This too involves a bit of JavaScript programming, but it's very simple and straightforward.

  • How to create a link in a PDF pointing to PDF attachment in the same document.

    I have Acrobat Pro 9.3.1 and I want to create a link inside a PDF document which points to the PDF attachment in the same document. Though I'm able to do this with the help of the documentation at http://help.adobe.com/en_US/Acrobat/8.0/Standard/help.html?content=WS58a04a822e3e50102bd61 5109794195ff-7cad.html but the issue is that whenever I click on the link my original document closes and the attached PDF opens.
    Is there a way to open the PDF (attachment) in a new window when user clicks on the link in the parent PDF?

    Hi.,
    Search -  Passing a hyperlink in a Work item  in <<link removed>>
    Accoding to Forum Rules it will not allow to post link., please search it as above.,
    hope this helps u.,
    Thanks & Regards
    Kiran
    Moderator Message: If you know the Rules, why break it?
    Edited by: kishan P on May 26, 2011 11:11 AM

  • I want to create a Pdf file - do i misunderstand the product?  I thought i could create a PDF similar to excel or word file or do i have to create there and convert to PDF? I bought the pack for $89.PDF Pack!

    I want to create a Pdf file - do i misunderstand the product?  I thought i could create a PDF similar to excel or word file or do i have to create there and convert to PDF? I bought the pack for $89.PDF Pack!

    Hi Brian,
    You can create it in Word or excel and then you can Convert it into .pdf Format
    Here's a feature list that depicts benefits of PDF pack: Convert Word to PDF, Convert PDF to Word & Merge PDFs | Adobe PDF Pack
    Please revert back if you have any other questions or need any help.
    Regards,
    Rahul

  • How do I create working hyperlinks in embedded PDF email attachments.

    Hi,
    I have created a PDF with a working hyperlink in it leading to my website. The link works when viewing the PDF in acrobat but when I put it into the message of my email the link is no longer clickable.  I'm sure I've seen this done before but have no idea how to make it work.  I have tried various things, can anyone help?
    I am using In-design Student edition CS4 to create hyperlinks and export to PDF Acrobat reader 9. I would like to embed the pdf with working links into an Outlook 2003 message but could use Gmail or hotmail as alternatives.
    Thanks.

    Pages '09 ≠ Pages 5.01.
    You have the bugs and reduced features of Pages 5, the version you recently installed.
    Pages '09 should be in your Applications/iWork folder.
    Use that instead.
    Peter

  • How to create an ods after creating info objects?

    Hi,
    Please Explain me How to create an ods after creating info objects with all screenshots in BW 7.0?
    Thanks,
    Jini

    Hi Jini,
    In the create screen u will find some settings related information which u need to check and then there are key fields and data fields option.
    In Key field u need to include those objects which should make ur ODS Key fields. and then rest of the fields in the data fields.
    For setting related information u can search in help.sap.com or even on SDN threads.
    Thanks,
    Nagesh.

  • How to create authorization in BI 7.0 objects

    Dear Friends,
    how to create authorization in BI 7.0 objects. Pls any body help. tghjis is morevhelpful for me
    Regards
    Ramana

    give the user name to whom you have to give the authorizations.
    maintain user then you can see the roles tab where you can assign the roles for the user.
    for these roles you can assign the authorization objects. when you double click on the roles you can get the maintenance of the role where you can edit or give the authorization objects for that role.
    some example for the authorization objects are:
    S_RS_ADMWB (Datawarehouse workbench-objects), S_RS_IOBJ(Datawarehouse workbench-Infoobject), S_RS_DS(Datawarehouse workbench-Datasoure for release greater than 3.X), S_RS_DTP(Datawarehouse workbench-DTP's) etc
    You can edit these authorization objects like providing them display or create or modifying authorizations
    Go through the below link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/659fa0a2-0a01-0010-b39c-8f92b19fbfea

  • How to create Webi Reports with SAP BW Objects

    Hi,
    I have no knowledge on creating webi reports with SAP BW Objects like (InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject).
    As per my understanding Webi reports can be developed with universe which is created on BEx Queries or OLAP BAPI interface, unfortunately i don't have BEx App installed. So, i have to create OLAP universe in this case.
    Here my question is can we create universe with all the available BW objects like InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject.
    Please, Can anyone suggest a solution
    Thanks,
    Siva
    Edited by: siva@chinni on Apr 25, 2010 4:45 PM

    Hi,
    Yes we can create WebI on the top of SAP Objects - InfoCube, DSO, Characteristics etc...
    But we have to keep in mind that for WebI we must create Universe.
    When we create universe we make direct connection with SAP Objects but we get less functionality - such Calculated Key Figures, Restricted Key Figures, formulas etc. Now you have to achieve all these missing components at Universe Level and at WebI level.
    If you are creating your universe on the top of DSO and InfoObject then make sure they set for reporting.
    There are some online documentation which tells that what functionality you can achieve.
    Check the following document to have a bird's eye view.
    [http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/100369a7-033e-2c10-94a4-f254f8578153?quicklink=index&overridelayout=true]
    There is another document in PPT which I could  not find online. It is very helpful document. It is:
    II. SAP BusinessObjects BI Solutions XI 3.1 and SAP NetWeaver BW 7 Current risks, approach, and mitigating strategies for Client Partners, License Sales, and Consulting Delivery Managers
    Partner Enablement Seminar
    Regards,
    Bashir Awan

  • Trying to create a fillable, savable, emailable PDF!!

    I have been able to create a fillable, savable, emailable PDF, but when I have my peers send me the response via email it is unviewable by me.  Can you please help?!?

    What kind of file are you getting back (assuming Reader) -- PDF, FDF, or XML? If one of the 2 latter file types then use the Forms>Manage Data>Import after you open the basic form in Acrobat.

  • Create Outline Of CS5 Roto-brushed Object?

    I was wondering if there was a way to create an outline of an moving object that has been rotobrushed, much like the stroke option in Photoshop? Thanks for you help.

    Mylenium's suggestion is a good one. If you want to see a few more options, see this thread:
    http://forums.creativecow.net/thread/2/858260

Maybe you are looking for

  • Grayed out agent report and notification through mail.

    Hi Experts, We have a shared platform for more 10 customers and using SCOM 2007r2 , It has become difficult to track all the grayeout agents and not monitored agents. i need a help in making this thing automated by powershell or any mean , because no

  • My Photosmart C7280 All-in-one Printer no longer turns on properly. Msg B83FCB56 What do I do?

    My C7280 no longer turns on properly.  It only displays a message - B83FCB56 - on the message screen and the light below the camera icon in the lower right corner flashes rapidly.  No combination of key pressing bring forth any response.  Holding dow

  • [SOLVED] Thinkpad T61: No VGA out

    Using KMS (kernel mode setting) ... no xorg.conf. xrandr doesn't even see the VGA cable as plugged in. I see notes on /proc/acpi/ibm/video on ThinkWiki ... mine looks like: # cat /proc/acpi/ibm/video status:         supported lcd:            enabled

  • Why do we have to pay to use the iCloud

    Why do we have to pay to use the iCloud isn't it free?

  • EJB vs web services - architecture question

    I am about to be involved in architecting a new system that will have a very large amount of business rules. The application will be 3-tiered with the client application being a swing based java desktop application making requests of objects (ejb or