Skip to content

Commit 5d8e3fd

Browse files
mynjjJoshua Martínez Pineda
andauthored
Pending obsoletion on PDFDocument.Codeunit.al (#5257)
#### Summary Obsoleting procedure that was replaced in a previous 27.x PR and now uptaken in E-Docs NAV (v27.x) This should pass after artifacts of version 27.2.41915.0 are uptaken in this repo. #### Work Item(s) Fixes [AB#610560](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/610560) --------- Co-authored-by: Joshua Martínez Pineda <[email protected]>
1 parent f1d47f7 commit 5d8e3fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/System Application/App/Pdf/src/PDFDocument.Codeunit.al

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,19 @@ codeunit 3110 "PDF Document"
4949
begin
5050
exit(PDFDocumentImpl.ConvertToImage(ImageStream, ImageFormat, PageNumber));
5151
end;
52-
52+
#if not CLEAN27
5353
/// <summary>
54-
/// This procedure is used to convert a PDF file to an image. Use ConvertPdfToImage to get a success flag.
54+
/// This procedure is used to convert a PDF file to an image.
5555
/// </summary>
5656
/// <param name="ImageStream">Stream of the image file.</param>
5757
/// <param name="ImageFormat">Image format to convert the PDF to.</param>
5858
/// <param name="PageNumber">Page number to convert.</param>
59+
[Obsolete('Use the ConvertPdfToImage procedure instead.', '27.2')]
5960
procedure ConvertToImage(var ImageStream: InStream; ImageFormat: Enum "Image Format"; PageNumber: Integer)
6061
begin
6162
PDFDocumentImpl.ConvertToImage(ImageStream, ImageFormat, PageNumber);
6263
end;
64+
#endif
6365

6466
/// <summary>
6567
/// This procedure is used to get the invoice attachment stream from a PDF file.

0 commit comments

Comments
 (0)