Can't get ImportXml() to work

Last post 02-17-2011, 1:19 AM by shahzad.latif. 33 replies.
Page 2 of 3 (34 items)   < Previous 1 2 3 Next >
Sort Posts: Previous Next
  •  10-02-2009, 6:20 AM 200767 in reply to 200410

    Re: Can't get ImportXml() to work

    Hi Carandang,

    This issue is resolved in our latest release.

    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  10-05-2009, 8:57 PM 201101 in reply to 200767

    Re: Can't get ImportXml() to work

    Thanks!

    But, sorry to be such a bother; I still can't get it to work with version 3.7.0.0 (using the template and xml files I attached to post 185757 in page 1 of this thread). Am I missing something?

    ////Import
    Form f = new Form("pdfTemplate.pdf", "result.pdf");
    System.IO.FileStream xmlInputStream = new FileStream("input.xml", FileMode.Open);
    f.ImportXml(xmlInputStream);
    xmlInputStream.Close();
    f.Save();

     
  •  10-06-2009, 12:56 AM 201115 in reply to 201101

    Re: Can't get ImportXml() to work

    Hi Carandang,

    Can you please share what exception or issue you're facing at the moment? Is the same old issue or some other one? Kindly share the details so we could look into it.


    We're sorry for the inconvenience.
    Regards,

    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  10-06-2009, 7:21 PM 201260 in reply to 201115

    Re: Can't get ImportXml() to work

    Attachment: Present (inaccessible)

    Sorry for not including more info in my previous post~

    I don't get the exception anymore, but the data does not show up on the pdf. (attached)

    I had a look at the xml and it seems that some of the values are in there, just not in the right places.

     
  •  10-07-2009, 1:58 AM 201287 in reply to 201260

    Re: Can't get ImportXml() to work

    Hi Carandang,

    In order to be able to fill a form from an XML file using ImportXml method, you need to make sure that the the field tag's name property in the xml file has the same name as the field name in the PDF file. It is only then the ImportXml method will be able to import the data properly.

    Please also read the following topics. These topics can be helpful in achieving your goal.
    What is the difference between XML, FDF and XFDF
    Import and Export into XML

    I hope this will help in resolving your issue. However, if you still find any issue, please do let us know and we'll further investigate the issue.

    We're sorry for the inconvenience.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  10-07-2009, 6:13 PM 201402 in reply to 201287

    Re: Can't get ImportXml() to work

    Hello,

    There seems to be a misunderstanding of some sort;

    I was aware that it's necessary to have the xml tag names equal to the field names on the pdf. Earlier in this post I'd been told that same thing; that the reason why ImportXml doesn't work with our forms is because we use the 'data binding' feature. Then I was told that that was fixed in another version; and then the only problem left with our forms was that they were dynamic.

    lukeyoyo:

    I am afraid that the newest release cannot solve your problem either. Until now, Kit can handle those documents with 'data binding' feature. However, the document you provided requires the feature of dynamic forms.

    After careful investigation and manytesting, we found it was more complex than we expected before. I am afraid that it cannot be finished in a near future. This feature has been put into our long-term plan, but it cannot be achieved in several months.

    I was under the impression that this had been fixed in the latest release (as per one of your recent posts), and that we should be now able to use ImportXml now with data binding and dynamic forms - that we no longer have to have the xml tag names the same as pdf field names.

    Again, am I missing something here?

    Thanks~

     
  •  10-08-2009, 2:24 PM 201567 in reply to 201402

    Re: Can't get ImportXml() to work

    Hi Carandang,

    We're looking into the matter and you'll be updated with the status the earliest possible.

    We're sorry for the inconvenience.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  10-20-2009, 3:46 AM 203206 in reply to 201567

    Re: Can't get ImportXml() to work

    Hi Carandang,

    We have further investigated this issue and found that the input PDF file you supplied is not even editable with Adobe Reader. If you fill this template using Aspose.Pdf.Kit and view it in some other reader i.e. Foxit reader, you can view the filled fields. You can also edit the input template PDF using Foxit reader, however the input template PDF is not editable with Adobe Reader.

    Can you please share a template PDF file which is editable using Adobe Reader and you're unable to fill the fields using Aspose.Pdf.Kit?

    We'll really appreciate your patience and cooperation.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  10-27-2009, 11:43 PM 204389 in reply to 203206

    Re: Can't get ImportXml() to work

    Hi,

     

    Not sure what you mean; the form was created using Adobe LiveCycle Designer and then reader-enabled...

    Must the input template PDF be editable to achieve something similar to Adobe Reader's Import Data..? (the xml and pdf I've given work fine with that function)

     

    Thanks~

     

     

     
  •  10-28-2009, 6:25 AM 204460 in reply to 204389

    Re: Can't get ImportXml() to work

    Hi Carandang,

    Our team is looking into this requirement. However, I'm afraid that this is quite complex task and will require a lot more time. However, if you could share an editable document, that might help our team to resolve this issue a little faster.

    We really appreciate your cooperation.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  11-04-2009, 3:45 PM 205865 in reply to 204460

    Re: Can't get ImportXml() to work

    Attachment: Present (inaccessible)

    That's cool, I was made aware of the complexity (back in July, by lukeyoyo); I just wanted to get an estimate of when this might be completed, if ever.

    Here's an open version of the pdf (had to kill usage rights for Adobe Reader to edit it though; will this be a problem or do you need a Reader-enabled copy of this?)

    Thanks~

     
  •  11-05-2009, 5:47 AM 205982 in reply to 205865

    Re: Can't get ImportXml() to work

    Hi Carandang,

    Thank you very much for sharing the editable PDF. I have updated our development team. They'll be looking into the matter in detail. You'll be updated as we make some progress on this issue.

    We're sorry for the inconvenience.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  05-04-2010, 6:31 PM 236211 in reply to 205982

    Re: Can't get ImportXml() to work

    Hi,

    Any news on this issue?

     
  •  05-05-2010, 5:06 AM 236279 in reply to 236211

    Re: Can't get ImportXml() to work

    Hi Carandang,

    This issue is resolved in our upcoming monthly release, which will be available tomorrow. Please try it with our latest version once it is published. If you still find any issue, please do let us know.

    We're sorry for the inconvenience.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  06-01-2010, 9:23 PM 241209 in reply to 236279

    Re: Can't get ImportXml() to work

    Attachment: Present (inaccessible)

    Hi,

     

    Tried it with the latest version (4.5) and it's working much better than before!

    Still have quite a few problems though, inlcuding:

    • With data fields that aren't explicitly bound to any form fields (where we only use them in our scripts), these data fields don't get populated
    • With data fields that aren't explicitly bound to any form fields (where we bind them programmatically), these data fields don't get populated
    • With data fields that are bound to a drop down's list of items; these data fields don't get populated

    There are other strange problems with seemingly random fields not getting populated, but I'm still looking into them so I can create a simple form to reproduce this...

    Meanwhile here's the schema, input xml, pdfTemplate form, expectedResult pdf and actualResult pdf for the 3 issues mentioned above.

     

    Thanks!

     
Page 2 of 3 (34 items)   < Previous 1 2 3 Next >
View as RSS news feed in XML