Form.FlattenField throws an exception

I have sent you the pdf in a private message.

@dpreznik

Thank you for sharing the file.

Please also share a Self Contained and Correct (Compilable) code snippet to reproduce the problem. We will investigate and then share our findings with you soon.

Here is my code with the new Aspose version:

Imports Aspose.Pdf.Facades

Module Module1

Sub Main()
    Dim inForm As Form
    Dim fieldName As String = "CUSTOMER_PRICEHEADING2"
    Dim destFilePath As String = "F:\DataEntry\AsposeResult.pdf"

    inForm = New Form("F:\DataEntry\DS-692.0-1217_2018 Domestic Pricebook-504k34kqa22ipwld0ujsjlpe.pdf")
    inForm.FillField(fieldName, "Dummy Data")

    ' Make this field un-editable
    inForm.FlattenField(fieldName)

    inForm.Save(destFilePath)

End Sub

End Module

With this version, inForm.FlattenField(fieldName) throws an exception:

: ‘Provided field name ‘CUSTOMER_PRICEHEADING2’ doesn’t designate form field.’

@dpreznik

Thank you for sharing requested data.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45374 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Thank you!
May I ask, where your issue management system can be seen (just in case)?
Also, about how long can it take?

Thanks.

@dpreznik

We are afraid you may not access our internal issue tracking system (JIRA). However, you may make a request for issue progress in this thread or you can view issue status from bottom left column, under this thread. Moreover, please note that the issue has been logged under free support model and will be resolved under first come first serve policy which can take some months.

Furthermore, we also offer paid support model where issues are resolved on urgent basis and have priority over the issues logged under free support model. You may check our Paid Support options for your reference.

Farhan.Raza

Could you please tell how much it would cost?

Thanks.

@dpreznik

For any sales related query, kindly create a post over Purchase Forum and we will share the details with you. Or you can find contact details for such inquiries, over Contact Us page.

I am surprised that after we purchased this non-functional product, we have to pay for being able to finally use it.

@dpreznik

Please note that we offer a free 30 day temporary license to let our customers test the API if it meets their requirements before paying for it. Many customers are using the API without any issue as it fulfills their requirements. However, there might be some issues which could be scenario or file specific. We always value concerns of our customers and resolve each issue reported to us. But the resolution time depends on the model issues are logged under. We appreciate your comprehension in this regard.

We are sorry for the inconvenience.

I just downgraded Aspose.Pdf package to version 10.2.0 that we use on our legacy application. It gives the same error! I wonder why it works for the same file in the legacy application… Don’t you have any clue by any chance?

@dpreznik

We are afraid we may not have any clue about that difference. We will take care of your concerns with latest version of the API as respective ticket has been logged in our issue management system. We will get back to you once any significant information is available in this regard.

Hello,
Could you please give me any update on this issue? Has it been resolved?

Thanks.

@dpreznik

Thank you for getting back to us.

We would like to update you that PDFNET-45374 is scheduled for upcoming week. We will let you know as soon as some significant updates will be available. We appreciate your patience and comprehension in this regard.

Hello,

Anything new on this issue?

@dpreznik

We are afraid that PDFNET-45374 has not been investigated yet owing to some critical and higher priority issues. However, we have recorded your concerns and will schedule it as soon as we can. Please spare us some more time.

Will it ever be done?

Thanks.

@dpreznik

Thank you for getting back to us.

Please note that the priority has been raised already and we understand importance of this issue so we will be scheduling it at our earliest. Please spare us little more time and we will update you as soon as any progress is made in this regard.

@dpreznik

Thank you for being patient.

We would like to inform you that we have figured out that source PDF document does not contain the field CUSTOMER_PRICEHEADING2.

We have filtered fields which contain “PRICE” and below is the list for your kind reference:

9257 - 0005 - 2_PRICE2
9257 - 0401 - 2_PRICE2
    CUSTOMER_PRICEHEADING
S - 09235 - NF - 19_PRICE
S - 09235 - NF - 19_PRICE2
0024 - 0001 - 2_PRICE2
0024 - 0001 - 2_PRICE
9354 - 0050 - 21_PRICE
9354 - 0050 - 21_PRICE2
9369 - 0030 - 22_PRICE
9369 - 0030 - 22_PRICE2
0261 - 0040 - 21_PRICE
0261 - 0040 - 21_PRICE2
9359 - 0050 - 21_PRICE
9359 - 0050 - 21_PRICE2
9329 - 0060 - 21_PRICE
9329 - 0060 - 21_PRICE2
S - 310AB - NC - 08_PRICE
S - 310AB - NC - 08_PRICE2
S - 310AB - NC - 08 - 1_PRICE
S - 310AB - NC - 08 - 1_PRICE2
S - 310AB - NC - 10_PRICE
S - 310AB - NC - 10_PRICE2
S - 310AB - NC - 10 - 1_PRICE
S - 310AB - NC - 10 - 1_PRICE2
S - 310AB - CC - 10_PRICE
S - 310AB - CC - 10_PRICE2
S - 310AB - CC - 10 - 1_PRICE
S - 310AB - CC - 10 - 1_PRICE2
        RT8480310_PRICE
RT8480310_PRICE2
RT8480500_PRICE
RT8480500_PRICE2
2844 - 0025 - 2_PRICE
2844 - 0025 - 2_PRICE2
0444 - 0050 - 2_PRICE
0444 - 0050 - 2_PRICE2
S - 228P4 - NS - 03_PRICE
S - 228P4 - NS - 03_PRICE2
1344 - 0409 - 2_PRICE
1344 - 0409 - 2_PRICE2
6244 - 0120 - 2_PRICE
6244 - 0120 - 2_PRICE2
9118 - 0601 - 2_PRICE
9118 - 0601 - 2_PRICE2

Thus, only CUSTOMER_PRICEHEADING exists so the exception is thrown. We hope this will be helpful. Please feel free to contact us if you need any further assistance.

I am sorry, but this is not the cause. I don’t have the pdf that I initially provided you with, but the field does exist in our pdf files. Moreover, you admit that CUSTOMER_PRICEHEADING exists in the file, and yet I keep receiving the same error on this field, too. Please help.