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.

Sat Sep 16, 2023 8:44 pm

Hello,
I'm using this method to convert pdf to pdf/A how can i return stream?

public static void GeneratePdfA3(Stream pdfFile)
{
PdfStandardsConverter converter = new PdfStandardsConverter(pdfFile);
converter.ToPdfA3B(pdfFile);
}

ahmed511
 
Posts: 1
Joined: Sat Sep 16, 2023 8:39 pm

Mon Sep 18, 2023 2:50 am

Hi,

Thanks for your inquiry.
Please refer to the following code to return Pdf/A stream:
Code: Select all
public static Stream GeneratePdfA3(Stream pdfFile)
{
PdfStandardsConverter converter = new PdfStandardsConverter(pdfFile);
MemoryStream ms = new MemoryStream();
converter.ToPdfA3B(ms);
return ms;
}


Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Mon Oct 30, 2023 7:26 am

Hi

I would like to know if the solution we have provided has helped you solved the problem you have encountered, and our team expected to have more communication with you.
If my solution doesn’t help you, please offer the following information to help us do further investigation. Thank you in advance.
1)Your input test file, you can attach here or send it to us via email (support@e-iceblue.com).
2) Your full test code that can reproduce your issue.
3) Application type, such as Console App, .NET Framework 4.8.
4) Your test environment, such as OS info (E.g. Windows 7, 64-bit).

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.PDF

cron