OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef PUBLIC_FPDF_DOC_H_ | 7 #ifndef PUBLIC_FPDF_DOC_H_ |
8 #define PUBLIC_FPDF_DOC_H_ | 8 #define PUBLIC_FPDF_DOC_H_ |
9 | 9 |
10 // NOLINTNEXTLINE(build/include) | 10 // NOLINTNEXTLINE(build/include) |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // document - handle to the document. | 306 // document - handle to the document. |
307 // page_index - the 0-based index of the page. | 307 // page_index - the 0-based index of the page. |
308 // buffer - a buffer for the page label. May be NULL. | 308 // buffer - a buffer for the page label. May be NULL. |
309 // buflen - the length of the buffer, in bytes. May be 0. | 309 // buflen - the length of the buffer, in bytes. May be 0. |
310 // | 310 // |
311 // Returns the number of bytes in the page label, including trailing zeros. | 311 // Returns the number of bytes in the page label, including trailing zeros. |
312 // | 312 // |
313 // The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two | 313 // The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two |
314 // bytes of zeros indicating the end of the string. If |buflen| is less than | 314 // bytes of zeros indicating the end of the string. If |buflen| is less than |
315 // the returned length, or |buffer| is NULL, |buffer| will not be modified. | 315 // the returned length, or |buffer| is NULL, |buffer| will not be modified. |
316 DLLEXPORT unsigned long STDCALL FPDF_GetPagelLabel(FPDF_DOCUMENT document, | 316 DLLEXPORT unsigned long STDCALL FPDF_GetPageLabel(FPDF_DOCUMENT document, |
317 int page_index, | 317 int page_index, |
318 void* buffer, | 318 void* buffer, |
319 unsigned long buflen); | 319 unsigned long buflen); |
320 | 320 |
321 #ifdef __cplusplus | 321 #ifdef __cplusplus |
322 } // extern "C" | 322 } // extern "C" |
323 #endif // __cplusplus | 323 #endif // __cplusplus |
324 | 324 |
325 #endif // PUBLIC_FPDF_DOC_H_ | 325 #endif // PUBLIC_FPDF_DOC_H_ |
OLD | NEW |