• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Class (PdfData)
2
3Implements the output data stream class of **createPdf()**.
4
5> **NOTE**
6>
7> - The initial APIs of this module are supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.
8>
9> - The initial APIs of this class are supported since API version 14.
10>
11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
12>
13> - When a PDF file is generated on a web page, a data stream is returned, which is encapsulated by the **PdfData** class.
14
15## pdfArrayBuffer<sup>14+</sup>
16
17pdfArrayBuffer(): Uint8Array
18
19Obtains the data stream generated by a web page. For details about the sample code, see [createPdf](./arkts-apis-webview-WebviewController.md#createpdf14).
20
21**System capability**: SystemCapability.Web.Webview.Core
22
23**Return value**
24
25| Type      | Description    |
26| ---------- | -------- |
27| Uint8Array | Data stream.|
28