CreateWordHiLite returns null on Arabic pdf document

Greatly appreciated if someone in this forum can help to resolve the issue that I am facing. I am using Visual C# to do some stuff with a pdf document where I want to create a list of all words in a page. I am using InterOp Services to access the api exposed the the acrobat.tlb library. Here is the code snippet I am using:
            CAcroPDPage page = (CAcroPDPage)document.AcquirePage(pageNumber);
            CAcroHiliteList hitelite = new Acrobat.AcroHiliteListClass();
            hitelite.Add(0, 32767);     // create a hilite that includes all possible text on the page
            CAcroPDTextSelect selectedText = (Acrobat.CAcroPDTextSelect)page.CreateWordHilite(hitelite);
On the last line the CreateWordHilite is returning null, meaning the method failed on an Arabic pdf file. If I run the same code on an English document, the code works fine.
Regards.

Hi there,
Thanks for the response. I narrowed down the problem further. In fact a few of the pages are giving trouble. Now I'm concentrating on the pages that are giving me the word collection but I'm facing a separate issue.
The CAcroPDTextSelect object is now having values but when I am using the GetText(iNum) method and examining the content of a particular word, it does not show the Arabic word. For example one of the word looks like this: "çáçñý: " . Do I have to use a different sdk for non-latin character sets?
Regards.

Similar Messages

  • Returning to Safari opening pdf documents instead of a third party apps

    Does someone know how to return to the original settings where safari opens the pdf documents, beacuse adbobe webviewer is blocking this feature, and I'd realy like the old days where safari opened them, also I can;t seem to uninstall the adobe plugin?
    Can someone help?

    You're welcome. Glad to help.
    Mahalo for the and Aloha from Big Island.

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

  • Submit Email returns filled in PDF document

    I has created a fill in form for my website with Adobe Acrobat Professional 8.0, Forms Function which take me to LiveCycle Designer to create the form. When I insert the SUBMIT EMAIL button the guide says I can get either the data back or a filed in form as an attachment. The default condition seems to be just getting the data back as an XML file.
    What I want to get back is the filled in form as an attachment. Each response is "one-of-a-kind" and I don't need to manage the data, merge the data, or consolidate the data. I just need to view the completed form and be able to print it off.
    How do I change the default setting in SUBMIT EMAIL from data to filled in form attachment?

    Thank you for your quick, and helpful response.
    I modified my form per your suggestions, sent it to Europe and they were
    able to submit it without an error message!
    Of course, I received duplicate responses, but at least it worked error
    free.  Thank you.
    Has anyone ever located the root of the Adobe/Lotus Notes problem to
    completely eliminate the duplicate address?
    Lori Kassuba <[email protected]>
    04/23/2009 09:35 AM
    Please respond to
    [email protected]
    To
    Kevin Lucas <[email protected]>
    cc
    Subject
    Submit Email returns filled in PDF document
    This problem has come up in other forum and it's believed to be a bug in
    Lotus Notes. One workaround was to put a space next to the comma after the
    address.

  • Returning PDF document

    Hi all, I have been stuck on this problem for long. Please advice
    I have a servlet that returns a PDF document via streaming. I want the client to open the PDF within the browser using the embedded Adobe PDF Reader rather than having a dialog promoting for download. I am using firefox on Windows.
    I have my servlet to do the following:
    set mime type to application/pdf
    add content-disposition header with value "inline; filename=file.pdf"
    (no I didn't add a length, because it may not be available)
    then starts streaming the data
    any suggestions are welcome.
    thanks

    kittycat_MORAWL wrote:
    I have my servlet to do the following:
    set mime type to application/pdf
    add content-disposition header with value "inline; filename=file.pdf"
    (no I didn't add a length, because it may not be available)
    then starts streaming the data The content length is in some cases important though. I've seen cases in MSIE that it keeps loading forever or that the target application complained that the file was corrupted. For the remnant it looks fine. But finally you're also dependent on the client configuration. The client may for example have configured its webbrowser to force to open PDF files in an external application instead of inline.
    What exactly is the problem you're struggling with by the way? Didn't the file open inline as expected or so?

  • Hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    <moved from Downloading, Installing, Setting Up to Creating, Editing & Exporting PDFs>

  • Hi. I use ExportPDF. Does Adobe support pdf documents written in Arabic Language? Does it change the documents in arabic language into microsoft word??

    I have PDF documents written in Arabic. I would like to convert it into Microsoft Word. Unfortunately I am unable to do this. Please help me in my quiery. Does Adobe PDF converter support Arabic font??

    Hi Yousif04,
    If your document has fonts attached you can convert to Microsoft word that is quite possible. But if the fonts were used to create the file arent present in the system the Microsoft word may not be able to retain the layout of the document.
    There shouldn't be any problem for ExportPdf service to convert your document.
    To check fonts used for that PDF. Open PDF either in Reader or In Acrobat. Click on File go to Properties. Document Property windows will appear there is Fonts Tab. You will the fonts embedded for the document.
    Regards,
    Ajlan Huda.

  • Convert arabic word document to pdf using Inbound Refinery

    convert arabic word document to pdf using Inbound Refinery creating problem. After pdf convert the converted pdf changes to left to right instead of right to left.

    In that case you will need to look at the Adobe LiveCycle ES PDF Generator product, as it is licensed and suitable for server-based conversion.  Adobe Acrobat can not legally be used in the environment that you describe.

  • UCCX XPath on Get XML Document Data Step always returns null

    Hello,
    Can someone tell whats wrong with my XPath, because it always returns null. I have tried different variations and nothing. I'm using UCCX 7.0
    XML
    <?xml version="1.0" encoding="utf-8" ?>
    <GetManagersResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.labdomain.com/">
      <ClaimManagersList>
        <X_CLAIM_MANAGER>
          <ClaimManagerUserName>test</ClaimManagerUserName>
        </X_CLAIM_MANAGER>
      </ClaimManagersList>
    </GetManagersResult>
    XPATH
    "/descendant::GetManagersResult/child::ClaimManagersList/child::X_CLAIM_MANAGER/child::ClaimManagerUserName"
    During debug, this is the value of the xml document when it reaches the Get XML Document Data step:
    TEXT[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<GetManagersResult xmlns=\"http://www.labdomain.com/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n  <ClaimManagersList>\r\n    <X_CLAIM_MANAGER>\r\n      <ClaimManagerUserName>test</ClaimManagerUserName>\r\n    </X_CLAIM_MANAGER>\r\n  </ClaimManagersList>\r\n</GetManagersResult>]

    It's your XML namespace in the root element.
    First off, I have never seen the CRS Editor play nice when XML namespaces are involved.
    Secondly, with your namespace in place, not even a generic xpath expression tester can find your data.  See attachements.
    I think that if you find a way to either: not send, or remove the namespace from your document, your xpath expression will work.
    With Namespaces
    Without Namespaces

  • Get XML Document Data step always returns NULL

    Hi All,
    I was hoping someone might be able to help with this.
    I'm writing a holiday script, it uses XML to check whether the date is a holiday or halfday. XML below
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Holidays>
      <Holiday Date="1/1/2012">Holiday</Holiday>
      <Holiday Date="3/1/2012">Halfday</Holiday>
      <Holiday Date="6/1/2012">Holiday</Holiday>
      <Holiday Date="5/4/2012">Halfday</Holiday>
      <Holiday Date="6/4/2012">Holiday</Holiday>
      <Holiday Date="8/4/2012">Holiday</Holiday>
      <Holiday Date="9/4/2012">Holiday</Holiday>
      <Holiday Date="30/4/2012">Halfday</Holiday>
      <Holiday Date="1/5/2012">Holiday</Holiday>
      <Holiday Date="17/5/2012">Holiday</Holiday>
      <Holiday Date="27/5/2012">Holiday</Holiday>
      <Holiday Date="6/6/2012">Holiday</Holiday>
      <Holiday Date="23/6/2012">Holiday</Holiday>
      <Holiday Date="6/4/2012">Holiday</Holiday>
      <Holiday Date="3/11/2012">Halfday</Holiday>
      <Holiday Date="25/12/2012">Holiday</Holiday>
      <Holiday Date="26/12/2012">Holiday</Holiday>
      <Holiday Date="19/10/2012">Halfday</Holiday>
    </Holidays>
    However when I debug the script the result of the Get XML Document step always returns null.
    Xpath work great in notepad++
    My code is attached, anyone with any pointers?
    Regards,
    Andy

    Your XPATH of:
    "/Holidays/Holiday[@Date='+DateString+']"
    Needs to be:
    "/Holidays/Holiday[@Date='"+DateString+"']"
    Good luck and happy scripting!
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Opening a pdf document in a new window on click of commandLink in ADF

    Hi,
    I am having a command link in my page and on click of that i am calling a webservice and getting the contents as bytes and writing the contents to the response outputstream. And i followed the below given steps. Everything works fine and i am getting the PDF displayed in new window. But i am getting a pop up blocker issue in IE and Firefox. Is there any workaround for that?
    1: open a dialog , and get url of servlet
    <af:commandButton text="Dialog Report" id="cbdialogReport"
    action="#{ReportBean.cbdialogReport_action}"
    useWindow="true" windowHeight="1000"
    windowWidth="1100"/>
    public String cbdialogReport_action() {
    try {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext =
    facesContext.getExternalContext();
    HttpServletRequest request = (HttpServletRequest)externalContext.getRequest();
    String strUrl = request.getRequestURL() + "";
    int iPosition = strUrl.indexOf("/faces/");
    strUrl = strUrl.substring(0,iPosition+6) + "/doreport";
    this.reportURL = strUrl;
    System.out.println("strUrl=" + strUrl);
    //System.out.println("request.getRequestURI()= " + request.getRequestURI());
    return "dialog:ReportDialog";
    } catch (Exception ex) {
    System.out.println(ex);
    return null;
    2:diaolog
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelStretchLayout id="psl1">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:inlineFrame id="if1"
    source="#{ReportBean.reportURL}"/>
    </f:facet>
    <f:facet name="start"/>
    <f:facet name="end"/>
    <f:facet name="top"/>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    3: create a serlet
    package com.pansoft.myerp.servlet;
    import com.pansoft.myerp.view.Function;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import net.sf.jasperreports.engine.JasperRunManager;
    public class doReport extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    /**Process the HTTP doGet request.
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    try
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext =
    facesContext.getExternalContext();
    //String strUrl = request.getRequestURL() + "";
    //System.out.println("URL: " + strUrl);
    response.setContentType("application/pdf");
    response.addHeader("Content-Type", "application/pdf");
    //response.setHeader("Content-Type", "application/pdf");
    //response.addHeader("Content-Disposition", "inline;filename=Report.pdf");
    Function function = new Function();
    Connection conn = function.getCurrentConnection();
    OutputStream outputStream = response.getOutputStream();
    InputStream reportStream = externalContext.getResourceAsStream("/Report/rptChar.jasper");
    JasperRunManager.runReportToPdfStream(reportStream, outputStream, null, conn);
    outputStream.flush();
    outputStream.close();
    //facesContext.responseComplete();
    }catch(Exception ex) {
    System.out.println("doGet():" + ex);
    Thanks!
    Ram

    I think you can't anything do about it if your popup blocker prevents the page to open.
    Some such blockers allow to add white lists of url which are allowed to open popups.
    Timo

  • Inserting text to Acrobat PDF document, not able to create PDEText.

    Hi ,
    I have created a plugin for Acrobat, On press of MyPlugin's 'Insert' button it has to add the text to the document.
    Eg: If there is a Active PDF document, which contains a text "Hello" in it. I want to insert "World" (i.e, the document should have "Hello World") when i click 'Insert' button.
    I am writing the below function for this:
    static void InsertCitationText(PDDoc activePDDoc,PDPage pdPage , int pgNum , int pgOffset)
          PDEContent volatile pdecontent = NULL;
          PDPage pdPage = PDDocAcquirePage (activePDDoc, pgNum);
          pdecontent = PDPageAcquirePDEContent (pdPage, gExtensionID);
        Here I have to create PDEText pdeText and assign "World" to it. How do i do this??
         I tried to do this in TextCreate function by looking into the sample plugin snippets but its not creating the text , when i debug and see the value value of 'pdeText' its giving,  "pdeText not found".
               PDEText pdeText = TextCreate();
          PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));
          /* Put the contents back in the page */
          PDPageSetPDEContent(pdPage, gExtensionID);
          /* Clean up */
          PDPageReleasePDEContent(pdPage, gExtensionID);
    static PDEText TextCreate()
                PDSysFont sysFont=NULL; /* Used by PDEFont creation */
                PDEFont pdeFont=NULL; /* Reference to a font used on a page */
                PDEFontAttrs pdeFontAttrs; /* Font attributes */
                ASFixedMatrix textMatrix; /* Transformation matrix for text */
                PDEColorSpace pdeColorSpace; /* ColorSpace */
                PDEGraphicState gState; /* Graphic state to apply to operation */
                // Create a PDEText object
                PDEText pdeText = PDETextCreate();
                // Text to write to the PDF
                char *Title = "World";
                // Get system font
                sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
                // Initialize the font descriptor then create the font reference.
                memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
                // Find the matching system font.
                pdeFontAttrs.name = ASAtomFromString("Verdana");
                pdeFontAttrs.type = ASAtomFromString("Type1");
                //Get system font
                sysFont = PDFindSysFont(&pdeFontAttrs,sizeof(pdeFontAttrs),0);
                pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
                // Create a DEGraphicState object and set its attributes
    pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString("DeviceGray"));
                memset(&gState, 0, sizeof(PDEGraphicState));
    gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
                gState.miterLimit = fixedTen;
                gState.flatness = fixedOne;
                gState.lineWidth = fixedOne;
                // Create an ASFixedMatrix object
                memset(&textMatrix, 0, sizeof(textMatrix));
                textMatrix.a = Int16ToFixed(24);
                textMatrix.d = Int16ToFixed(24);
                textMatrix.h = Int16ToFixed(1*72);
                textMatrix.v = Int16ToFixed(2*72);
                //Create a PDEText Object
                pdeText =  PDETextCreate();
    PDETextAdd (pdeText, kPDETextRun, 0,(ASUns8 *)Title, strlen(Title), pdeFont, &gState,
                sizeof(gState), NULL, 0, &textMatrix, NULL);
                PDERelease ((PDEObject) pdeColorSpace);
                PDERelease ((PDEObject) pdeFont);
                return pdeText;
    Is there anyway i can add the "World" (as PDEElement) to document so that i can use in this function "PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));"  ???
    Or
    Should i use the above 'TextCreate()' huge function to create PDEText(PDEElement). If i have to use this method why the PDEText is not getting created? Am i missing something in the above function ??
    Please someone help me out, Thanks in advance.
    Regards,
    Chetan.

    Hi Irosenth,
    I will give a try for this, we must try to certain extent who knows we may Succeed. We must noe give-up easily.
    You have not said this is impossible, but you say this is difficult. Rite ??
    If you give me support, i dont think it would be difficult.
    First i will try to insert a text in a blank page.This is possible rite ??
    I saw a discussion in this forum, http://forums.adobe.com/message/2092443#2092443 , this is 2 years old. This guy has inserted the text into PDF document.
    I refered this link and try to insert a text in Active PDF document but text is not getting inserted into it.
    Please let me know what i am making wrong in the below function,
    static void InsertCitationText(PDDoc activePDDoc, int pgNum , int pgOffset)
          PDEContent volatile pdecontent = NULL;
          PDPage pdPage = PDDocAcquirePage (activePDDoc, pgNum);
          pdecontent = PDPageAcquirePDEContent (pdPage, gExtensionID);
          PDEText pdeText = TextCreate();
          PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));
          /* Put the contents back in the page */
          PDPageSetPDEContent(pdPage, gExtensionID);
          /* Clean up */
          PDPageReleasePDEContent(pdPage, gExtensionID);
    TextCreate() function is same as the one which i mentioned in this discussion. Please let me what i am making wrong in that function aswell. Its not creating the specified "World" pdeText. Please help me out for this. Thanks in advance.
    Regards,
    Chetan.

  • PDFontDownloadContextCreate returns NULL in PDFL8 and PDFL9

    Hi,
    In PDFL7 we have a module which converts PDF 2 PS using the PDDocPrintPages( &client )
    We have heavy usage of fonts so we try and minimelize font insersion using and manimulating the PDFontDownloadContext
    ACCBPROTO1 ASBool CPDFConverter::PDFToPSEmitFont( ASStm stm, PDFont pdFont, PDPrintClient client, ASUns32 flags )
    bRes = PDFontStreamPS( pdFont, stm, (PDFontDownloadContext)client->fontDownloadContext );
    HOWEVER:
    in PDFL8 and PDFL9
    saveFontContext = PDFontDownloadContextCreate(&client);
    returns NULL
    //////////////// snippit ////////////////////////
    PDPrintClientRec client;
    memset(&client, 0, sizeof(client));
    client.size = sizeof(client);
    PDFontDownloadContext saveFontContext;
    saveFontContext = PDFontDownloadContextCreate(&client);
    OR:
    client.fontDownloadContext = (void *) PDFontDownloadContextCreate(&client);
    return NULL
    //////////////// end snippit ////////////////////////
    Is this a bug?
    Has this feature been disabled?
    If so, how come its open in the include files?
    Please advise.
    Thanks, Erez

    Well I can't speak to PDFL9 yet since it has not yet been released or even publicly announced by Adobe yet, but the reason for 8 should account for 9 as well.
    It is still in the PDFL so as not to break legacy workflows, basically. With the introduction of the AGM print engine in 8, the font download context is no longer used and so this method should always return NULL.
    Probably best to wait for Leonard to confirm but that is the answer I was given when I first came across this issue a few months ago.

  • How do I scan multiple pages into one pdf document on a HP Envy 4501 Printer

    My HP Envy 4501 Printer won't let me scan multiple pages into one pdf document.
    I went to "Advanced Settings", clicked on "file" and made sure that the check box next to "Create a separate file for each scanner page" was unchecked.
    When I clicked the Save button it showed the page that I scanned and showed 1/1.  On the right side it had options for changing the brightness and Contrast, Rotate and Crop and "Back", "Save" and "Done" buttons, but nothing about scanning another page.
    Not to mention HP's Customer Support is useless!
    I'd appreciate any help I can get with this problem.
    Thanks,
    Mark

    Hi BH,
    I see your diagram.  I just scanned something.  The screen that I'm looking at right now shows the preview page and the scroll box to the left of that just like in your diagram.  The screen does not show the + button nor does it show the red x button under the scroll box as in your diagram.  I can't see the plus sign because it is not there.
    I tried re-installing the software and drivers as you suggested but that did not have any affect.
    Thank you for trying to help me with this problem but it hasn't worked, therefore I can't mark the reply "Accept as Solution".
    I've noticed that on HP's support forum web page there is only 1 solved request for assistance.  That doesn't give me much confidence in HP.
    Please reply back to this post to let me know if there is anything else that I can try or if you know someone else at HP that can help.
    If I don't here back from you, I'm returning this HP Envy 4501 Printer to get my money back to use it to buy a printer from one of HP's competitors.
    Thanks,
    Mark  

  • Get attribute name from VO returns null.

    Hello,
    I'm using JDeveloper 11.1.1.3. I have an af:inputfile component in which i set a ValueChangeListener. I'm using the attribute "Filename" from the form view to set the name of the file before saving it to a directory. At first, i had a different layout for my jspx page (very similar in design) and everything was working perfectly. When i redesigned the page, i'm now getting "null" as the filename. I'm not able to get the attribute! Although i didn't change anything in the code! I tried writing a simple method to output the attribute:
          public String justOutput(){
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("Filename");
            if (attr == null)
                return null;
            String filename = (String) attr.getInputValue();
            System.out.print(filename);
            return null;
          }It was able to output the attribute. But in my original method i'm getting "null".
    ******Another important observation*******
    If i pressed upload another time at runtime and uploaded another file it works again!
    Here is my code:
         public void uploadFile(ValueChangeEvent valueChangeEvent)  {
              InputStream in;
              FileOutputStream out;   
              ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
              String fileLoc = context.getInitParameter("DATA_DIR");                 
              UploadedFile file= (UploadedFile)valueChangeEvent.getNewValue();                           
              boolean exists = (new File(fileLoc)).exists();
              if(!exists){
                (new File(fileLoc)).mkdirs();
              if(file != null && file.getLength() > 0){
                FacesContext context2 = FacesContext.getCurrentInstance();
                FacesMessage message = new FacesMessage("File Uploaded" + file.getFilename() +
                                                        "(" + file.getLength() + "bytes)");
                //context2.addMessage(valueChangeEvent.getComponent().getClientId(context2), message);
                BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("Filename");
                if (attr == null)
                    return;
                String filename = (String) attr.getInputValue();
                try {
                         out = new FileOutputStream("C:\\demos\\" + filename + ".pdf");
                         in = file.getInputStream();
                         for (int bytes=0; bytes < file.getLength(); bytes++) {
                             out.write(in.read());
                         in.close();
                         out.close();
                     } catch (IOException e) {
                     e.printStackTrace();
              else {
                  String filename = file != null ? file.getFilename():null;
                  String byteLength = file != null ? "" + file.getLength():"0";
          }I don't think the code is wrong because it worked before. But why is this happening?
    Can anyone please help!?
    Mohamed.

    Sorry for the late reply Frank,
    Thanks for your reply, no i didn't! But it worked when i set the 'autosubmit' property to true... Like you said:
    the name field hasn't updated the model to the time you try and access itThanks again.
    Mohamed

Maybe you are looking for

  • Warning while importing MPP into Primavera

    i get this warning while Importing MPP(from MS project 2003) into primavera (P6r7)-- WARNING: Unresolved foreign key is being nulled. Table : TASK, Foreign Table : RSRC, Field : rsrc_id, value : 13 can u pl explain what this means and which area migh

  • Error Message-Anyone can Help?

    Same problem, but after an unexpected Blue Screen shutdown, it gave me this message (after I re-booted) Problem signature:   Problem Event Name: BlueScreen   OS Version: 6.1.7601.2.1.0.256.4   Locale ID: 1033 Additional information about the problem:

  • Folders vs Playlists

    Can anyone provide any info on the difference between folders and playlists and if setting up such an organization would be an efficient way to hear a grouping of songs by different artists in an order I want to listen? I basically want to listen to

  • Kernel _In_Page error when installing database instance on IDES 4.7e

    Dear expert, I was installing the database instance of the IDES 4.7e database instance and after 3.5 hour I received the blue screen of death with kernel_in_page_error memory dump. The system was installed on one single physical sata drive with diffe

  • AME stops responding when second file added to queue

    I'm running CS5 on a 64-bit Windows 7 system. Today, AME stops responding whenever I try to add a second file to the encoding/transcoding queue. I can add an .avi or a Premiere project timeline (either exported from Premiere or added straight into AM