John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
Lei Zhang | a6d9f0e | 2015-06-13 00:48:38 -0700 | [diff] [blame] | 4 | |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Dan Sinclair | 00d47a6 | 2018-03-28 18:39:04 +0000 | [diff] [blame] | 7 | #ifndef FPDFSDK_CPDFSDK_HELPERS_H_ |
| 8 | #define FPDFSDK_CPDFSDK_HELPERS_H_ |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 9 | |
Lei Zhang | bc10648 | 2019-05-30 23:55:19 +0000 | [diff] [blame] | 10 | #include "build/build_config.h" |
Tom Sepez | 101535f | 2018-06-12 13:36:05 +0000 | [diff] [blame] | 11 | #include "core/fpdfapi/page/cpdf_page.h" |
dsinclair | 488b7ad | 2016-10-04 11:55:50 -0700 | [diff] [blame] | 12 | #include "core/fpdfapi/parser/cpdf_parser.h" |
Nicolas Pena | 37cc5fb | 2017-04-04 12:12:49 -0400 | [diff] [blame] | 13 | #include "core/fxge/dib/cfx_dibitmap.h" |
Lei Zhang | aaed698 | 2018-03-22 18:39:05 +0000 | [diff] [blame] | 14 | #include "public/fpdf_doc.h" |
Tom Sepez | 20c946f | 2019-07-31 19:33:21 +0000 | [diff] [blame] | 15 | #include "public/fpdf_ext.h" |
Tom Sepez | 40e9ff3 | 2015-11-30 12:39:54 -0800 | [diff] [blame] | 16 | #include "public/fpdfview.h" |
| 17 | |
Tom Sepez | 51da093 | 2015-11-25 16:05:49 -0800 | [diff] [blame] | 18 | #ifdef PDF_ENABLE_XFA |
Tom Sepez | a1d3442 | 2018-04-24 20:54:41 +0000 | [diff] [blame] | 19 | #include "core/fxcrt/fx_stream.h" |
Tom Sepez | 40e9ff3 | 2015-11-30 12:39:54 -0800 | [diff] [blame] | 20 | #endif // PDF_ENABLE_XFA |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 21 | |
Lei Zhang | bc10648 | 2019-05-30 23:55:19 +0000 | [diff] [blame] | 22 | #if defined(OS_WIN) |
Tom Sepez | 75f43c4 | 2015-07-15 16:35:53 -0700 | [diff] [blame] | 23 | #include <math.h> |
Dan Sinclair | 61046b9 | 2016-02-18 14:48:48 -0500 | [diff] [blame] | 24 | #include <tchar.h> |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 25 | #endif |
| 26 | |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 27 | class CPDF_Annot; |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 28 | class CPDF_AnnotContext; |
| 29 | class CPDF_ClipPath; |
| 30 | class CPDF_ContentMarkItem; |
| 31 | class CPDF_Object; |
| 32 | class CPDF_Font; |
| 33 | class CPDF_LinkExtract; |
Jane Liu | baa7ff4 | 2017-06-29 19:18:23 -0400 | [diff] [blame] | 34 | class CPDF_PageObject; |
weili | 9f515bc | 2016-07-24 08:08:24 -0700 | [diff] [blame] | 35 | class CPDF_PageRenderContext; |
Jane Liu | 548334e | 2017-08-03 16:33:40 -0400 | [diff] [blame] | 36 | class CPDF_Stream; |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 37 | class CPDF_StructElement; |
| 38 | class CPDF_StructTree; |
| 39 | class CPDF_TextPage; |
| 40 | class CPDF_TextPageFind; |
Tom Sepez | 2563fc3 | 2018-08-01 19:13:06 +0000 | [diff] [blame] | 41 | class CPDFSDK_FormFillEnvironment; |
Lei Zhang | e6fcdfa | 2019-02-14 04:07:09 +0000 | [diff] [blame] | 42 | class CPDFSDK_InteractiveForm; |
Tom Sepez | 269f2ae | 2019-08-20 19:31:17 +0000 | [diff] [blame] | 43 | class CPDFSDK_PauseAdapter; |
Miklos Vajna | 36eed87 | 2017-09-20 22:52:43 +0200 | [diff] [blame] | 44 | class FX_PATHPOINT; |
Lei Zhang | 25661d1 | 2019-08-01 21:57:23 +0000 | [diff] [blame] | 45 | struct CPDF_JavaScript; |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 46 | |
Tom Sepez | 50d12ad | 2015-11-24 09:50:51 -0800 | [diff] [blame] | 47 | // Conversions to/from underlying types. |
Tom Sepez | 101535f | 2018-06-12 13:36:05 +0000 | [diff] [blame] | 48 | IPDF_Page* IPDFPageFromFPDFPage(FPDF_PAGE page); |
| 49 | FPDF_PAGE FPDFPageFromIPDFPage(IPDF_Page* page); |
Tom Sepez | db0be96 | 2015-10-16 14:00:21 -0700 | [diff] [blame] | 50 | CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 51 | FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); |
| 52 | CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
| 53 | |
| 54 | // Conversions to/from incomplete FPDF_ API types. |
Tom Sepez | 92f98b8 | 2019-07-26 20:32:35 +0000 | [diff] [blame] | 55 | inline FPDF_ACTION FPDFActionFromCPDFDictionary(const CPDF_Dictionary* action) { |
| 56 | return reinterpret_cast<FPDF_ACTION>(const_cast<CPDF_Dictionary*>(action)); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 57 | } |
Tom Sepez | 2292360 | 2019-07-15 21:33:35 +0000 | [diff] [blame] | 58 | inline CPDF_Dictionary* CPDFDictionaryFromFPDFAction(FPDF_ACTION action) { |
| 59 | return reinterpret_cast<CPDF_Dictionary*>(action); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | inline FPDF_ANNOTATION FPDFAnnotationFromCPDFAnnotContext( |
| 63 | CPDF_AnnotContext* annot) { |
| 64 | return reinterpret_cast<FPDF_ANNOTATION>(annot); |
| 65 | } |
| 66 | inline CPDF_AnnotContext* CPDFAnnotContextFromFPDFAnnotation( |
| 67 | FPDF_ANNOTATION annot) { |
| 68 | return reinterpret_cast<CPDF_AnnotContext*>(annot); |
| 69 | } |
| 70 | |
| 71 | inline FPDF_ATTACHMENT FPDFAttachmentFromCPDFObject(CPDF_Object* attachment) { |
| 72 | return reinterpret_cast<FPDF_ATTACHMENT>(attachment); |
| 73 | } |
| 74 | inline CPDF_Object* CPDFObjectFromFPDFAttachment(FPDF_ATTACHMENT attachment) { |
| 75 | return reinterpret_cast<CPDF_Object*>(attachment); |
| 76 | } |
| 77 | |
| 78 | inline FPDF_BITMAP FPDFBitmapFromCFXDIBitmap(CFX_DIBitmap* bitmap) { |
| 79 | return reinterpret_cast<FPDF_BITMAP>(bitmap); |
| 80 | } |
| 81 | inline CFX_DIBitmap* CFXDIBitmapFromFPDFBitmap(FPDF_BITMAP bitmap) { |
| 82 | return reinterpret_cast<CFX_DIBitmap*>(bitmap); |
| 83 | } |
| 84 | |
Tom Sepez | 92f98b8 | 2019-07-26 20:32:35 +0000 | [diff] [blame] | 85 | inline FPDF_BOOKMARK FPDFBookmarkFromCPDFDictionary( |
| 86 | const CPDF_Dictionary* bookmark) { |
| 87 | return reinterpret_cast<FPDF_BOOKMARK>( |
| 88 | const_cast<CPDF_Dictionary*>(bookmark)); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 89 | } |
Tom Sepez | 2292360 | 2019-07-15 21:33:35 +0000 | [diff] [blame] | 90 | inline CPDF_Dictionary* CPDFDictionaryFromFPDFBookmark(FPDF_BOOKMARK bookmark) { |
| 91 | return reinterpret_cast<CPDF_Dictionary*>(bookmark); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | inline FPDF_CLIPPATH FPDFClipPathFromCPDFClipPath(CPDF_ClipPath* path) { |
| 95 | return reinterpret_cast<FPDF_CLIPPATH>(path); |
| 96 | } |
| 97 | inline CPDF_ClipPath* CPDFClipPathFromFPDFClipPath(FPDF_CLIPPATH path) { |
| 98 | return reinterpret_cast<CPDF_ClipPath*>(path); |
| 99 | } |
| 100 | |
Tom Sepez | 92f98b8 | 2019-07-26 20:32:35 +0000 | [diff] [blame] | 101 | inline FPDF_DEST FPDFDestFromCPDFArray(const CPDF_Array* dest) { |
| 102 | return reinterpret_cast<FPDF_DEST>(const_cast<CPDF_Array*>(dest)); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 103 | } |
Tom Sepez | 2292360 | 2019-07-15 21:33:35 +0000 | [diff] [blame] | 104 | inline CPDF_Array* CPDFArrayFromFPDFDest(FPDF_DEST dest) { |
| 105 | return reinterpret_cast<CPDF_Array*>(dest); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | inline FPDF_FONT FPDFFontFromCPDFFont(CPDF_Font* font) { |
| 109 | return reinterpret_cast<FPDF_FONT>(font); |
| 110 | } |
| 111 | inline CPDF_Font* CPDFFontFromFPDFFont(FPDF_FONT font) { |
| 112 | return reinterpret_cast<CPDF_Font*>(font); |
| 113 | } |
| 114 | |
Lei Zhang | 25661d1 | 2019-08-01 21:57:23 +0000 | [diff] [blame] | 115 | inline FPDF_JAVASCRIPT_ACTION FPDFJavaScriptActionFromCPDFJavaScriptAction( |
| 116 | CPDF_JavaScript* javascript) { |
| 117 | return reinterpret_cast<FPDF_JAVASCRIPT_ACTION>(javascript); |
| 118 | } |
| 119 | inline CPDF_JavaScript* CPDFJavaScriptActionFromFPDFJavaScriptAction( |
| 120 | FPDF_JAVASCRIPT_ACTION javascript) { |
| 121 | return reinterpret_cast<CPDF_JavaScript*>(javascript); |
| 122 | } |
| 123 | |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 124 | inline FPDF_LINK FPDFLinkFromCPDFDictionary(CPDF_Dictionary* link) { |
| 125 | return reinterpret_cast<FPDF_LINK>(link); |
| 126 | } |
| 127 | inline CPDF_Dictionary* CPDFDictionaryFromFPDFLink(FPDF_LINK link) { |
| 128 | return reinterpret_cast<CPDF_Dictionary*>(link); |
| 129 | } |
| 130 | |
| 131 | inline FPDF_PAGELINK FPDFPageLinkFromCPDFLinkExtract(CPDF_LinkExtract* link) { |
| 132 | return reinterpret_cast<FPDF_PAGELINK>(link); |
| 133 | } |
| 134 | inline CPDF_LinkExtract* CPDFLinkExtractFromFPDFPageLink(FPDF_PAGELINK link) { |
| 135 | return reinterpret_cast<CPDF_LinkExtract*>(link); |
| 136 | } |
| 137 | |
| 138 | inline FPDF_PAGEOBJECT FPDFPageObjectFromCPDFPageObject( |
| 139 | CPDF_PageObject* page_object) { |
| 140 | return reinterpret_cast<FPDF_PAGEOBJECT>(page_object); |
| 141 | } |
| 142 | inline CPDF_PageObject* CPDFPageObjectFromFPDFPageObject( |
| 143 | FPDF_PAGEOBJECT page_object) { |
| 144 | return reinterpret_cast<CPDF_PageObject*>(page_object); |
| 145 | } |
| 146 | |
| 147 | inline FPDF_PAGEOBJECTMARK FPDFPageObjectMarkFromCPDFContentMarkItem( |
Henrique Nakashima | 144107d | 2018-07-10 21:04:05 +0000 | [diff] [blame] | 148 | CPDF_ContentMarkItem* mark) { |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 149 | return reinterpret_cast<FPDF_PAGEOBJECTMARK>(mark); |
| 150 | } |
Henrique Nakashima | 144107d | 2018-07-10 21:04:05 +0000 | [diff] [blame] | 151 | inline CPDF_ContentMarkItem* CPDFContentMarkItemFromFPDFPageObjectMark( |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 152 | FPDF_PAGEOBJECTMARK mark) { |
Henrique Nakashima | 144107d | 2018-07-10 21:04:05 +0000 | [diff] [blame] | 153 | return reinterpret_cast<CPDF_ContentMarkItem*>(mark); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 154 | } |
| 155 | |
Tom Sepez | 2292360 | 2019-07-15 21:33:35 +0000 | [diff] [blame] | 156 | inline FPDF_PAGERANGE FPDFPageRangeFromCPDFArray(CPDF_Array* range) { |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 157 | return reinterpret_cast<FPDF_PAGERANGE>(range); |
| 158 | } |
Tom Sepez | 2292360 | 2019-07-15 21:33:35 +0000 | [diff] [blame] | 159 | inline CPDF_Array* CPDFArrayFromFPDFPageRange(FPDF_PAGERANGE range) { |
| 160 | return reinterpret_cast<CPDF_Array*>(range); |
Tom Sepez | 525147a | 2018-05-03 17:19:53 +0000 | [diff] [blame] | 161 | } |
| 162 | |
| 163 | inline FPDF_PATHSEGMENT FPDFPathSegmentFromFXPathPoint( |
| 164 | const FX_PATHPOINT* segment) { |
| 165 | return reinterpret_cast<FPDF_PATHSEGMENT>(segment); |
| 166 | } |
| 167 | inline const FX_PATHPOINT* FXPathPointFromFPDFPathSegment( |
| 168 | FPDF_PATHSEGMENT segment) { |
| 169 | return reinterpret_cast<const FX_PATHPOINT*>(segment); |
| 170 | } |
| 171 | |
| 172 | inline FPDF_STRUCTTREE FPDFStructTreeFromCPDFStructTree( |
| 173 | CPDF_StructTree* struct_tree) { |
| 174 | return reinterpret_cast<FPDF_STRUCTTREE>(struct_tree); |
| 175 | } |
| 176 | inline CPDF_StructTree* CPDFStructTreeFromFPDFStructTree( |
| 177 | FPDF_STRUCTTREE struct_tree) { |
| 178 | return reinterpret_cast<CPDF_StructTree*>(struct_tree); |
| 179 | } |
| 180 | |
| 181 | inline FPDF_STRUCTELEMENT FPDFStructElementFromCPDFStructElement( |
| 182 | CPDF_StructElement* struct_element) { |
| 183 | return reinterpret_cast<FPDF_STRUCTELEMENT>(struct_element); |
| 184 | } |
| 185 | inline CPDF_StructElement* CPDFStructElementFromFPDFStructElement( |
| 186 | FPDF_STRUCTELEMENT struct_element) { |
| 187 | return reinterpret_cast<CPDF_StructElement*>(struct_element); |
| 188 | } |
| 189 | |
| 190 | inline FPDF_TEXTPAGE FPDFTextPageFromCPDFTextPage(CPDF_TextPage* page) { |
| 191 | return reinterpret_cast<FPDF_TEXTPAGE>(page); |
| 192 | } |
| 193 | inline CPDF_TextPage* CPDFTextPageFromFPDFTextPage(FPDF_TEXTPAGE page) { |
| 194 | return reinterpret_cast<CPDF_TextPage*>(page); |
| 195 | } |
| 196 | |
| 197 | inline FPDF_SCHHANDLE FPDFSchHandleFromCPDFTextPageFind( |
| 198 | CPDF_TextPageFind* handle) { |
| 199 | return reinterpret_cast<FPDF_SCHHANDLE>(handle); |
| 200 | } |
| 201 | inline CPDF_TextPageFind* CPDFTextPageFindFromFPDFSchHandle( |
| 202 | FPDF_SCHHANDLE handle) { |
| 203 | return reinterpret_cast<CPDF_TextPageFind*>(handle); |
| 204 | } |
| 205 | |
Tom Sepez | 2563fc3 | 2018-08-01 19:13:06 +0000 | [diff] [blame] | 206 | inline FPDF_FORMHANDLE FPDFFormHandleFromCPDFSDKFormFillEnvironment( |
| 207 | CPDFSDK_FormFillEnvironment* handle) { |
| 208 | return reinterpret_cast<FPDF_FORMHANDLE>(handle); |
| 209 | } |
| 210 | inline CPDFSDK_FormFillEnvironment* |
| 211 | CPDFSDKFormFillEnvironmentFromFPDFFormHandle(FPDF_FORMHANDLE handle) { |
| 212 | return reinterpret_cast<CPDFSDK_FormFillEnvironment*>(handle); |
| 213 | } |
| 214 | |
Lei Zhang | e6fcdfa | 2019-02-14 04:07:09 +0000 | [diff] [blame] | 215 | CPDFSDK_InteractiveForm* FormHandleToInteractiveForm(FPDF_FORMHANDLE hHandle); |
| 216 | |
Lei Zhang | b46a763 | 2019-01-09 02:56:16 +0000 | [diff] [blame] | 217 | ByteString ByteStringFromFPDFWideString(FPDF_WIDESTRING wide_string); |
Lei Zhang | f5fcd9e | 2018-12-23 03:11:50 +0000 | [diff] [blame] | 218 | WideString WideStringFromFPDFWideString(FPDF_WIDESTRING wide_string); |
| 219 | |
Dan Sinclair | 7aba472 | 2018-03-28 17:04:16 +0000 | [diff] [blame] | 220 | #ifdef PDF_ENABLE_XFA |
| 221 | // Layering prevents fxcrt from knowing about FPDF_FILEHANDLER, so this can't |
| 222 | // be a static method of IFX_SeekableStream. |
| 223 | RetainPtr<IFX_SeekableStream> MakeSeekableStream( |
| 224 | FPDF_FILEHANDLER* pFileHandler); |
| 225 | #endif // PDF_ENABLE_XFA |
Lei Zhang | 11767d3 | 2018-03-21 18:59:44 +0000 | [diff] [blame] | 226 | |
Lei Zhang | 5cee3f2 | 2018-05-25 21:48:49 +0000 | [diff] [blame] | 227 | const CPDF_Array* GetQuadPointsArrayFromDictionary(const CPDF_Dictionary* dict); |
| 228 | CPDF_Array* GetQuadPointsArrayFromDictionary(CPDF_Dictionary* dict); |
Ralf Sippl | 1638179 | 2018-04-12 21:20:26 +0000 | [diff] [blame] | 229 | CPDF_Array* AddQuadPointsArrayToDictionary(CPDF_Dictionary* dict); |
| 230 | bool IsValidQuadPointsIndex(const CPDF_Array* array, size_t index); |
| 231 | bool GetQuadPointsAtIndex(const CPDF_Array* array, |
| 232 | size_t quad_index, |
| 233 | FS_QUADPOINTSF* quad_points); |
Lei Zhang | aaed698 | 2018-03-22 18:39:05 +0000 | [diff] [blame] | 234 | |
Lei Zhang | 367e7de | 2017-10-31 13:32:17 +0000 | [diff] [blame] | 235 | CFX_FloatRect CFXFloatRectFromFSRECTF(const FS_RECTF& rect); |
Lei Zhang | 3567c61 | 2019-11-18 18:10:02 +0000 | [diff] [blame] | 236 | FS_RECTF FSRECTFFromCFXFloatRect(const CFX_FloatRect& rect); |
Lei Zhang | 367e7de | 2017-10-31 13:32:17 +0000 | [diff] [blame] | 237 | |
Lei Zhang | 6fef1e4 | 2018-12-20 19:14:02 +0000 | [diff] [blame] | 238 | CFX_Matrix CFXMatrixFromFSMatrix(const FS_MATRIX& matrix); |
| 239 | |
Ryan Harrison | 275e260 | 2017-09-18 14:23:18 -0400 | [diff] [blame] | 240 | unsigned long Utf16EncodeMaybeCopyAndReturnLength(const WideString& text, |
Jane Liu | 18ae06d | 2017-07-18 10:15:16 -0400 | [diff] [blame] | 241 | void* buffer, |
| 242 | unsigned long buflen); |
Jeremy Chinsen | 617a2e8 | 2019-06-20 00:11:12 +0000 | [diff] [blame] | 243 | |
| 244 | // Returns the length of the raw stream data from |stream|. The raw data is the |
| 245 | // stream's data as stored in the PDF without applying any filters. If |buffer| |
| 246 | // is non-nullptr and |buflen| is large enough to contain the raw data, then |
| 247 | // the raw data is copied into |buffer|. |
| 248 | unsigned long GetRawStreamMaybeCopyAndReturnLength(const CPDF_Stream* stream, |
| 249 | void* buffer, |
| 250 | unsigned long buflen); |
| 251 | |
| 252 | // Return the length of the decoded stream data of |stream|. The decoded data is |
| 253 | // the uncompressed stream data, i.e. the raw stream data after having all |
| 254 | // filters applied. If |buffer| is non-nullptr and |buflen| is large enough to |
| 255 | // contain the decoded data, then the decoded data is copied into |buffer|. |
Jane Liu | 548334e | 2017-08-03 16:33:40 -0400 | [diff] [blame] | 256 | unsigned long DecodeStreamMaybeCopyAndReturnLength(const CPDF_Stream* stream, |
| 257 | void* buffer, |
| 258 | unsigned long buflen); |
| 259 | |
Tom Sepez | 69a4a70 | 2019-07-31 17:59:49 +0000 | [diff] [blame] | 260 | void SetPDFSandboxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
| 261 | FPDF_BOOL IsPDFSandboxPolicyEnabled(FPDF_DWORD policy); |
Dan Sinclair | 7aba472 | 2018-03-28 17:04:16 +0000 | [diff] [blame] | 262 | |
| 263 | // TODO(dsinclair): Where should this live? |
Tom Sepez | ce61357 | 2019-11-07 19:44:11 +0000 | [diff] [blame] | 264 | void RenderPageWithContext(CPDF_Page* pPage, |
| 265 | CPDF_PageRenderContext* pContext, |
Tom Sepez | 59d2a59 | 2018-09-14 19:51:10 +0000 | [diff] [blame] | 266 | int start_x, |
| 267 | int start_y, |
| 268 | int size_x, |
| 269 | int size_y, |
| 270 | int rotate, |
| 271 | int flags, |
| 272 | bool bNeedToRestore, |
Tom Sepez | 269f2ae | 2019-08-20 19:31:17 +0000 | [diff] [blame] | 273 | CPDFSDK_PauseAdapter* pause); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 274 | |
Tom Sepez | 20c946f | 2019-07-31 19:33:21 +0000 | [diff] [blame] | 275 | void SetPDFUnsupportInfo(UNSUPPORT_INFO* unsp_info); |
| 276 | UNSUPPORT_INFO* GetPDFUnssuportInto(); |
Tom Sepez | 8128485 | 2018-06-12 19:26:15 +0000 | [diff] [blame] | 277 | void ReportUnsupportedFeatures(CPDF_Document* pDoc); |
Ryan Smith | 69fce9b | 2019-03-11 21:53:42 +0000 | [diff] [blame] | 278 | void CheckForUnsupportedAnnot(const CPDF_Annot* pAnnot); |
Tom Sepez | f10ae63 | 2016-01-26 14:19:52 -0800 | [diff] [blame] | 279 | void ProcessParseError(CPDF_Parser::Error err); |
Dan Sinclair | 7aba472 | 2018-03-28 17:04:16 +0000 | [diff] [blame] | 280 | |
Dan Sinclair | 00d47a6 | 2018-03-28 18:39:04 +0000 | [diff] [blame] | 281 | #endif // FPDFSDK_CPDFSDK_HELPERS_H_ |