Skip to content

Commit b3f85dc

Browse files
author
Zack Schwartz
committed
documentation for thumbnail endpoint
1 parent 7d06684 commit b3f85dc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ An `Api2PdfResult` object is returned from every API call. If a call is unsucces
184184

185185
## <a name="libreoffice"></a>LibreOffice
186186

187-
Convert any office file to PDF, image file to PDF, email file to PDF, HTML to Word, HTML to Excel, and PDF to HTML. Any file that can be reasonably opened by LibreOffice should be convertible.
187+
Convert any office file to PDF, image file to PDF, email file to PDF, HTML to Word, HTML to Excel, and PDF to HTML. Any file that can be reasonably opened by LibreOffice should be convertible. Additionally, we have an endpoint for generating a *thumbnail* of the first page of your PDF or Office Document. This is great for generating an image preview of your files to users.
188188

189189
You must provide a url to the file. Our engine will consume the file at that URL and convert it to the PDF.
190190

@@ -196,6 +196,14 @@ You must provide a url to the file. Our engine will consume the file at that URL
196196
}
197197
var apiResponse = a2pClient.LibreOffice.AnyToPdf(request);
198198

199+
**Thumbnail or Image Preview of a PDF or Office Document or Email file**
200+
201+
var request = new LibreFileConversionRequest
202+
{
203+
Url = "https://www.api2pdf.com/wp-content/themes/api2pdf/assets/samples/sample-word-doc.docx"
204+
}
205+
var apiResponse = a2pClient.LibreOffice.Thumbnail(request);
206+
199207
**Convert HTML to Microsoft Word or Docx**
200208

201209
var request = new LibreFileConversionRequest

0 commit comments

Comments
 (0)