• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // This "C" (not "C++") file ensures that the public headers compile
6 // and link for "C" (and not just "C++").
7 
8 #include <stdio.h>
9 
10 #include "fpdfsdk/fpdf_view_c_api_test.h"
11 
12 #include "public/fpdf_annot.h"
13 #include "public/fpdf_attachment.h"
14 #include "public/fpdf_catalog.h"
15 #include "public/fpdf_dataavail.h"
16 #include "public/fpdf_doc.h"
17 #include "public/fpdf_edit.h"
18 #include "public/fpdf_ext.h"
19 #include "public/fpdf_flatten.h"
20 #include "public/fpdf_formfill.h"
21 #include "public/fpdf_fwlevent.h"
22 #include "public/fpdf_javascript.h"
23 #include "public/fpdf_ppo.h"
24 #include "public/fpdf_progressive.h"
25 #include "public/fpdf_save.h"
26 #include "public/fpdf_searchex.h"
27 #include "public/fpdf_signature.h"
28 #include "public/fpdf_structtree.h"
29 #include "public/fpdf_sysfontinfo.h"
30 #include "public/fpdf_text.h"
31 #include "public/fpdf_thumbnail.h"
32 #include "public/fpdf_transformpage.h"
33 #include "public/fpdfview.h"
34 
35 // Scheme for avoiding LTO out of existence, warnings, etc.
36 typedef void (*fnptr)(void);  // Legal generic function type for casts.
37 fnptr g_c_api_test_fnptr = NULL;  // Extern, so can't know it doesn't change.
38 #define CHK(x) if ((fnptr)(x) == g_c_api_test_fnptr) return 0
39 
40 // Function to call from gtest harness to ensure linker resolution.
CheckPDFiumCApi()41 int CheckPDFiumCApi() {
42     // fpdf_annot.h
43     CHK(FPDFAnnot_AddFileAttachment);
44     CHK(FPDFAnnot_AddInkStroke);
45     CHK(FPDFAnnot_AppendAttachmentPoints);
46     CHK(FPDFAnnot_AppendObject);
47     CHK(FPDFAnnot_CountAttachmentPoints);
48     CHK(FPDFAnnot_GetAP);
49     CHK(FPDFAnnot_GetAttachmentPoints);
50     CHK(FPDFAnnot_GetBorder);
51     CHK(FPDFAnnot_GetColor);
52     CHK(FPDFAnnot_GetFileAttachment);
53     CHK(FPDFAnnot_GetFlags);
54     CHK(FPDFAnnot_GetFocusableSubtypes);
55     CHK(FPDFAnnot_GetFocusableSubtypesCount);
56     CHK(FPDFAnnot_GetFontColor);
57     CHK(FPDFAnnot_GetFontSize);
58     CHK(FPDFAnnot_GetFormAdditionalActionJavaScript);
59     CHK(FPDFAnnot_GetFormControlCount);
60     CHK(FPDFAnnot_GetFormControlIndex);
61     CHK(FPDFAnnot_GetFormFieldAlternateName);
62     CHK(FPDFAnnot_GetFormFieldAtPoint);
63     CHK(FPDFAnnot_GetFormFieldExportValue);
64     CHK(FPDFAnnot_GetFormFieldFlags);
65     CHK(FPDFAnnot_GetFormFieldName);
66     CHK(FPDFAnnot_GetFormFieldType);
67     CHK(FPDFAnnot_GetFormFieldValue);
68     CHK(FPDFAnnot_GetInkListCount);
69     CHK(FPDFAnnot_GetInkListPath);
70     CHK(FPDFAnnot_GetLine);
71     CHK(FPDFAnnot_GetLink);
72     CHK(FPDFAnnot_GetLinkedAnnot);
73     CHK(FPDFAnnot_GetNumberValue);
74     CHK(FPDFAnnot_GetObject);
75     CHK(FPDFAnnot_GetObjectCount);
76     CHK(FPDFAnnot_GetOptionCount);
77     CHK(FPDFAnnot_GetOptionLabel);
78     CHK(FPDFAnnot_GetRect);
79     CHK(FPDFAnnot_GetStringValue);
80     CHK(FPDFAnnot_GetSubtype);
81     CHK(FPDFAnnot_GetValueType);
82     CHK(FPDFAnnot_GetVertices);
83     CHK(FPDFAnnot_HasAttachmentPoints);
84     CHK(FPDFAnnot_HasKey);
85     CHK(FPDFAnnot_IsChecked);
86     CHK(FPDFAnnot_IsObjectSupportedSubtype);
87     CHK(FPDFAnnot_IsOptionSelected);
88     CHK(FPDFAnnot_IsSupportedSubtype);
89     CHK(FPDFAnnot_RemoveInkList);
90     CHK(FPDFAnnot_RemoveObject);
91     CHK(FPDFAnnot_SetAP);
92     CHK(FPDFAnnot_SetAttachmentPoints);
93     CHK(FPDFAnnot_SetBorder);
94     CHK(FPDFAnnot_SetColor);
95     CHK(FPDFAnnot_SetFlags);
96     CHK(FPDFAnnot_SetFocusableSubtypes);
97     CHK(FPDFAnnot_SetRect);
98     CHK(FPDFAnnot_SetStringValue);
99     CHK(FPDFAnnot_SetURI);
100     CHK(FPDFAnnot_UpdateObject);
101     CHK(FPDFPage_CloseAnnot);
102     CHK(FPDFPage_CreateAnnot);
103     CHK(FPDFPage_GetAnnot);
104     CHK(FPDFPage_GetAnnotCount);
105     CHK(FPDFPage_GetAnnotIndex);
106     CHK(FPDFPage_RemoveAnnot);
107 
108     // fpdf_attachment.h
109     CHK(FPDFAttachment_GetFile);
110     CHK(FPDFAttachment_GetName);
111     CHK(FPDFAttachment_GetStringValue);
112     CHK(FPDFAttachment_GetValueType);
113     CHK(FPDFAttachment_HasKey);
114     CHK(FPDFAttachment_SetFile);
115     CHK(FPDFAttachment_SetStringValue);
116     CHK(FPDFDoc_AddAttachment);
117     CHK(FPDFDoc_DeleteAttachment);
118     CHK(FPDFDoc_GetAttachment);
119     CHK(FPDFDoc_GetAttachmentCount);
120 
121     // fpdf_catalog.h
122     CHK(FPDFCatalog_IsTagged);
123     CHK(FPDFCatalog_SetLanguage);
124 
125     // fpdf_dataavail.h
126     CHK(FPDFAvail_Create);
127     CHK(FPDFAvail_Destroy);
128     CHK(FPDFAvail_GetDocument);
129     CHK(FPDFAvail_GetFirstPageNum);
130     CHK(FPDFAvail_IsDocAvail);
131     CHK(FPDFAvail_IsFormAvail);
132     CHK(FPDFAvail_IsLinearized);
133     CHK(FPDFAvail_IsPageAvail);
134 
135     // fpdf_doc.h
136     CHK(FPDFAction_GetDest);
137     CHK(FPDFAction_GetFilePath);
138     CHK(FPDFAction_GetType);
139     CHK(FPDFAction_GetURIPath);
140     CHK(FPDFBookmark_Find);
141     CHK(FPDFBookmark_GetAction);
142     CHK(FPDFBookmark_GetCount);
143     CHK(FPDFBookmark_GetDest);
144     CHK(FPDFBookmark_GetFirstChild);
145     CHK(FPDFBookmark_GetNextSibling);
146     CHK(FPDFBookmark_GetTitle);
147     CHK(FPDFDest_GetDestPageIndex);
148     CHK(FPDFDest_GetLocationInPage);
149     CHK(FPDFDest_GetView);
150     CHK(FPDFLink_CountQuadPoints);
151     CHK(FPDFLink_Enumerate);
152     CHK(FPDFLink_GetAction);
153     CHK(FPDFLink_GetAnnot);
154     CHK(FPDFLink_GetAnnotRect);
155     CHK(FPDFLink_GetDest);
156     CHK(FPDFLink_GetLinkAtPoint);
157     CHK(FPDFLink_GetLinkZOrderAtPoint);
158     CHK(FPDFLink_GetQuadPoints);
159     CHK(FPDF_GetFileIdentifier);
160     CHK(FPDF_GetMetaText);
161     CHK(FPDF_GetPageAAction);
162     CHK(FPDF_GetPageLabel);
163 
164     // fpdf_edit.h
165     CHK(FPDFFont_Close);
166     CHK(FPDFFont_GetAscent);
167     CHK(FPDFFont_GetBaseFontName);
168     CHK(FPDFFont_GetDescent);
169     CHK(FPDFFont_GetFamilyName);
170     CHK(FPDFFont_GetFlags);
171     CHK(FPDFFont_GetFontData);
172     CHK(FPDFFont_GetGlyphPath);
173     CHK(FPDFFont_GetGlyphWidth);
174     CHK(FPDFFont_GetIsEmbedded);
175     CHK(FPDFFont_GetItalicAngle);
176     CHK(FPDFFont_GetWeight);
177     CHK(FPDFFormObj_CountObjects);
178     CHK(FPDFFormObj_GetObject);
179     CHK(FPDFGlyphPath_CountGlyphSegments);
180     CHK(FPDFGlyphPath_GetGlyphPathSegment);
181     CHK(FPDFImageObj_GetBitmap);
182     CHK(FPDFImageObj_GetImageDataDecoded);
183     CHK(FPDFImageObj_GetImageDataRaw);
184     CHK(FPDFImageObj_GetImageFilter);
185     CHK(FPDFImageObj_GetImageFilterCount);
186     CHK(FPDFImageObj_GetImageMetadata);
187     CHK(FPDFImageObj_GetImagePixelSize);
188     CHK(FPDFImageObj_GetRenderedBitmap);
189     CHK(FPDFImageObj_LoadJpegFile);
190     CHK(FPDFImageObj_LoadJpegFileInline);
191     CHK(FPDFImageObj_SetBitmap);
192     CHK(FPDFImageObj_SetMatrix);
193     CHK(FPDFPageObjMark_CountParams);
194     CHK(FPDFPageObjMark_GetName);
195     CHK(FPDFPageObjMark_GetParamBlobValue);
196     CHK(FPDFPageObjMark_GetParamIntValue);
197     CHK(FPDFPageObjMark_GetParamKey);
198     CHK(FPDFPageObjMark_GetParamStringValue);
199     CHK(FPDFPageObjMark_GetParamValueType);
200     CHK(FPDFPageObjMark_RemoveParam);
201     CHK(FPDFPageObjMark_SetBlobParam);
202     CHK(FPDFPageObjMark_SetIntParam);
203     CHK(FPDFPageObjMark_SetStringParam);
204     CHK(FPDFPageObj_AddMark);
205     CHK(FPDFPageObj_CountMarks);
206     CHK(FPDFPageObj_CreateNewPath);
207     CHK(FPDFPageObj_CreateNewRect);
208     CHK(FPDFPageObj_CreateTextObj);
209     CHK(FPDFPageObj_Destroy);
210     CHK(FPDFPageObj_GetBounds);
211     CHK(FPDFPageObj_GetDashArray);
212     CHK(FPDFPageObj_GetDashCount);
213     CHK(FPDFPageObj_GetDashPhase);
214     CHK(FPDFPageObj_GetFillColor);
215     CHK(FPDFPageObj_GetLineCap);
216     CHK(FPDFPageObj_GetLineJoin);
217     CHK(FPDFPageObj_GetMark);
218     CHK(FPDFPageObj_GetMarkedContentID);
219     CHK(FPDFPageObj_GetMatrix);
220     CHK(FPDFPageObj_GetRotatedBounds);
221     CHK(FPDFPageObj_GetStrokeColor);
222     CHK(FPDFPageObj_GetStrokeWidth);
223     CHK(FPDFPageObj_GetType);
224     CHK(FPDFPageObj_HasTransparency);
225     CHK(FPDFPageObj_NewImageObj);
226     CHK(FPDFPageObj_NewTextObj);
227     CHK(FPDFPageObj_RemoveMark);
228     CHK(FPDFPageObj_SetBlendMode);
229     CHK(FPDFPageObj_SetDashArray);
230     CHK(FPDFPageObj_SetDashPhase);
231     CHK(FPDFPageObj_SetFillColor);
232     CHK(FPDFPageObj_SetIsActive);
233     CHK(FPDFPageObj_SetLineCap);
234     CHK(FPDFPageObj_SetLineJoin);
235     CHK(FPDFPageObj_SetMatrix);
236     CHK(FPDFPageObj_SetStrokeColor);
237     CHK(FPDFPageObj_SetStrokeWidth);
238     CHK(FPDFPageObj_Transform);
239     CHK(FPDFPageObj_TransformF);
240     CHK(FPDFPage_CountObjects);
241     CHK(FPDFPage_Delete);
242     CHK(FPDFPage_GenerateContent);
243     CHK(FPDFPage_GetObject);
244     CHK(FPDFPage_GetRotation);
245     CHK(FPDFPage_HasTransparency);
246     CHK(FPDFPage_InsertObject);
247     CHK(FPDFPage_New);
248     CHK(FPDFPage_RemoveObject);
249     CHK(FPDFPage_SetRotation);
250     CHK(FPDFPage_TransformAnnots);
251     CHK(FPDFPathSegment_GetClose);
252     CHK(FPDFPathSegment_GetPoint);
253     CHK(FPDFPathSegment_GetType);
254     CHK(FPDFPath_BezierTo);
255     CHK(FPDFPath_Close);
256     CHK(FPDFPath_CountSegments);
257     CHK(FPDFPath_GetDrawMode);
258     CHK(FPDFPath_GetPathSegment);
259     CHK(FPDFPath_LineTo);
260     CHK(FPDFPath_MoveTo);
261     CHK(FPDFPath_SetDrawMode);
262     CHK(FPDFTextObj_GetFont);
263     CHK(FPDFTextObj_GetFontSize);
264     CHK(FPDFTextObj_GetRenderedBitmap);
265     CHK(FPDFTextObj_GetText);
266     CHK(FPDFTextObj_GetTextRenderMode);
267     CHK(FPDFTextObj_SetTextRenderMode);
268     CHK(FPDFText_LoadCidType2Font);
269     CHK(FPDFText_LoadFont);
270     CHK(FPDFText_LoadStandardFont);
271     CHK(FPDFText_SetCharcodes);
272     CHK(FPDFText_SetText);
273     CHK(FPDF_CreateNewDocument);
274     CHK(FPDF_MovePages);
275 
276     // fpdf_ext.h
277     CHK(FPDFDoc_GetPageMode);
278     CHK(FSDK_SetLocaltimeFunction);
279     CHK(FSDK_SetTimeFunction);
280     CHK(FSDK_SetUnSpObjProcessHandler);
281 
282     // fpdf_flatten.h
283     CHK(FPDFPage_Flatten);
284 
285     // fpdf_fwlevent.h - no exports.
286 
287     // fpdf_formfill.h
288     CHK(FORM_CanRedo);
289     CHK(FORM_CanUndo);
290     CHK(FORM_DoDocumentAAction);
291     CHK(FORM_DoDocumentJSAction);
292     CHK(FORM_DoDocumentOpenAction);
293     CHK(FORM_DoPageAAction);
294     CHK(FORM_ForceToKillFocus);
295     CHK(FORM_GetFocusedAnnot);
296     CHK(FORM_GetFocusedText);
297     CHK(FORM_GetSelectedText);
298     CHK(FORM_IsIndexSelected);
299     CHK(FORM_OnAfterLoadPage);
300     CHK(FORM_OnBeforeClosePage);
301     CHK(FORM_OnChar);
302     CHK(FORM_OnFocus);
303     CHK(FORM_OnKeyDown);
304     CHK(FORM_OnKeyUp);
305     CHK(FORM_OnLButtonDoubleClick);
306     CHK(FORM_OnLButtonDown);
307     CHK(FORM_OnLButtonUp);
308     CHK(FORM_OnMouseMove);
309     CHK(FORM_OnMouseWheel);
310     CHK(FORM_OnRButtonDown);
311     CHK(FORM_OnRButtonUp);
312     CHK(FORM_Redo);
313     CHK(FORM_ReplaceAndKeepSelection);
314     CHK(FORM_ReplaceSelection);
315     CHK(FORM_SelectAllText);
316     CHK(FORM_SetFocusedAnnot);
317     CHK(FORM_SetIndexSelected);
318     CHK(FORM_Undo);
319     CHK(FPDFDOC_ExitFormFillEnvironment);
320     CHK(FPDFDOC_InitFormFillEnvironment);
321     CHK(FPDFPage_FormFieldZOrderAtPoint);
322     CHK(FPDFPage_HasFormFieldAtPoint);
323     CHK(FPDF_FFLDraw);
324 #if defined(PDF_USE_SKIA)
325     CHK(FPDF_FFLDrawSkia);
326 #endif
327     CHK(FPDF_GetFormType);
328     CHK(FPDF_LoadXFA);
329     CHK(FPDF_RemoveFormFieldHighlight);
330     CHK(FPDF_SetFormFieldHighlightAlpha);
331     CHK(FPDF_SetFormFieldHighlightColor);
332 
333     // fpdf_javascript.h
334     CHK(FPDFDoc_CloseJavaScriptAction);
335     CHK(FPDFDoc_GetJavaScriptAction);
336     CHK(FPDFDoc_GetJavaScriptActionCount);
337     CHK(FPDFJavaScriptAction_GetName);
338     CHK(FPDFJavaScriptAction_GetScript);
339 
340     // fpdf_ppo.h
341     CHK(FPDF_CloseXObject);
342     CHK(FPDF_CopyViewerPreferences);
343     CHK(FPDF_ImportNPagesToOne);
344     CHK(FPDF_ImportPages);
345     CHK(FPDF_ImportPagesByIndex);
346     CHK(FPDF_NewFormObjectFromXObject);
347     CHK(FPDF_NewXObjectFromPage);
348 
349     // fpdf_progressive.h
350     CHK(FPDF_RenderPageBitmapWithColorScheme_Start);
351     CHK(FPDF_RenderPageBitmap_Start);
352     CHK(FPDF_RenderPage_Close);
353     CHK(FPDF_RenderPage_Continue);
354 
355     // fpdf_save.h
356     CHK(FPDF_SaveAsCopy);
357     CHK(FPDF_SaveWithVersion);
358 
359     // fpdf_searchex.h
360     CHK(FPDFText_GetCharIndexFromTextIndex);
361     CHK(FPDFText_GetTextIndexFromCharIndex);
362 
363     // fpdf_signature.h
364     CHK(FPDFSignatureObj_GetByteRange);
365     CHK(FPDFSignatureObj_GetContents);
366     CHK(FPDFSignatureObj_GetDocMDPPermission);
367     CHK(FPDFSignatureObj_GetReason);
368     CHK(FPDFSignatureObj_GetSubFilter);
369     CHK(FPDFSignatureObj_GetTime);
370     CHK(FPDF_GetSignatureCount);
371     CHK(FPDF_GetSignatureObject);
372 
373     // fpdf_structtree.h
374     CHK(FPDF_StructElement_Attr_CountChildren);
375     CHK(FPDF_StructElement_Attr_GetBlobValue);
376     CHK(FPDF_StructElement_Attr_GetBooleanValue);
377     CHK(FPDF_StructElement_Attr_GetChildAtIndex);
378     CHK(FPDF_StructElement_Attr_GetCount);
379     CHK(FPDF_StructElement_Attr_GetName);
380     CHK(FPDF_StructElement_Attr_GetNumberValue);
381     CHK(FPDF_StructElement_Attr_GetStringValue);
382     CHK(FPDF_StructElement_Attr_GetType);
383     CHK(FPDF_StructElement_Attr_GetValue);
384     CHK(FPDF_StructElement_CountChildren);
385     CHK(FPDF_StructElement_GetActualText);
386     CHK(FPDF_StructElement_GetAltText);
387     CHK(FPDF_StructElement_GetAttributeAtIndex);
388     CHK(FPDF_StructElement_GetAttributeCount);
389     CHK(FPDF_StructElement_GetChildAtIndex);
390     CHK(FPDF_StructElement_GetChildMarkedContentID);
391     CHK(FPDF_StructElement_GetID);
392     CHK(FPDF_StructElement_GetLang);
393     CHK(FPDF_StructElement_GetMarkedContentID);
394     CHK(FPDF_StructElement_GetMarkedContentIdAtIndex);
395     CHK(FPDF_StructElement_GetMarkedContentIdCount);
396     CHK(FPDF_StructElement_GetObjType);
397     CHK(FPDF_StructElement_GetParent);
398     CHK(FPDF_StructElement_GetStringAttribute);
399     CHK(FPDF_StructElement_GetTitle);
400     CHK(FPDF_StructElement_GetType);
401     CHK(FPDF_StructTree_Close);
402     CHK(FPDF_StructTree_CountChildren);
403     CHK(FPDF_StructTree_GetChildAtIndex);
404     CHK(FPDF_StructTree_GetForPage);
405 
406     // fpdf_sysfontinfo.h
407     CHK(FPDF_AddInstalledFont);
408     CHK(FPDF_FreeDefaultSystemFontInfo);
409     CHK(FPDF_GetDefaultSystemFontInfo);
410     CHK(FPDF_GetDefaultTTFMap);
411     CHK(FPDF_GetDefaultTTFMapCount);
412     CHK(FPDF_GetDefaultTTFMapEntry);
413     CHK(FPDF_SetSystemFontInfo);
414 
415     // fpdf_text.h
416     CHK(FPDFLink_CloseWebLinks);
417     CHK(FPDFLink_CountRects);
418     CHK(FPDFLink_CountWebLinks);
419     CHK(FPDFLink_GetRect);
420     CHK(FPDFLink_GetTextRange);
421     CHK(FPDFLink_GetURL);
422     CHK(FPDFLink_LoadWebLinks);
423     CHK(FPDFText_ClosePage);
424     CHK(FPDFText_CountChars);
425     CHK(FPDFText_CountRects);
426     CHK(FPDFText_FindClose);
427     CHK(FPDFText_FindNext);
428     CHK(FPDFText_FindPrev);
429     CHK(FPDFText_FindStart);
430     CHK(FPDFText_GetBoundedText);
431     CHK(FPDFText_GetCharAngle);
432     CHK(FPDFText_GetCharBox);
433     CHK(FPDFText_GetCharIndexAtPos);
434     CHK(FPDFText_GetCharOrigin);
435     CHK(FPDFText_GetFillColor);
436     CHK(FPDFText_GetFontInfo);
437     CHK(FPDFText_GetFontSize);
438     CHK(FPDFText_GetFontWeight);
439     CHK(FPDFText_GetLooseCharBox);
440     CHK(FPDFText_GetMatrix);
441     CHK(FPDFText_GetRect);
442     CHK(FPDFText_GetSchCount);
443     CHK(FPDFText_GetSchResultIndex);
444     CHK(FPDFText_GetStrokeColor);
445     CHK(FPDFText_GetText);
446     CHK(FPDFText_GetTextObject);
447     CHK(FPDFText_GetUnicode);
448     CHK(FPDFText_HasUnicodeMapError);
449     CHK(FPDFText_IsGenerated);
450     CHK(FPDFText_IsHyphen);
451     CHK(FPDFText_LoadPage);
452 
453     // fpdf_thumbnail.h
454     CHK(FPDFPage_GetDecodedThumbnailData);
455     CHK(FPDFPage_GetRawThumbnailData);
456     CHK(FPDFPage_GetThumbnailAsBitmap);
457 
458     // fpdf_transformpage.h
459     CHK(FPDFClipPath_CountPathSegments);
460     CHK(FPDFClipPath_CountPaths);
461     CHK(FPDFClipPath_GetPathSegment);
462     CHK(FPDFPageObj_GetClipPath);
463     CHK(FPDFPageObj_TransformClipPath);
464     CHK(FPDFPage_GetArtBox);
465     CHK(FPDFPage_GetBleedBox);
466     CHK(FPDFPage_GetCropBox);
467     CHK(FPDFPage_GetMediaBox);
468     CHK(FPDFPage_GetTrimBox);
469     CHK(FPDFPage_InsertClipPath);
470     CHK(FPDFPage_SetArtBox);
471     CHK(FPDFPage_SetBleedBox);
472     CHK(FPDFPage_SetCropBox);
473     CHK(FPDFPage_SetMediaBox);
474     CHK(FPDFPage_SetTrimBox);
475     CHK(FPDFPage_TransFormWithClip);
476     CHK(FPDF_CreateClipPath);
477     CHK(FPDF_DestroyClipPath);
478 
479     // fpdfview.h
480     CHK(FPDFBitmap_Create);
481     CHK(FPDFBitmap_CreateEx);
482     CHK(FPDFBitmap_Destroy);
483     CHK(FPDFBitmap_FillRect);
484     CHK(FPDFBitmap_GetBuffer);
485     CHK(FPDFBitmap_GetFormat);
486     CHK(FPDFBitmap_GetHeight);
487     CHK(FPDFBitmap_GetStride);
488     CHK(FPDFBitmap_GetWidth);
489 #ifdef PDF_ENABLE_XFA
490     CHK(FPDF_BStr_Clear);
491     CHK(FPDF_BStr_Init);
492     CHK(FPDF_BStr_Set);
493 #endif
494     CHK(FPDF_CloseDocument);
495     CHK(FPDF_ClosePage);
496     CHK(FPDF_CountNamedDests);
497     CHK(FPDF_DestroyLibrary);
498     CHK(FPDF_DeviceToPage);
499     CHK(FPDF_DocumentHasValidCrossReferenceTable);
500 #ifdef PDF_ENABLE_V8
501     CHK(FPDF_GetArrayBufferAllocatorSharedInstance);
502 #endif
503     CHK(FPDF_GetDocPermissions);
504     CHK(FPDF_GetDocUserPermissions);
505     CHK(FPDF_GetFileVersion);
506     CHK(FPDF_GetLastError);
507     CHK(FPDF_GetNamedDest);
508     CHK(FPDF_GetNamedDestByName);
509     CHK(FPDF_GetPageBoundingBox);
510     CHK(FPDF_GetPageCount);
511     CHK(FPDF_GetPageHeight);
512     CHK(FPDF_GetPageHeightF);
513     CHK(FPDF_GetPageSizeByIndex);
514     CHK(FPDF_GetPageSizeByIndexF);
515     CHK(FPDF_GetPageWidth);
516     CHK(FPDF_GetPageWidthF);
517 #ifdef PDF_ENABLE_V8
518     CHK(FPDF_GetRecommendedV8Flags);
519 #endif
520     CHK(FPDF_GetSecurityHandlerRevision);
521     CHK(FPDF_GetTrailerEnds);
522     CHK(FPDF_GetXFAPacketContent);
523     CHK(FPDF_GetXFAPacketCount);
524     CHK(FPDF_GetXFAPacketName);
525     CHK(FPDF_InitLibrary);
526     CHK(FPDF_InitLibraryWithConfig);
527     CHK(FPDF_LoadCustomDocument);
528     CHK(FPDF_LoadDocument);
529     CHK(FPDF_LoadMemDocument);
530     CHK(FPDF_LoadMemDocument64);
531     CHK(FPDF_LoadPage);
532     CHK(FPDF_PageToDevice);
533 #ifdef _WIN32
534     CHK(FPDF_RenderPage);
535 #endif
536     CHK(FPDF_RenderPageBitmap);
537     CHK(FPDF_RenderPageBitmapWithMatrix);
538 #if defined(PDF_USE_SKIA)
539     CHK(FPDF_RenderPageSkia);
540 #endif
541 #if defined(_WIN32)
542     CHK(FPDF_SetPrintMode);
543 #endif
544     CHK(FPDF_SetSandBoxPolicy);
545     CHK(FPDF_VIEWERREF_GetDuplex);
546     CHK(FPDF_VIEWERREF_GetName);
547     CHK(FPDF_VIEWERREF_GetNumCopies);
548     CHK(FPDF_VIEWERREF_GetPrintPageRange);
549     CHK(FPDF_VIEWERREF_GetPrintPageRangeCount);
550     CHK(FPDF_VIEWERREF_GetPrintPageRangeElement);
551     CHK(FPDF_VIEWERREF_GetPrintScaling);
552 
553     return 1;
554 }
555 
556 #undef CHK
557