diff --git a/src/System Application/App/Pdf/src/PDFDocument.Codeunit.al b/src/System Application/App/Pdf/src/PDFDocument.Codeunit.al index 3615392646..f0a9246a05 100644 --- a/src/System Application/App/Pdf/src/PDFDocument.Codeunit.al +++ b/src/System Application/App/Pdf/src/PDFDocument.Codeunit.al @@ -49,17 +49,19 @@ codeunit 3110 "PDF Document" begin exit(PDFDocumentImpl.ConvertToImage(ImageStream, ImageFormat, PageNumber)); end; - +#if not CLEAN27 /// - /// This procedure is used to convert a PDF file to an image. Use ConvertPdfToImage to get a success flag. + /// This procedure is used to convert a PDF file to an image. /// /// Stream of the image file. /// Image format to convert the PDF to. /// Page number to convert. + [Obsolete('Use the ConvertPdfToImage procedure instead.', '27.2')] procedure ConvertToImage(var ImageStream: InStream; ImageFormat: Enum "Image Format"; PageNumber: Integer) begin PDFDocumentImpl.ConvertToImage(ImageStream, ImageFormat, PageNumber); end; +#endif /// /// This procedure is used to get the invoice attachment stream from a PDF file.