Skip to content

Commit fc1b834

Browse files
authored
Merge pull request #298 from aspose-pdf/PDFNET_57975_PDFA_updates
PDFA updates (PDFNET-57975)
2 parents 8b71835 + a6ac58f commit fc1b834

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

net/converting/convert-pdf-to-pdfa/_index.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sitemap:
1515

1616
{{% alert color="primary" %}}
1717

18-
Please note we follow Adobe Preflight for validating PDF/A conformance. All tools on the market have their own “representation” of PDF/A conformance. Please check this article on PDF/A validation tools for reference. We chose Adobe products for verifying how Aspose.PDF produces PDF files because Adobe is at the center of everything connected to PDF.
18+
Please note we follow Adobe Preflight and veraPDF for validating PDF/A conformance. All tools on the market have their own “representation” of PDF/A conformance. Please check this article on PDF/A validation tools for reference. We chose Adobe products for verifying how Aspose.PDF produces PDF files because Adobe is at the center of everything connected to PDF.
1919

2020
{{% /alert %}}
2121

@@ -31,6 +31,9 @@ Aspose.PDF for .NET presents you online free application ["PDF to PDF/A-1A"](htt
3131

3232
The following code snippet also work with [Aspose.PDF.Drawing](/pdf/net/drawing/) library.
3333

34+
## Supported standards
35+
We support the following standards: PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2u, PDF/A-2a, PDF/A-3b, PDF/A-3u, PDF/A-3a, PDF/A-4, PDF/A-4e, PDF/A-4f.
36+
3437
## Convert PDF file to PDF/A-1b
3538

3639
The following code snippet shows how to convert PDF files to PDF/A-1b compliant PDF.
@@ -109,6 +112,23 @@ doc.Convert(new MemoryStream(), PdfFormat.PDF_A_3U, ConvertErrorAction.Delete);
109112
doc.Save(outFile);
110113
```
111114

115+
## Convert PDF file to PDF/A-4
116+
117+
Aspose.PDF for .NET also supports the feature to convert a PDF file to PDF/A-3u format.
118+
119+
```csharp
120+
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
121+
122+
using (var document = new Document(dataDir + "input.pdf"))
123+
{
124+
// If the document version is less than PDF-2.0, it must be converted to PDF-2.0
125+
document.Convert(Stream.Null, PdfFormat.v_2_0, ConvertErrorAction.Delete);
126+
127+
document.Convert(dataDir + "log.xml", PdfFormat.PDF_A_4, ConvertErrorAction.Delete);
128+
document.Save(dataDir + "output.pdf");
129+
}
130+
```
131+
112132
## Add Attachment to PDF/A file
113133

114134
In case you have a requirement to attach files to PDF/A compliance format, then we recommend using PDF_A_3A value from Aspose.PDF.PdfFormat enumeration.

0 commit comments

Comments
 (0)