Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Nov 11, 2024 9:46 am

When few fillable pdf's are unable to flattern by using the below code in .net mvc 4.5.1 with spire 8.2.2 licensed version.

PdfDocument doc = new PdfDocument(PDFPath);
if (doc.Form != null)
{
_logger.Info("fillable pdf");
doc.Form.IsFlatten = true;
}

the sample fillable pdf is attached. Need to convert it as flattern pdf and need to compress its size too.

jeyaraja
 
Posts: 4
Joined: Tue Nov 10, 2020 4:30 pm

Tue Nov 12, 2024 6:46 am

Hi,

Thank you for your message.
I tested the file you provided and encountered this error message when trying to save it: "Object reference not set to an instance of an object." Did you also encounter this error?

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 409
Joined: Mon Nov 07, 2022 8:10 am

Wed Nov 13, 2024 10:16 am

Doris.Liu wrote:Hi,

Thank you for your message.
I tested the file you provided and encountered this error message when trying to save it: "Object reference not set to an instance of an object." Did you also encounter this error?

Sincerely,
Doris
E-iceblue support team



Hi,

No, when using the below no error came but pdf is not converted.
PdfDocument doc = new PdfDocument(PDFPath);
if (doc.Form != null)
{
_logger.Info("fillable pdf");
doc.Form.IsFlatten = true;
}

when using the below it gives "Object reference not set to an instance of an object." error

foreach (PdfPageBase page in doc.Pages)

jeyaraja
 
Posts: 4
Joined: Tue Nov 10, 2020 4:30 pm

Thu Nov 14, 2024 10:02 am

Hi,

I have logged this error into our bug tracking system with the number SPIREPDF-7185. Once the development team fixes it, we will update you promptly. Sorry for any inconvenience caused.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 409
Joined: Mon Nov 07, 2022 8:10 am

Thu Nov 14, 2024 11:02 am

Doris.Liu wrote:Hi,

I have logged this error into our bug tracking system with the number SPIREPDF-7185. Once the development team fixes it, we will update you promptly. Sorry for any inconvenience caused.

Sincerely,
Doris
E-iceblue support team



Hi,
Thanks for the response.

jeyaraja
 
Posts: 4
Joined: Tue Nov 10, 2020 4:30 pm

Tue Nov 19, 2024 10:23 am

Doris.Liu wrote:Hi,

I have logged this error into our bug tracking system with the number SPIREPDF-7185. Once the development team fixes it, we will update you promptly. Sorry for any inconvenience caused.

Sincerely,
Doris
E-iceblue support team



Hi,

Eagerly waiting for your reply.

jeyaraja
 
Posts: 4
Joined: Tue Nov 10, 2020 4:30 pm

Wed Nov 20, 2024 1:31 am

Hi,

Thanks for your patience.
Our developers have addressed the issue you mentioned and it is soon to enter the testing phase. Once the testing is approved, we will promptly notify you when we release the new version.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 409
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.PDF