Skip to content

Commit 9d2cc36

Browse files
authored
added missing timeout
1 parent eba53d4 commit 9d2cc36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/radpdfprocessing/formats-and-conversion/convert-to-image/using-image-format-provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To convert your documents' pages to images, use the __Export__ method. Note that
3535
{{region cs-radpdfprocessing-formats-and-conversion-imageformatprovider_0}}
3636

3737
PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
38-
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"));
38+
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"), TimeSpan.FromSeconds(10));
3939
SkiaImageFormatProvider imageProvider = new SkiaImageFormatProvider();
4040

4141
int count = 1;
@@ -60,7 +60,7 @@ The __ExportAsync__ method allows you to perform the conversion asynchronously.
6060
public async void ExportAsync()
6161
{
6262
PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
63-
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"));
63+
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"), TimeSpan.FromSeconds(10));
6464
SkiaImageFormatProvider imageProvider = new SkiaImageFormatProvider();
6565

6666
int count = 0;
@@ -95,7 +95,7 @@ The __SkiaImageFormatProvider__ exposes the following settings:
9595
{{region cs-radpdfprocessing-formats-and-conversion-imageformatprovider_2}}
9696

9797
PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
98-
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"));
98+
RadFixedDocument fixedDocument = pdfFormatProvider.Import(File.ReadAllBytes("Sample.pdf"), TimeSpan.FromSeconds(10));
9999
SkiaImageFormatProvider imageProvider = new SkiaImageFormatProvider();
100100

101101
imageProvider.ExportSettings.ImageFormat = SkiaImageFormat.Png;

0 commit comments

Comments
 (0)