Interface IPdfService
General pdf service
Namespace: Simplic.DocumentProcessing
Assembly: Simplic.DocumentProcessing.dll
Syntax
public interface IPdfService
Methods
| Improve this Doc View SourceAddEmptyPage(Byte[], Int32)
Adds an empty page.
Declaration
byte[] AddEmptyPage(byte[] pdf, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | ||
System.Int32 | pageNumber | Index of the new page, starting with 1 which will insert an empty page as the first page |
Returns
Type | Description |
---|---|
System.Byte[] | The resulting Pdf-blob |
AddTextAnnotation(Byte[], Int32, PdfAnnotation)
Adds a text annotation
Declaration
byte[] AddTextAnnotation(byte[] pdf, int pageNumber, PdfAnnotation annotation)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | ||
System.Int32 | pageNumber | Page number on which the annotation will be placed |
PdfAnnotation | annotation | The annotation which will be added |
Returns
Type | Description |
---|---|
System.Byte[] | The modified Pdf-blob |
GetPageCount(Byte[])
Get page count
Declaration
int GetPageCount(byte[] pdf)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] |
Returns
Type | Description |
---|---|
System.Int32 | Page count |