Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: public/fpdfview.h

Issue 2475923003: Implement FPDF_VIEWERREF_GetName() API. (Closed)
Patch Set: Comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/fpdf_doc.h ('k') | testing/resources/viewer_ref.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename
8 // despite lack of consistency with other public files. 8 // despite lack of consistency with other public files.
9 9
10 #ifndef PUBLIC_FPDFVIEW_H_ 10 #ifndef PUBLIC_FPDFVIEW_H_
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 // Function: FPDF_VIEWERREF_GetDuplex 907 // Function: FPDF_VIEWERREF_GetDuplex
908 // Returns the paper handling option to be used when printing from 908 // Returns the paper handling option to be used when printing from
909 // the print dialog. 909 // the print dialog.
910 // Parameters: 910 // Parameters:
911 // document - Handle to the loaded document. 911 // document - Handle to the loaded document.
912 // Return value: 912 // Return value:
913 // The paper handling option to be used when printing. 913 // The paper handling option to be used when printing.
914 DLLEXPORT FPDF_DUPLEXTYPE STDCALL 914 DLLEXPORT FPDF_DUPLEXTYPE STDCALL
915 FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document); 915 FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document);
916 916
917 // Function: FPDF_VIEWERREF_GetName
918 // Gets the contents for a viewer ref, with a given key. The value must
919 // be of type "name".
920 // Parameters:
921 // document - Handle to the loaded document.
922 // key - Name of the key in the viewer pref dictionary.
923 // buffer - A string to write the contents of the key to.
924 // length - Length of the buffer.
925 // Return value:
926 // The number of bytes in the contents, including the NULL terminator.
927 // Thus if the return value is 0, then that indicates an error, such
928 // as when |document| is invalid or |buffer| is NULL. If |length| is
929 // less than the returned length, or |buffer| is NULL, |buffer| will
930 // not be modified.
931 DLLEXPORT unsigned long STDCALL FPDF_VIEWERREF_GetName(FPDF_DOCUMENT document,
932 FPDF_BYTESTRING key,
933 char* buffer,
934 unsigned long length);
935
917 // Function: FPDF_CountNamedDests 936 // Function: FPDF_CountNamedDests
918 // Get the count of named destinations in the PDF document. 937 // Get the count of named destinations in the PDF document.
919 // Parameters: 938 // Parameters:
920 // document - Handle to a document 939 // document - Handle to a document
921 // Return value: 940 // Return value:
922 // The count of named destinations. 941 // The count of named destinations.
923 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document); 942 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document);
924 943
925 // Function: FPDF_GetNamedDestByName 944 // Function: FPDF_GetNamedDestByName
926 // Get a the destination handle for the given name. 945 // Get a the destination handle for the given name.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 // Function: FPDF_BStr_Clear 991 // Function: FPDF_BStr_Clear
973 // Helper function to clear a byte string. 992 // Helper function to clear a byte string.
974 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); 993 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str);
975 #endif // PDF_ENABLE_XFA 994 #endif // PDF_ENABLE_XFA
976 995
977 #ifdef __cplusplus 996 #ifdef __cplusplus
978 } 997 }
979 #endif 998 #endif
980 999
981 #endif // PUBLIC_FPDFVIEW_H_ 1000 #endif // PUBLIC_FPDFVIEW_H_
OLDNEW
« no previous file with comments | « public/fpdf_doc.h ('k') | testing/resources/viewer_ref.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698