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 | 7 |
8 #ifndef _FPDFVIEW_H_ | 8 #ifndef _FPDFVIEW_H_ |
9 #define _FPDFVIEW_H_ | 9 #define _FPDFVIEW_H_ |
10 | 10 |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 595 |
596 // Function: FPDF_VIEWERREF_GetDuplex | 596 // Function: FPDF_VIEWERREF_GetDuplex |
597 // Returns the paper handling option to be used when printi
ng from print dialog. | 597 // Returns the paper handling option to be used when printi
ng from print dialog. |
598 // Parameters: | 598 // Parameters: |
599 // document - Handle to the loaded document. | 599 // document - Handle to the loaded document. |
600 // Return value: | 600 // Return value: |
601 // The paper handling option to be used when printing. | 601 // The paper handling option to be used when printing. |
602 // | 602 // |
603 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
t); | 603 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
t); |
604 | 604 |
| 605 // Function: FPDF_CountNamedDests |
| 606 // Get the count of named destinations in the PDF document. |
| 607 // Parameters: |
| 608 // document - Handle to a document |
| 609 // Return value: |
| 610 // The count of named destinations. |
| 611 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document); |
| 612 |
605 // Function: FPDF_GetNamedDestByName | 613 // Function: FPDF_GetNamedDestByName |
606 // get a special dest handle by the index. | 614 // get a special dest handle by the index. |
607 // Parameters: | 615 // Parameters: |
608 // document - Handle to the loaded document. | 616 // document - Handle to the loaded document. |
609 // name - The name of a special named dest
. | 617 // name - The name of a special named dest
. |
610 // Return value: | 618 // Return value: |
611 // The handle of the dest. | 619 // The handle of the dest. |
612 // | 620 // |
613 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); | 621 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); |
614 | 622 |
| 623 // Function: FPDF_GetNamedDest |
| 624 // Get the specified named destinations of the PDF document
by index. |
| 625 // Parameters: |
| 626 // document - Handle to a document |
| 627 // index - The index of named destination. |
| 628 // buffer - The buffer to obtain destination
name, used as wchar_t*. |
| 629 // buflen - The length of the buffer in byte
. |
| 630 // Return value: |
| 631 // The destination handle of a named destination, NULL when
retrieving the length. |
| 632 // Comments: |
| 633 // Call this function twice to get the name of the named de
stination: |
| 634 // 1) First time pass in |buffer| as NULL and get buflen. |
| 635 // 2) Second time pass in allocated |buffer| and buflen to
retrieve |buffer|, which should be used as wchar_t*. |
| 636 // If buflen is not sufficiently large, it will be retur
ned as -1. |
| 637 // |
| 638 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index,
void* buffer, unsigned long& buflen); |
| 639 |
| 640 |
615 #ifdef __cplusplus | 641 #ifdef __cplusplus |
616 }; | 642 }; |
617 #endif | 643 #endif |
618 | 644 |
619 #endif // _FPDFVIEW_H_ | 645 #endif // _FPDFVIEW_H_ |
OLD | NEW |