Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

PdfFileEditor.concatenate causes field values to be overriden

Last post 03-12-2009, 6:23 AM by forever. 8 replies.
Sort Posts: Previous Next
  •  11-13-2008, 8:16 AM 152422

    PdfFileEditor.concatenate causes field values to be overriden

    Dear Aspose,

    I am using you Java Aspose.Pdf.Kit with much success. Unfortunately I ran into a bug. If I concatenate 2 Pdf's and these Pdf's happen to have fields with the same name then one of the fields will have it's value overriden.

    For example:
    Pdf 1 has 1 page with a field with the name STREET with value test
    Pdf 2 has 1 page with a field with the name STREET with value test2

    The merged result will consist out of 2 pages and on both pages the STREET field will either have the value test or test2. The value changes eveytime I concatenate. It seems as if the actual value is randomly choosen.

    Can you confirm this behaviour?
     
  •  11-13-2008, 3:29 PM 152500 in reply to 152422

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Hello Martyn,

    I have tested the issue using Aspose.Pdf.Kit for java 2.1.0.0 and I am unable to notice the problem. Please share the Pdf files and the code snippet that you are using, so that we can test the issue at our end.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-14-2008, 3:16 AM 152588 in reply to 152500

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Attachment: Present (inaccessible)
    Hi Aspose,

    I have attached a test java class that will demonstrate the problem. I couldn't upload the java file so I renamed it Concenate.txt. It contains the java class that demonstrates the problem.

    The java application generates 3 Pdf's. The files output-1.pdf and output-2.pdf are the two pdf's that will be joined and the output-concenate.pdf file is the pdf with output-1.pdf and output-2.pdf joined.

    The thing you should note is that in output-1.pdf the country is set to The netherlands. In output-2.pdf the country is set to Belgium. In the concenated file the country is set to The netherlands on both pages. The problem is that in the concenated file page 1 should have the country set to The netherlands and page 2 should have the country set to belgium.

    Thanks,
    Martyn Hiemstra

     
  •  11-14-2008, 6:00 AM 152619 in reply to 152588

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Hello Martyn,

    I have tested the issue using the code snippet & the Pdf file that you have and I am able to notice the same problem. We are looking into the details of this matter, and will keep you updated with the status of correction.

    We apologize for your inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-19-2008, 8:52 PM 153348 in reply to 152619

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Hi Martyn,

    I have logged this issue as PDFKITJAVA-6540. We will try to fix it soon.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-19-2008, 11:06 PM 153353 in reply to 153348

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Dear Martyn,

    Thanks for considering Aspose.Pdf.Kit.

    Technically, PdfFileEditor.concatenate just combines one file with another file, no matter what contents they may have. However, in one single PDF document a field name is required to be unique. Therefore, duplicated field names need to be modified automatically. Once it finished, we will inform you ASAP.

    Because of that, after concatenating PDF docs with duplicated field names, you need to use a new field name to access the field. Is that acceptable for you? Thanks for your response.

    Best regards. 


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-20-2008, 2:13 AM 153370 in reply to 153353

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Hi Aspose,

    Thanks your for your quick response. Changing the field names is the best solution. We want to print these concatenated forms automatically ( without user intervention ) so if the field names are altered then there isn't a problem.

    It might be a problem if someone uses FormCalc. In FormCalc you can call fields and request there current value. If the field names change then the formcalc won't work anymore. I don't believe that this is something you need to consider right now but I did want to mention it so that you can take it into consideration.

    Thanks for the great support,
    Martyn Hiemstra
     
  •  11-20-2008, 3:19 AM 153383 in reply to 153370

    Re: PdfFileEditor.concatenate causes field values to be overriden

    Dear Martyn,

    Thanks for your good suggestion. Your viewpoint is quite right. We will consider about it and solve it ASAP. The ETA is about 2 weeks.

    Best regards.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  03-12-2009, 6:23 AM 169425 in reply to 152422

    Re: PdfFileEditor.concatenate causes field values to be overriden

    The issues you have found earlier (filed as 6540) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by forever.
     
View as RSS news feed in XML