Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdfsdk_helpers.h File Reference

(0ccf980226462398d5097987466bcffd8236e1e9)

#include <vector>
#include "build/build_config.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/parser/cpdf_parser.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/retain_ptr.h"
#include "core/fxcrt/span.h"
#include "core/fxge/cfx_path.h"
#include "core/fxge/dib/fx_dib.h"
#include "public/fpdf_doc.h"
#include "public/fpdf_ext.h"
#include "public/fpdfview.h"
Include dependency graph for cpdfsdk_helpers.h:

Go to the source code of this file.

Functions

IPDF_PageIPDFPageFromFPDFPage (FPDF_PAGE page)
FPDF_PAGE FPDFPageFromIPDFPage (IPDF_Page *page)
CPDF_PageCPDFPageFromFPDFPage (FPDF_PAGE page)
FPDF_DOCUMENT FPDFDocumentFromCPDFDocument (CPDF_Document *doc)
CPDF_DocumentCPDFDocumentFromFPDFDocument (FPDF_DOCUMENT doc)
FPDF_ACTION FPDFActionFromCPDFDictionary (const CPDF_Dictionary *action)
CPDF_DictionaryCPDFDictionaryFromFPDFAction (FPDF_ACTION action)
FPDF_ANNOTATION FPDFAnnotationFromCPDFAnnotContext (CPDF_AnnotContext *annot)
CPDF_AnnotContextCPDFAnnotContextFromFPDFAnnotation (FPDF_ANNOTATION annot)
FPDF_ATTACHMENT FPDFAttachmentFromCPDFObject (CPDF_Object *attachment)
CPDF_ObjectCPDFObjectFromFPDFAttachment (FPDF_ATTACHMENT attachment)
FPDF_BITMAP FPDFBitmapFromCFXDIBitmap (CFX_DIBitmap *bitmap)
CFX_DIBitmapCFXDIBitmapFromFPDFBitmap (FPDF_BITMAP bitmap)
FPDF_BOOKMARK FPDFBookmarkFromCPDFDictionary (const CPDF_Dictionary *bookmark)
CPDF_DictionaryCPDFDictionaryFromFPDFBookmark (FPDF_BOOKMARK bookmark)
FPDF_CLIPPATH FPDFClipPathFromCPDFClipPath (CPDF_ClipPath *path)
CPDF_ClipPathCPDFClipPathFromFPDFClipPath (FPDF_CLIPPATH path)
FPDF_DEST FPDFDestFromCPDFArray (const CPDF_Array *dest)
CPDF_ArrayCPDFArrayFromFPDFDest (FPDF_DEST dest)
FPDF_FONT FPDFFontFromCPDFFont (CPDF_Font *font)
CPDF_FontCPDFFontFromFPDFFont (FPDF_FONT font)
FPDF_JAVASCRIPT_ACTION FPDFJavaScriptActionFromCPDFJavaScriptAction (CPDF_JavaScript *javascript)
CPDF_JavaScriptCPDFJavaScriptActionFromFPDFJavaScriptAction (FPDF_JAVASCRIPT_ACTION javascript)
FPDF_LINK FPDFLinkFromCPDFDictionary (CPDF_Dictionary *link)
CPDF_DictionaryCPDFDictionaryFromFPDFLink (FPDF_LINK link)
FPDF_PAGELINK FPDFPageLinkFromCPDFLinkExtract (CPDF_LinkExtract *link)
CPDF_LinkExtractCPDFLinkExtractFromFPDFPageLink (FPDF_PAGELINK link)
FPDF_PAGEOBJECT FPDFPageObjectFromCPDFPageObject (CPDF_PageObject *page_object)
CPDF_PageObjectCPDFPageObjectFromFPDFPageObject (FPDF_PAGEOBJECT page_object)
FPDF_PAGEOBJECTMARK FPDFPageObjectMarkFromCPDFContentMarkItem (CPDF_ContentMarkItem *mark)
CPDF_ContentMarkItemCPDFContentMarkItemFromFPDFPageObjectMark (FPDF_PAGEOBJECTMARK mark)
FPDF_PAGERANGE FPDFPageRangeFromCPDFArray (const CPDF_Array *range)
const CPDF_ArrayCPDFArrayFromFPDFPageRange (FPDF_PAGERANGE range)
FPDF_PATHSEGMENT FPDFPathSegmentFromFXPathPoint (const CFX_Path::Point *segment)
const CFX_Path::PointFXPathPointFromFPDFPathSegment (FPDF_PATHSEGMENT segment)
FPDF_STRUCTTREE FPDFStructTreeFromCPDFStructTree (CPDF_StructTree *struct_tree)
CPDF_StructTreeCPDFStructTreeFromFPDFStructTree (FPDF_STRUCTTREE struct_tree)
FPDF_STRUCTELEMENT FPDFStructElementFromCPDFStructElement (CPDF_StructElement *struct_element)
CPDF_StructElementCPDFStructElementFromFPDFStructElement (FPDF_STRUCTELEMENT struct_element)
FPDF_STRUCTELEMENT_ATTR FPDFStructElementAttrFromCPDFDictionary (const CPDF_Dictionary *dictionary)
const CPDF_DictionaryCPDFDictionaryFromFPDFStructElementAttr (FPDF_STRUCTELEMENT_ATTR struct_element_attr)
FPDF_STRUCTELEMENT_ATTR_VALUE FPDFStructElementAttrValueFromCPDFObject (const CPDF_Object *object)
const CPDF_ObjectCPDFObjectFromFPDFStructElementAttrValue (FPDF_STRUCTELEMENT_ATTR_VALUE struct_element_attr_value)
FPDF_TEXTPAGE FPDFTextPageFromCPDFTextPage (CPDF_TextPage *page)
CPDF_TextPageCPDFTextPageFromFPDFTextPage (FPDF_TEXTPAGE page)
FPDF_SCHHANDLE FPDFSchHandleFromCPDFTextPageFind (CPDF_TextPageFind *handle)
CPDF_TextPageFindCPDFTextPageFindFromFPDFSchHandle (FPDF_SCHHANDLE handle)
FPDF_FORMHANDLE FPDFFormHandleFromCPDFSDKFormFillEnvironment (CPDFSDK_FormFillEnvironment *handle)
CPDFSDK_FormFillEnvironmentCPDFSDKFormFillEnvironmentFromFPDFFormHandle (FPDF_FORMHANDLE handle)
FPDF_SIGNATURE FPDFSignatureFromCPDFDictionary (const CPDF_Dictionary *dictionary)
const CPDF_DictionaryCPDFDictionaryFromFPDFSignature (FPDF_SIGNATURE signature)
FPDF_XOBJECT FPDFXObjectFromXObjectContext (XObjectContext *xobject)
XObjectContextXObjectContextFromFPDFXObject (FPDF_XOBJECT xobject)
FXDIB_Format FXDIBFormatFromFPDFFormat (int format)
CPDFSDK_InteractiveFormFormHandleToInteractiveForm (FPDF_FORMHANDLE hHandle)
UNSAFE_BUFFER_USAGE ByteString ByteStringFromFPDFWideString (FPDF_WIDESTRING wide_string)
UNSAFE_BUFFER_USAGE WideString WideStringFromFPDFWideString (FPDF_WIDESTRING wide_string)
UNSAFE_BUFFER_USAGE pdfium::span< char > SpanFromFPDFApiArgs (void *buffer, pdfium::StrictNumeric< size_t > buflen)
RetainPtr< const CPDF_ArrayGetQuadPointsArrayFromDictionary (const CPDF_Dictionary *dict)
RetainPtr< CPDF_ArrayGetMutableQuadPointsArrayFromDictionary (CPDF_Dictionary *dict)
RetainPtr< CPDF_ArrayAddQuadPointsArrayToDictionary (CPDF_Dictionary *dict)
bool IsValidQuadPointsIndex (const CPDF_Array *array, size_t index)
bool GetQuadPointsAtIndex (RetainPtr< const CPDF_Array > array, size_t quad_index, FS_QUADPOINTSF *quad_points)
CFX_PointF CFXPointFFromFSPointF (const FS_POINTF &point)
CFX_FloatRect CFXFloatRectFromFSRectF (const FS_RECTF &rect)
FS_RECTF FSRectFFromCFXFloatRect (const CFX_FloatRect &rect)
CFX_Matrix CFXMatrixFromFSMatrix (const FS_MATRIX &matrix)
FS_MATRIX FSMatrixFromCFXMatrix (const CFX_Matrix &matrix)
unsigned long NulTerminateMaybeCopyAndReturnLength (const ByteString &text, pdfium::span< char > result_span)
unsigned long Utf16EncodeMaybeCopyAndReturnLength (const WideString &text, pdfium::span< char > result_span)
unsigned long GetRawStreamMaybeCopyAndReturnLength (RetainPtr< const CPDF_Stream > stream, pdfium::span< uint8_t > buffer)
unsigned long DecodeStreamMaybeCopyAndReturnLength (RetainPtr< const CPDF_Stream > stream, pdfium::span< uint8_t > buffer)
void SetPDFSandboxPolicy (FPDF_DWORD policy, FPDF_BOOL enable)
FPDF_BOOL IsPDFSandboxPolicyEnabled (FPDF_DWORD policy)
void SetPDFUnsupportInfo (UNSUPPORT_INFO *unsp_info)
void ReportUnsupportedFeatures (const CPDF_Document *pDoc)
void ReportUnsupportedXFA (const CPDF_Document *pDoc)
void CheckForUnsupportedAnnot (const CPDF_Annot *pAnnot)
void ProcessParseError (CPDF_Parser::Error err)
void SetColorFromScheme (const FPDF_COLORSCHEME *pColorScheme, CPDF_RenderOptions *pRenderOptions)
std::vector< uint32_t > ParsePageRangeString (const ByteString &bsPageRange, uint32_t nCount)

Function Documentation

◆ AddQuadPointsArrayToDictionary()

RetainPtr< CPDF_Array > AddQuadPointsArrayToDictionary ( CPDF_Dictionary * dict)

Definition at line 281 of file cpdfsdk_helpers.cpp.

◆ ByteStringFromFPDFWideString()

ByteString ByteStringFromFPDFWideString ( FPDF_WIDESTRING wide_string)

Definition at line 238 of file cpdfsdk_helpers.cpp.

References fxcrt::WideString::ToUTF8(), and WideStringFromFPDFWideString().

Referenced by FPDFAttachment_SetStringValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CFXDIBitmapFromFPDFBitmap()

CFX_DIBitmap * CFXDIBitmapFromFPDFBitmap ( FPDF_BITMAP bitmap)
inline

Definition at line 87 of file cpdfsdk_helpers.h.

Referenced by FPDF_FFLDraw(), and FPDFBitmap_Destroy().

Here is the caller graph for this function:

◆ CFXFloatRectFromFSRectF()

CFX_FloatRect CFXFloatRectFromFSRectF ( const FS_RECTF & rect)

Definition at line 314 of file cpdfsdk_helpers.cpp.

References CFX_FloatRect::CFX_FloatRect().

Referenced by FPDF_RenderPageBitmapWithMatrix(), FPDFAnnot_SetRect(), and FPDFPage_TransFormWithClip().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CFXMatrixFromFSMatrix()

CFX_Matrix CFXMatrixFromFSMatrix ( const FS_MATRIX & matrix)

Definition at line 322 of file cpdfsdk_helpers.cpp.

References CFX_Matrix::CFX_Matrix().

Referenced by FPDF_RenderPageBitmapWithMatrix(), FPDFPage_TransFormWithClip(), FPDFPageObj_SetMatrix(), and FPDFPageObj_TransformF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CFXPointFFromFSPointF()

CFX_PointF CFXPointFFromFSPointF ( const FS_POINTF & point)

Definition at line 310 of file cpdfsdk_helpers.cpp.

◆ CheckForUnsupportedAnnot()

void CheckForUnsupportedAnnot ( const CPDF_Annot * pAnnot)

Definition at line 434 of file cpdfsdk_helpers.cpp.

References CPDF_Annot::FILEATTACHMENT, CPDF_Annot::GetAnnotDict(), CPDF_Dictionary::GetByteStringFor(), CPDF_Annot::GetSubtype(), pdfium::form_fields::kFT, pdfium::form_fields::kSig, CPDF_Annot::MOVIE, fxcrt::ByteString::operator!=(), fxcrt::ByteString::operator==(), CPDF_Annot::RICHMEDIA, CPDF_Annot::SCREEN, CPDF_Annot::SOUND, CPDF_Annot::THREED, and CPDF_Annot::WIDGET.

Referenced by CPDFSDK_PageView::LoadFXAnnots().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CPDFAnnotContextFromFPDFAnnotation()

CPDF_AnnotContext * CPDFAnnotContextFromFPDFAnnotation ( FPDF_ANNOTATION annot)
inline

◆ CPDFArrayFromFPDFDest()

CPDF_Array * CPDFArrayFromFPDFDest ( FPDF_DEST dest)
inline

Definition at line 119 of file cpdfsdk_helpers.h.

Referenced by FPDFDest_GetDestPageIndex(), FPDFDest_GetLocationInPage(), and FPDFDest_GetView().

Here is the caller graph for this function:

◆ CPDFArrayFromFPDFPageRange()

const CPDF_Array * CPDFArrayFromFPDFPageRange ( FPDF_PAGERANGE range)
inline

Definition at line 174 of file cpdfsdk_helpers.h.

Referenced by FPDF_VIEWERREF_GetPrintPageRangeCount(), and FPDF_VIEWERREF_GetPrintPageRangeElement().

Here is the caller graph for this function:

◆ CPDFClipPathFromFPDFClipPath()

CPDF_ClipPath * CPDFClipPathFromFPDFClipPath ( FPDF_CLIPPATH path)
inline

Definition at line 112 of file cpdfsdk_helpers.h.

Referenced by FPDFClipPath_CountPaths(), FPDFClipPath_CountPathSegments(), FPDFClipPath_GetPathSegment(), and FPDFPage_InsertClipPath().

Here is the caller graph for this function:

◆ CPDFContentMarkItemFromFPDFPageObjectMark()

CPDF_ContentMarkItem * CPDFContentMarkItemFromFPDFPageObjectMark ( FPDF_PAGEOBJECTMARK mark)
inline

Definition at line 166 of file cpdfsdk_helpers.h.

Referenced by FPDFPageObj_RemoveMark(), FPDFPageObjMark_CountParams(), and FPDFPageObjMark_GetName().

Here is the caller graph for this function:

◆ CPDFDictionaryFromFPDFAction()

CPDF_Dictionary * CPDFDictionaryFromFPDFAction ( FPDF_ACTION action)
inline

Definition at line 64 of file cpdfsdk_helpers.h.

Referenced by FPDFAction_GetDest(), FPDFAction_GetFilePath(), FPDFAction_GetType(), and FPDFAction_GetURIPath().

Here is the caller graph for this function:

◆ CPDFDictionaryFromFPDFBookmark()

CPDF_Dictionary * CPDFDictionaryFromFPDFBookmark ( FPDF_BOOKMARK bookmark)
inline

Definition at line 105 of file cpdfsdk_helpers.h.

Referenced by FPDFBookmark_GetAction(), FPDFBookmark_GetCount(), FPDFBookmark_GetDest(), FPDFBookmark_GetFirstChild(), FPDFBookmark_GetNextSibling(), and FPDFBookmark_GetTitle().

Here is the caller graph for this function:

◆ CPDFDictionaryFromFPDFLink()

CPDF_Dictionary * CPDFDictionaryFromFPDFLink ( FPDF_LINK link)
inline

Definition at line 142 of file cpdfsdk_helpers.h.

Referenced by FPDFLink_GetAction(), FPDFLink_GetAnnotRect(), FPDFLink_GetDest(), and FPDFLink_GetQuadPoints().

Here is the caller graph for this function:

◆ CPDFDictionaryFromFPDFSignature()

const CPDF_Dictionary * CPDFDictionaryFromFPDFSignature ( FPDF_SIGNATURE signature)
inline

Definition at line 252 of file cpdfsdk_helpers.h.

Referenced by FPDFSignatureObj_GetByteRange(), FPDFSignatureObj_GetContents(), FPDFSignatureObj_GetDocMDPPermission(), FPDFSignatureObj_GetReason(), FPDFSignatureObj_GetSubFilter(), and FPDFSignatureObj_GetTime().

Here is the caller graph for this function:

◆ CPDFDictionaryFromFPDFStructElementAttr()

const CPDF_Dictionary * CPDFDictionaryFromFPDFStructElementAttr ( FPDF_STRUCTELEMENT_ATTR struct_element_attr)
inline

Definition at line 209 of file cpdfsdk_helpers.h.

Referenced by FPDF_StructElement_Attr_GetCount(), FPDF_StructElement_Attr_GetName(), and FPDF_StructElement_Attr_GetValue().

Here is the caller graph for this function:

◆ CPDFDocumentFromFPDFDocument()

CPDF_Document * CPDFDocumentFromFPDFDocument ( FPDF_DOCUMENT doc)

Definition at line 205 of file cpdfsdk_helpers.cpp.

Referenced by FPDF_CopyViewerPreferences(), FPDF_CountNamedDests(), FPDF_DocumentHasValidCrossReferenceTable(), FPDF_GetDocPermissions(), FPDF_GetDocUserPermissions(), FPDF_GetFileIdentifier(), FPDF_GetFileVersion(), FPDF_GetFormType(), FPDF_GetMetaText(), FPDF_GetNamedDest(), FPDF_GetNamedDestByName(), FPDF_GetPageCount(), FPDF_GetPageLabel(), FPDF_GetPageSizeByIndexF(), FPDF_GetSecurityHandlerRevision(), FPDF_GetSignatureCount(), FPDF_GetSignatureObject(), FPDF_GetTrailerEnds(), FPDF_GetXFAPacketContent(), FPDF_GetXFAPacketCount(), FPDF_GetXFAPacketName(), FPDF_ImportNPagesToOne(), FPDF_ImportPages(), FPDF_ImportPagesByIndex(), FPDF_LoadPage(), FPDF_MovePages(), FPDF_NewXObjectFromPage(), FPDF_VIEWERREF_GetDuplex(), FPDF_VIEWERREF_GetName(), FPDF_VIEWERREF_GetNumCopies(), FPDF_VIEWERREF_GetPrintPageRange(), FPDF_VIEWERREF_GetPrintScaling(), FPDFAction_GetDest(), FPDFAction_GetURIPath(), FPDFAttachment_SetFile(), FPDFAvail_GetFirstPageNum(), FPDFBookmark_Find(), FPDFBookmark_GetDest(), FPDFBookmark_GetFirstChild(), FPDFBookmark_GetNextSibling(), FPDFCatalog_IsTagged(), FPDFCatalog_SetLanguage(), FPDFDest_GetDestPageIndex(), FPDFDoc_AddAttachment(), FPDFDoc_DeleteAttachment(), FPDFDoc_GetAttachment(), FPDFDoc_GetAttachmentCount(), FPDFDoc_GetJavaScriptAction(), FPDFDoc_GetJavaScriptActionCount(), FPDFDoc_GetPageMode(), FPDFDOC_InitFormFillEnvironment(), FPDFImageObj_GetRenderedBitmap(), FPDFLink_GetDest(), FPDFPage_Delete(), FPDFPage_New(), FPDFPageObj_CreateTextObj(), FPDFPageObj_NewImageObj(), FPDFPageObj_NewTextObj(), FPDFText_LoadCidType2Font(), FPDFText_LoadFont(), FPDFText_LoadStandardFont(), and FPDFTextObj_GetRenderedBitmap().

◆ CPDFFontFromFPDFFont()

CPDF_Font * CPDFFontFromFPDFFont ( FPDF_FONT font)
inline

Definition at line 126 of file cpdfsdk_helpers.h.

Referenced by FPDFFont_Close(), FPDFFont_GetAscent(), FPDFFont_GetBaseFontName(), FPDFFont_GetDescent(), FPDFFont_GetFamilyName(), FPDFFont_GetFlags(), FPDFFont_GetFontData(), FPDFFont_GetGlyphPath(), FPDFFont_GetGlyphWidth(), FPDFFont_GetIsEmbedded(), FPDFFont_GetItalicAngle(), FPDFFont_GetWeight(), and FPDFPageObj_CreateTextObj().

Here is the caller graph for this function:

◆ CPDFJavaScriptActionFromFPDFJavaScriptAction()

CPDF_JavaScript * CPDFJavaScriptActionFromFPDFJavaScriptAction ( FPDF_JAVASCRIPT_ACTION javascript)
inline

Definition at line 134 of file cpdfsdk_helpers.h.

Referenced by FPDFJavaScriptAction_GetName(), and FPDFJavaScriptAction_GetScript().

Here is the caller graph for this function:

◆ CPDFLinkExtractFromFPDFPageLink()

CPDF_LinkExtract * CPDFLinkExtractFromFPDFPageLink ( FPDF_PAGELINK link)
inline

Definition at line 149 of file cpdfsdk_helpers.h.

Referenced by FPDFLink_CloseWebLinks(), FPDFLink_CountRects(), FPDFLink_CountWebLinks(), FPDFLink_GetRect(), FPDFLink_GetTextRange(), and FPDFLink_GetURL().

Here is the caller graph for this function:

◆ CPDFObjectFromFPDFAttachment()

CPDF_Object * CPDFObjectFromFPDFAttachment ( FPDF_ATTACHMENT attachment)
inline

Definition at line 80 of file cpdfsdk_helpers.h.

Referenced by FPDFAttachment_GetFile(), FPDFAttachment_GetName(), FPDFAttachment_GetStringValue(), FPDFAttachment_GetValueType(), FPDFAttachment_HasKey(), FPDFAttachment_SetFile(), and FPDFAttachment_SetStringValue().

Here is the caller graph for this function:

◆ CPDFObjectFromFPDFStructElementAttrValue()

const CPDF_Object * CPDFObjectFromFPDFStructElementAttrValue ( FPDF_STRUCTELEMENT_ATTR_VALUE struct_element_attr_value)
inline

Definition at line 218 of file cpdfsdk_helpers.h.

Referenced by FPDF_StructElement_Attr_CountChildren(), FPDF_StructElement_Attr_GetBlobValue(), FPDF_StructElement_Attr_GetBooleanValue(), FPDF_StructElement_Attr_GetChildAtIndex(), FPDF_StructElement_Attr_GetNumberValue(), FPDF_StructElement_Attr_GetStringValue(), and FPDF_StructElement_Attr_GetType().

Here is the caller graph for this function:

◆ CPDFPageFromFPDFPage()

CPDF_Page * CPDFPageFromFPDFPage ( FPDF_PAGE page)

Definition at line 213 of file cpdfsdk_helpers.cpp.

References IPDF_Page::AsPDFPage(), and IPDFPageFromFPDFPage().

Referenced by FORM_DoPageAAction(), FPDF_GetPageAAction(), FPDF_GetPageBoundingBox(), FPDF_RenderPage_Close(), FPDF_RenderPage_Continue(), FPDF_RenderPageBitmap(), FPDF_RenderPageBitmapWithColorScheme_Start(), FPDF_RenderPageBitmapWithMatrix(), FPDF_StructTree_GetForPage(), FPDFAnnot_GetFormFieldAtPoint(), FPDFImageObj_GetImageMetadata(), FPDFImageObj_GetRenderedBitmap(), FPDFImageObj_SetBitmap(), FPDFLink_Enumerate(), FPDFLink_GetAnnot(), FPDFLink_GetLinkAtPoint(), FPDFLink_GetLinkZOrderAtPoint(), FPDFPage_CountObjects(), FPDFPage_CreateAnnot(), FPDFPage_Flatten(), FPDFPage_FormFieldZOrderAtPoint(), FPDFPage_GenerateContent(), FPDFPage_GetAnnot(), FPDFPage_GetAnnotCount(), FPDFPage_GetAnnotIndex(), FPDFPage_GetArtBox(), FPDFPage_GetBleedBox(), FPDFPage_GetCropBox(), FPDFPage_GetMediaBox(), FPDFPage_GetObject(), FPDFPage_GetRotation(), FPDFPage_GetThumbnailAsBitmap(), FPDFPage_GetTrimBox(), FPDFPage_HasFormFieldAtPoint(), FPDFPage_HasTransparency(), FPDFPage_InsertClipPath(), FPDFPage_InsertObject(), FPDFPage_RemoveAnnot(), FPDFPage_RemoveObject(), FPDFPage_SetArtBox(), FPDFPage_SetBleedBox(), FPDFPage_SetCropBox(), FPDFPage_SetMediaBox(), FPDFPage_SetRotation(), FPDFPage_SetTrimBox(), FPDFPage_TransformAnnots(), FPDFPage_TransFormWithClip(), FPDFText_LoadPage(), FPDFTextObj_GetRenderedBitmap(), and TEST_F().

Here is the call graph for this function:

◆ CPDFPageObjectFromFPDFPageObject()

◆ CPDFSDKFormFillEnvironmentFromFPDFFormHandle()

CPDFSDK_FormFillEnvironment * CPDFSDKFormFillEnvironmentFromFPDFFormHandle ( FPDF_FORMHANDLE handle)
inline

◆ CPDFStructElementFromFPDFStructElement()

◆ CPDFStructTreeFromFPDFStructTree()

CPDF_StructTree * CPDFStructTreeFromFPDFStructTree ( FPDF_STRUCTTREE struct_tree)
inline

Definition at line 191 of file cpdfsdk_helpers.h.

Referenced by FPDF_StructTree_CountChildren(), and FPDF_StructTree_GetChildAtIndex().

Here is the caller graph for this function:

◆ CPDFTextPageFindFromFPDFSchHandle()

CPDF_TextPageFind * CPDFTextPageFindFromFPDFSchHandle ( FPDF_SCHHANDLE handle)
inline

Definition at line 234 of file cpdfsdk_helpers.h.

Referenced by FPDFText_FindClose(), FPDFText_FindNext(), FPDFText_FindPrev(), FPDFText_GetSchCount(), and FPDFText_GetSchResultIndex().

Here is the caller graph for this function:

◆ CPDFTextPageFromFPDFTextPage()

CPDF_TextPage * CPDFTextPageFromFPDFTextPage ( FPDF_TEXTPAGE page)
inline

Definition at line 226 of file cpdfsdk_helpers.h.

Referenced by FPDFLink_LoadWebLinks(), FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_CountRects(), FPDFText_FindStart(), FPDFText_GetBoundedText(), FPDFText_GetCharIndexAtPos(), FPDFText_GetCharIndexFromTextIndex(), FPDFText_GetRect(), FPDFText_GetText(), FPDFText_GetTextIndexFromCharIndex(), and FPDFTextObj_GetText().

Here is the caller graph for this function:

◆ DecodeStreamMaybeCopyAndReturnLength()

unsigned long DecodeStreamMaybeCopyAndReturnLength ( RetainPtr< const CPDF_Stream > stream,
pdfium::span< uint8_t > buffer )

Definition at line 354 of file cpdfsdk_helpers.cpp.

◆ FormHandleToInteractiveForm()

CPDFSDK_InteractiveForm * FormHandleToInteractiveForm ( FPDF_FORMHANDLE hHandle)

Definition at line 232 of file cpdfsdk_helpers.cpp.

References CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), and CPDFSDK_FormFillEnvironment::GetInteractiveForm().

Referenced by FPDF_RemoveFormFieldHighlight(), FPDF_SetFormFieldHighlightAlpha(), FPDF_SetFormFieldHighlightColor(), FPDFAnnot_GetFormControlIndex(), FPDFAnnot_GetFormFieldAtPoint(), FPDFPage_FormFieldZOrderAtPoint(), and FPDFPage_HasFormFieldAtPoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FPDFActionFromCPDFDictionary()

FPDF_ACTION FPDFActionFromCPDFDictionary ( const CPDF_Dictionary * action)
inline

Definition at line 61 of file cpdfsdk_helpers.h.

Referenced by FPDF_GetPageAAction(), FPDFBookmark_GetAction(), and FPDFLink_GetAction().

Here is the caller graph for this function:

◆ FPDFAnnotationFromCPDFAnnotContext()

FPDF_ANNOTATION FPDFAnnotationFromCPDFAnnotContext ( CPDF_AnnotContext * annot)
inline

Definition at line 68 of file cpdfsdk_helpers.h.

◆ FPDFAttachmentFromCPDFObject()

FPDF_ATTACHMENT FPDFAttachmentFromCPDFObject ( CPDF_Object * attachment)
inline

Definition at line 77 of file cpdfsdk_helpers.h.

◆ FPDFBitmapFromCFXDIBitmap()

FPDF_BITMAP FPDFBitmapFromCFXDIBitmap ( CFX_DIBitmap * bitmap)
inline

Definition at line 84 of file cpdfsdk_helpers.h.

◆ FPDFBookmarkFromCPDFDictionary()

FPDF_BOOKMARK FPDFBookmarkFromCPDFDictionary ( const CPDF_Dictionary * bookmark)
inline

Definition at line 100 of file cpdfsdk_helpers.h.

Referenced by FPDFBookmark_GetFirstChild(), and FPDFBookmark_GetNextSibling().

Here is the caller graph for this function:

◆ FPDFClipPathFromCPDFClipPath()

FPDF_CLIPPATH FPDFClipPathFromCPDFClipPath ( CPDF_ClipPath * path)
inline

Definition at line 109 of file cpdfsdk_helpers.h.

Referenced by FPDFPageObj_GetClipPath().

Here is the caller graph for this function:

◆ FPDFDestFromCPDFArray()

FPDF_DEST FPDFDestFromCPDFArray ( const CPDF_Array * dest)
inline

Definition at line 116 of file cpdfsdk_helpers.h.

Referenced by FPDFAction_GetDest(), FPDFBookmark_GetDest(), and FPDFLink_GetDest().

Here is the caller graph for this function:

◆ FPDFDocumentFromCPDFDocument()

FPDF_DOCUMENT FPDFDocumentFromCPDFDocument ( CPDF_Document * doc)

Definition at line 209 of file cpdfsdk_helpers.cpp.

◆ FPDFFontFromCPDFFont()

FPDF_FONT FPDFFontFromCPDFFont ( CPDF_Font * font)
inline

Definition at line 123 of file cpdfsdk_helpers.h.

◆ FPDFFormHandleFromCPDFSDKFormFillEnvironment()

FPDF_FORMHANDLE FPDFFormHandleFromCPDFSDKFormFillEnvironment ( CPDFSDK_FormFillEnvironment * handle)
inline

Definition at line 239 of file cpdfsdk_helpers.h.

◆ FPDFJavaScriptActionFromCPDFJavaScriptAction()

FPDF_JAVASCRIPT_ACTION FPDFJavaScriptActionFromCPDFJavaScriptAction ( CPDF_JavaScript * javascript)
inline

Definition at line 130 of file cpdfsdk_helpers.h.

◆ FPDFLinkFromCPDFDictionary()

FPDF_LINK FPDFLinkFromCPDFDictionary ( CPDF_Dictionary * link)
inline

Definition at line 139 of file cpdfsdk_helpers.h.

◆ FPDFPageFromIPDFPage()

FPDF_PAGE FPDFPageFromIPDFPage ( IPDF_Page * page)

Definition at line 201 of file cpdfsdk_helpers.cpp.

◆ FPDFPageLinkFromCPDFLinkExtract()

FPDF_PAGELINK FPDFPageLinkFromCPDFLinkExtract ( CPDF_LinkExtract * link)
inline

Definition at line 146 of file cpdfsdk_helpers.h.

◆ FPDFPageObjectFromCPDFPageObject()

FPDF_PAGEOBJECT FPDFPageObjectFromCPDFPageObject ( CPDF_PageObject * page_object)
inline

Definition at line 153 of file cpdfsdk_helpers.h.

◆ FPDFPageObjectMarkFromCPDFContentMarkItem()

FPDF_PAGEOBJECTMARK FPDFPageObjectMarkFromCPDFContentMarkItem ( CPDF_ContentMarkItem * mark)
inline

Definition at line 162 of file cpdfsdk_helpers.h.

◆ FPDFPageRangeFromCPDFArray()

FPDF_PAGERANGE FPDFPageRangeFromCPDFArray ( const CPDF_Array * range)
inline

Definition at line 171 of file cpdfsdk_helpers.h.

◆ FPDFPathSegmentFromFXPathPoint()

FPDF_PATHSEGMENT FPDFPathSegmentFromFXPathPoint ( const CFX_Path::Point * segment)
inline

Definition at line 178 of file cpdfsdk_helpers.h.

◆ FPDFSchHandleFromCPDFTextPageFind()

FPDF_SCHHANDLE FPDFSchHandleFromCPDFTextPageFind ( CPDF_TextPageFind * handle)
inline

Definition at line 230 of file cpdfsdk_helpers.h.

◆ FPDFSignatureFromCPDFDictionary()

FPDF_SIGNATURE FPDFSignatureFromCPDFDictionary ( const CPDF_Dictionary * dictionary)
inline

Definition at line 248 of file cpdfsdk_helpers.h.

◆ FPDFStructElementAttrFromCPDFDictionary()

FPDF_STRUCTELEMENT_ATTR FPDFStructElementAttrFromCPDFDictionary ( const CPDF_Dictionary * dictionary)
inline

Definition at line 205 of file cpdfsdk_helpers.h.

◆ FPDFStructElementAttrValueFromCPDFObject()

FPDF_STRUCTELEMENT_ATTR_VALUE FPDFStructElementAttrValueFromCPDFObject ( const CPDF_Object * object)
inline

Definition at line 214 of file cpdfsdk_helpers.h.

◆ FPDFStructElementFromCPDFStructElement()

FPDF_STRUCTELEMENT FPDFStructElementFromCPDFStructElement ( CPDF_StructElement * struct_element)
inline

Definition at line 196 of file cpdfsdk_helpers.h.

Referenced by FPDF_StructElement_GetParent().

Here is the caller graph for this function:

◆ FPDFStructTreeFromCPDFStructTree()

FPDF_STRUCTTREE FPDFStructTreeFromCPDFStructTree ( CPDF_StructTree * struct_tree)
inline

Definition at line 187 of file cpdfsdk_helpers.h.

◆ FPDFTextPageFromCPDFTextPage()

FPDF_TEXTPAGE FPDFTextPageFromCPDFTextPage ( CPDF_TextPage * page)
inline

Definition at line 223 of file cpdfsdk_helpers.h.

◆ FPDFXObjectFromXObjectContext()

FPDF_XOBJECT FPDFXObjectFromXObjectContext ( XObjectContext * xobject)
inline

Definition at line 257 of file cpdfsdk_helpers.h.

◆ FSMatrixFromCFXMatrix()

FS_MATRIX FSMatrixFromCFXMatrix ( const CFX_Matrix & matrix)

Definition at line 326 of file cpdfsdk_helpers.cpp.

References CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, and CFX_Matrix::f.

Referenced by FPDFPageObj_GetMatrix(), and FPDFText_GetMatrix().

Here is the caller graph for this function:

◆ FSRectFFromCFXFloatRect()

FS_RECTF FSRectFFromCFXFloatRect ( const CFX_FloatRect & rect)

Definition at line 318 of file cpdfsdk_helpers.cpp.

References CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by FPDFAnnot_GetRect(), and FPDFLink_GetAnnotRect().

Here is the caller graph for this function:

◆ FXDIBFormatFromFPDFFormat()

FXDIB_Format FXDIBFormatFromFPDFFormat ( int format)

Definition at line 217 of file cpdfsdk_helpers.cpp.

References k8bppRgb, kBgr, kBgra, kBgrx, and kInvalid.

Referenced by EmbedderTest::BytesPerPixelForFormat(), and FPDFBitmap_CreateEx().

Here is the caller graph for this function:

◆ FXPathPointFromFPDFPathSegment()

const CFX_Path::Point * FXPathPointFromFPDFPathSegment ( FPDF_PATHSEGMENT segment)
inline

Definition at line 182 of file cpdfsdk_helpers.h.

Referenced by FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().

Here is the caller graph for this function:

◆ GetMutableQuadPointsArrayFromDictionary()

RetainPtr< CPDF_Array > GetMutableQuadPointsArrayFromDictionary ( CPDF_Dictionary * dict)

Definition at line 275 of file cpdfsdk_helpers.cpp.

◆ GetQuadPointsArrayFromDictionary()

RetainPtr< const CPDF_Array > GetQuadPointsArrayFromDictionary ( const CPDF_Dictionary * dict)

Definition at line 270 of file cpdfsdk_helpers.cpp.

References CPDF_Dictionary::GetArrayFor().

Here is the call graph for this function:

◆ GetQuadPointsAtIndex()

bool GetQuadPointsAtIndex ( RetainPtr< const CPDF_Array > array,
size_t quad_index,
FS_QUADPOINTSF * quad_points )

Definition at line 289 of file cpdfsdk_helpers.cpp.

◆ GetRawStreamMaybeCopyAndReturnLength()

unsigned long GetRawStreamMaybeCopyAndReturnLength ( RetainPtr< const CPDF_Stream > stream,
pdfium::span< uint8_t > buffer )

Definition at line 347 of file cpdfsdk_helpers.cpp.

◆ IPDFPageFromFPDFPage()

IPDF_Page * IPDFPageFromFPDFPage ( FPDF_PAGE page)

Definition at line 197 of file cpdfsdk_helpers.cpp.

Referenced by CPDFPageFromFPDFPage(), FORM_DoPageAAction(), FORM_OnBeforeClosePage(), FPDF_ClosePage(), FPDF_DeviceToPage(), FPDF_GetPageHeightF(), FPDF_GetPageWidthF(), FPDF_PageToDevice(), FPDFLink_GetAnnot(), FPDFPage_CreateAnnot(), FPDFPage_GetAnnot(), and CPDFSDKBAAnnotTest::SetUpBAAnnot().

Here is the caller graph for this function:

◆ IsPDFSandboxPolicyEnabled()

FPDF_BOOL IsPDFSandboxPolicyEnabled ( FPDF_DWORD policy)

Definition at line 375 of file cpdfsdk_helpers.cpp.

Referenced by FPDF_CreateNewDocument(), and fxjs::FX_GetDateTime().

Here is the caller graph for this function:

◆ IsValidQuadPointsIndex()

bool IsValidQuadPointsIndex ( const CPDF_Array * array,
size_t index )

Definition at line 285 of file cpdfsdk_helpers.cpp.

◆ NulTerminateMaybeCopyAndReturnLength()

unsigned long NulTerminateMaybeCopyAndReturnLength ( const ByteString & text,
pdfium::span< char > result_span )

Definition at line 330 of file cpdfsdk_helpers.cpp.

◆ ParsePageRangeString()

std::vector< uint32_t > ParsePageRangeString ( const ByteString & bsPageRange,
uint32_t nCount )

Definition at line 508 of file cpdfsdk_helpers.cpp.

◆ ProcessParseError()

void ProcessParseError ( CPDF_Parser::Error err)

Definition at line 471 of file cpdfsdk_helpers.cpp.

References CPDF_Parser::FILE_ERROR, CPDF_Parser::FORMAT_ERROR, FXSYS_SetLastError(), CPDF_Parser::HANDLER_ERROR, CPDF_Parser::PASSWORD_ERROR, and CPDF_Parser::SUCCESS.

Here is the call graph for this function:

◆ ReportUnsupportedFeatures()

void ReportUnsupportedFeatures ( const CPDF_Document * pDoc)

Definition at line 390 of file cpdfsdk_helpers.cpp.

References CPDF_Document::GetRoot(), CPDF_Dictionary::KeyExist(), and fxcrt::ByteString::operator==().

Here is the call graph for this function:

◆ ReportUnsupportedXFA()

void ReportUnsupportedXFA ( const CPDF_Document * pDoc)

Definition at line 429 of file cpdfsdk_helpers.cpp.

References CPDF_Document::GetExtension().

Referenced by FPDFDOC_InitFormFillEnvironment().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetColorFromScheme()

void SetColorFromScheme ( const FPDF_COLORSCHEME * pColorScheme,
CPDF_RenderOptions * pRenderOptions )

Definition at line 494 of file cpdfsdk_helpers.cpp.

References CPDF_RenderOptions::ColorScheme::path_fill_color, CPDF_RenderOptions::ColorScheme::path_stroke_color, CPDF_RenderOptions::SetColorScheme(), CPDF_RenderOptions::ColorScheme::text_fill_color, and CPDF_RenderOptions::ColorScheme::text_stroke_color.

Here is the call graph for this function:

◆ SetPDFSandboxPolicy()

void SetPDFSandboxPolicy ( FPDF_DWORD policy,
FPDF_BOOL enable )

Definition at line 361 of file cpdfsdk_helpers.cpp.

Referenced by FPDF_SetSandBoxPolicy().

Here is the caller graph for this function:

◆ SetPDFUnsupportInfo()

void SetPDFUnsupportInfo ( UNSUPPORT_INFO * unsp_info)

Definition at line 386 of file cpdfsdk_helpers.cpp.

Referenced by FSDK_SetUnSpObjProcessHandler().

Here is the caller graph for this function:

◆ SpanFromFPDFApiArgs()

UNSAFE_BUFFER_USAGE pdfium::span< char > SpanFromFPDFApiArgs ( void * buffer,
pdfium::StrictNumeric< size_t > buflen )

Definition at line 252 of file cpdfsdk_helpers.cpp.

◆ Utf16EncodeMaybeCopyAndReturnLength()

unsigned long Utf16EncodeMaybeCopyAndReturnLength ( const WideString & text,
pdfium::span< char > result_span )

Definition at line 338 of file cpdfsdk_helpers.cpp.

References fxcrt::WideString::ToUTF16LE().

Here is the call graph for this function:

◆ WideStringFromFPDFWideString()

WideString WideStringFromFPDFWideString ( FPDF_WIDESTRING wide_string)

Definition at line 244 of file cpdfsdk_helpers.cpp.

Referenced by ByteStringFromFPDFWideString(), FORM_ReplaceAndKeepSelection(), FORM_ReplaceSelection(), FPDFAnnot_AddFileAttachment(), FPDFAnnot_SetAP(), FPDFAnnot_SetStringValue(), FPDFBookmark_Find(), FPDFDoc_AddAttachment(), FPDFText_SetText(), and GetPlatformString().

Here is the caller graph for this function:

◆ XObjectContextFromFPDFXObject()

XObjectContext * XObjectContextFromFPDFXObject ( FPDF_XOBJECT xobject)
inline

Definition at line 261 of file cpdfsdk_helpers.h.

Referenced by FPDF_CloseXObject(), and FPDF_NewFormObjectFromXObject().

Here is the caller graph for this function: