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
fpdf_edit_embeddertest.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include <limits>
#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "build/build_config.h"
#include "core/fpdfapi/font/cpdf_font.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/cpdf_pageobject.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "core/fxge/fx_font.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "public/cpp/fpdf_scopers.h"
#include "public/fpdf_annot.h"
#include "public/fpdf_edit.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/embedder_test_constants.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/utils/file_util.h"
#include "testing/utils/hash.h"
#include "testing/utils/path_service.h"
#include "third_party/base/check.h"
+ Include dependency graph for fpdf_edit_embeddertest.cpp:

Go to the source code of this file.

Classes

class  FPDFEditEmbedderTest
 
class  FPDFEditMoveEmbedderTest
 

Functions

 TEST_F (FPDFEditEmbedderTest, EmbedNotoSansSCFont)
 
 TEST_F (FPDFEditEmbedderTest, EmbedNotoSansSCFontWithCharcodes)
 
 TEST_F (FPDFEditEmbedderTest, Bug2094)
 
 TEST_F (FPDFEditEmbedderTest, EmptyCreation)
 
 TEST_F (FPDFEditEmbedderTest, RasterizePDF)
 
 TEST_F (FPDFEditEmbedderTest, AddPaths)
 
 TEST_F (FPDFEditEmbedderTest, ClipPath)
 
 TEST_F (FPDFEditEmbedderTest, BUG_1399)
 
 TEST_F (FPDFEditEmbedderTest, BUG_1549)
 
 TEST_F (FPDFEditEmbedderTest, SetText)
 
 TEST_F (FPDFEditEmbedderTest, SetCharcodesBadParams)
 
 TEST_F (FPDFEditEmbedderTest, SetTextKeepClippingPath)
 
 TEST_F (FPDFEditEmbedderTest, BUG_1574)
 
 TEST_F (FPDFEditEmbedderTest, BUG_1893)
 
 TEST_F (FPDFEditEmbedderTest, RemoveTextObject)
 
 TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingContentStreamAndResources)
 
 TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingContentArrayAndResources)
 
 TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingResourcesDict)
 
void CheckMarkCounts (FPDF_PAGE page, int start_from, int expected_object_count, size_t expected_prime_count, size_t expected_square_count, size_t expected_greater_than_ten_count, size_t expected_bounds_count)
 
 TEST_F (FPDFEditEmbedderTest, ReadMarkedObjectsIndirectDict)
 
 TEST_F (FPDFEditEmbedderTest, RemoveMarkedObjectsPrime)
 
 TEST_F (FPDFEditEmbedderTest, RemoveMarks)
 
 TEST_F (FPDFEditEmbedderTest, RemoveMarkParam)
 
 TEST_F (FPDFEditEmbedderTest, MaintainMarkedObjects)
 
 TEST_F (FPDFEditEmbedderTest, MaintainIndirectMarkedObjects)
 
 TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObject)
 
 TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObjectSplitStreamsNotLonely)
 
 TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObjectSplitStreamsLonely)
 
 TEST_F (FPDFEditEmbedderTest, GetContentStream)
 
 TEST_F (FPDFEditEmbedderTest, RemoveAllFromStream)
 
 TEST_F (FPDFEditEmbedderTest, RemoveAllFromSingleStream)
 
 TEST_F (FPDFEditEmbedderTest, RemoveFirstFromSingleStream)
 
 TEST_F (FPDFEditEmbedderTest, RemoveLastFromSingleStream)
 
 TEST_F (FPDFEditEmbedderTest, RemoveAllFromMultipleStreams)
 
 TEST_F (FPDFEditEmbedderTest, InsertPageObjectAndSave)
 
 TEST_F (FPDFEditEmbedderTest, InsertPageObjectEditAndSave)
 
 TEST_F (FPDFEditEmbedderTest, InsertAndRemoveLargeFile)
 
 TEST_F (FPDFEditEmbedderTest, AddAndRemovePaths)
 
 TEST_F (FPDFEditEmbedderTest, PathsPoints)
 
 TEST_F (FPDFEditEmbedderTest, PathOnTopOfText)
 
 TEST_F (FPDFEditEmbedderTest, EditOverExistingContent)
 
 TEST_F (FPDFEditEmbedderTest, AddStrokedPaths)
 
 TEST_F (FPDFEditEmbedderTest, AddStandardFontText)
 
 TEST_F (FPDFEditEmbedderTest, AddStandardFontTextOfSizeZero)
 
 TEST_F (FPDFEditEmbedderTest, GetTextRenderMode)
 
 TEST_F (FPDFEditEmbedderTest, SetTextRenderMode)
 
 TEST_F (FPDFEditEmbedderTest, TextFontProperties)
 
 TEST_F (FPDFEditEmbedderTest, NoEmbeddedFontData)
 
 TEST_F (FPDFEditEmbedderTest, GlyphPaths)
 
 TEST_F (FPDFEditEmbedderTest, FormGetObjects)
 
 TEST_F (FPDFEditEmbedderTest, ModifyFormObject)
 
 TEST_F (FPDFEditEmbedderTest, AddStandardFontText2)
 
 TEST_F (FPDFEditEmbedderTest, LoadStandardFonts)
 
 TEST_F (FPDFEditEmbedderTest, GraphicsData)
 
 TEST_F (FPDFEditEmbedderTest, DoubleGenerating)
 
 TEST_F (FPDFEditEmbedderTest, LoadSimpleType1Font)
 
 TEST_F (FPDFEditEmbedderTest, LoadSimpleTrueTypeFont)
 
 TEST_F (FPDFEditEmbedderTest, LoadCIDType0Font)
 
 TEST_F (FPDFEditEmbedderTest, LoadCIDType2Font)
 
 TEST_F (FPDFEditEmbedderTest, NormalizeNegativeRotation)
 
 TEST_F (FPDFEditEmbedderTest, AddTrueTypeFontText)
 
 TEST_F (FPDFEditEmbedderTest, TransformAnnot)
 
 TEST_F (FPDFEditEmbedderTest, SaveAndRender)
 
 TEST_F (FPDFEditEmbedderTest, AddMark)
 
 TEST_F (FPDFEditEmbedderTest, AddMarkCompressedStream)
 
 TEST_F (FPDFEditEmbedderTest, SetMarkParam)
 
 TEST_F (FPDFEditEmbedderTest, AddMarkedText)
 
 TEST_F (FPDFEditEmbedderTest, MarkGetName)
 
 TEST_F (FPDFEditEmbedderTest, MarkGetParamKey)
 
 TEST_F (FPDFEditEmbedderTest, MarkGetIntParam)
 
 TEST_F (FPDFEditEmbedderTest, MarkGetStringParam)
 
 TEST_F (FPDFEditEmbedderTest, TraverseMarkedContentID)
 
 TEST_F (FPDFEditEmbedderTest, GetBitmap)
 
 TEST_F (FPDFEditEmbedderTest, GetBitmapIgnoresSetMatrix)
 
 TEST_F (FPDFEditEmbedderTest, GetBitmapForJBigImage)
 
 TEST_F (FPDFEditEmbedderTest, GetBitmapIgnoresSMask)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapHandlesSetMatrix)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapHandlesSMask)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapBadParams)
 
 TEST_F (FPDFEditEmbedderTest, GetImageData)
 
 TEST_F (FPDFEditEmbedderTest, GetImageMatrix)
 
 TEST_F (FPDFEditEmbedderTest, DestroyPageObject)
 
 TEST_F (FPDFEditEmbedderTest, GetImageFilters)
 
 TEST_F (FPDFEditEmbedderTest, GetImageMetadata)
 
 TEST_F (FPDFEditEmbedderTest, GetImageMetadataJpxLzw)
 
 TEST_F (FPDFEditEmbedderTest, GetImagePixelSize)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForHelloWorldText)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForRotatedText)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForColorText)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForNewlyCreatedText)
 
 TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForTextWithBadParameters)
 
 TEST_F (FPDFEditEmbedderTest, MultipleGraphicsStates)
 
 TEST_F (FPDFEditMoveEmbedderTest, MovePagesTest)
 

Function Documentation

◆ CheckMarkCounts()

void CheckMarkCounts ( FPDF_PAGE page,
int start_from,
int expected_object_count,
size_t expected_prime_count,
size_t expected_square_count,
size_t expected_greater_than_ten_count,
size_t expected_bounds_count )

Definition at line 1322 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_CountParams(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), FPDFPageObjMark_GetParamKey(), FPDFPageObjMark_GetParamStringValue(), and FPDFPageObjMark_GetParamValueType().

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

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

◆ TEST_F() [1/92]

TEST_F ( FPDFEditEmbedderTest ,
AddAndRemovePaths  )

Definition at line 2415 of file fpdf_edit_embeddertest.cpp.

References FPDF_ClosePage(), FPDFPage_CountObjects(), FPDFPage_InsertObject(), FPDFPage_RemoveObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_Destroy(), FPDFPageObj_SetFillColor(), FPDFPath_SetDrawMode(), and pdfium::kBlankPage612By792Checksum.

+ Here is the call graph for this function:

◆ TEST_F() [2/92]

TEST_F ( FPDFEditEmbedderTest ,
AddMark  )

Definition at line 3763 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), and FPDFPageObj_AddMark().

+ Here is the call graph for this function:

◆ TEST_F() [3/92]

TEST_F ( FPDFEditEmbedderTest ,
AddMarkCompressedStream  )

Definition at line 3796 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_AddMark(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [4/92]

◆ TEST_F() [5/92]

◆ TEST_F() [6/92]

TEST_F ( FPDFEditEmbedderTest ,
AddStandardFontText  )

Definition at line 2670 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_GetMatrix(), FPDFPageObj_SetMatrix(), FPDFPageObj_Transform(), FPDFTextObj_GetFontSize(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [7/92]

TEST_F ( FPDFEditEmbedderTest ,
AddStandardFontText2  )

Definition at line 3229 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_Transform().

+ Here is the call graph for this function:

◆ TEST_F() [8/92]

TEST_F ( FPDFEditEmbedderTest ,
AddStandardFontTextOfSizeZero  )

Definition at line 2779 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_Transform(), FPDFTextObj_GetFontSize(), and pdfium::kBlankPage612By792Checksum.

+ Here is the call graph for this function:

◆ TEST_F() [9/92]

◆ TEST_F() [10/92]

TEST_F ( FPDFEditEmbedderTest ,
AddTrueTypeFontText  )

Definition at line 3589 of file fpdf_edit_embeddertest.cpp.

References FPDF_ClosePage(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [11/92]

TEST_F ( FPDFEditEmbedderTest ,
Bug2094  )

Definition at line 377 of file fpdf_edit_embeddertest.cpp.

◆ TEST_F() [12/92]

TEST_F ( FPDFEditEmbedderTest ,
BUG_1399  )

Definition at line 718 of file fpdf_edit_embeddertest.cpp.

References FPDFClipPath_CountPaths(), FPDFClipPath_CountPathSegments(), FPDFClipPath_GetPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetClipPath(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [13/92]

TEST_F ( FPDFEditEmbedderTest ,
BUG_1549  )

Definition at line 757 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GenerateContent().

+ Here is the call graph for this function:

◆ TEST_F() [14/92]

TEST_F ( FPDFEditEmbedderTest ,
BUG_1574  )

Definition at line 938 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [15/92]

TEST_F ( FPDFEditEmbedderTest ,
BUG_1893  )

Definition at line 1004 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [16/92]

TEST_F ( FPDFEditEmbedderTest ,
ClipPath  )

Definition at line 622 of file fpdf_edit_embeddertest.cpp.

References FPDFClipPath_CountPaths(), FPDFClipPath_CountPathSegments(), FPDFClipPath_GetPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetClipPath(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [17/92]

TEST_F ( FPDFEditEmbedderTest ,
DestroyPageObject  )

Definition at line 4628 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_CreateNewRect(), and FPDFPageObj_Destroy().

+ Here is the call graph for this function:

◆ TEST_F() [18/92]

TEST_F ( FPDFEditEmbedderTest ,
DoubleGenerating  )

Definition at line 3348 of file fpdf_edit_embeddertest.cpp.

References CPDFPageFromFPDFPage(), FPDF_ClosePage(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPageObj_Transform(), and FPDFPath_SetDrawMode().

+ Here is the call graph for this function:

◆ TEST_F() [19/92]

TEST_F ( FPDFEditEmbedderTest ,
EditOverExistingContent  )

Definition at line 2526 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [20/92]

TEST_F ( FPDFEditEmbedderTest ,
EmbedNotoSansSCFont  )

Definition at line 286 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [21/92]

TEST_F ( FPDFEditEmbedderTest ,
EmbedNotoSansSCFontWithCharcodes  )

Definition at line 331 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [22/92]

TEST_F ( FPDFEditEmbedderTest ,
EmptyCreation  )

Definition at line 392 of file fpdf_edit_embeddertest.cpp.

References FPDF_ClosePage(), and FPDFPage_GenerateContent().

+ Here is the call graph for this function:

◆ TEST_F() [23/92]

TEST_F ( FPDFEditEmbedderTest ,
FormGetObjects  )

Definition at line 3111 of file fpdf_edit_embeddertest.cpp.

References FPDFFormObj_CountObjects(), FPDFFormObj_GetObject(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_GetBounds(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), and FPDFPageObj_SetMatrix().

+ Here is the call graph for this function:

◆ TEST_F() [24/92]

TEST_F ( FPDFEditEmbedderTest ,
GetBitmap  )

Definition at line 4237 of file fpdf_edit_embeddertest.cpp.

References FPDFImageObj_GetBitmap(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [25/92]

TEST_F ( FPDFEditEmbedderTest ,
GetBitmapForJBigImage  )

Definition at line 4348 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [26/92]

TEST_F ( FPDFEditEmbedderTest ,
GetBitmapIgnoresSetMatrix  )

Definition at line 4298 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), and FPDFPageObj_SetMatrix().

+ Here is the call graph for this function:

◆ TEST_F() [27/92]

TEST_F ( FPDFEditEmbedderTest ,
GetBitmapIgnoresSMask  )

Definition at line 4366 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [28/92]

TEST_F ( FPDFEditEmbedderTest ,
GetContentStream  )

Definition at line 1896 of file fpdf_edit_embeddertest.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and CPDF_PageObject::GetContentStream().

+ Here is the call graph for this function:

◆ TEST_F() [29/92]

TEST_F ( FPDFEditEmbedderTest ,
GetImageData  )

Definition at line 4510 of file fpdf_edit_embeddertest.cpp.

References FPDFImageObj_GetImageDataDecoded(), FPDFImageObj_GetImageDataRaw(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [30/92]

TEST_F ( FPDFEditEmbedderTest ,
GetImageFilters  )

Definition at line 4636 of file fpdf_edit_embeddertest.cpp.

References FPDFImageObj_GetImageFilter(), FPDFImageObj_GetImageFilterCount(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [31/92]

TEST_F ( FPDFEditEmbedderTest ,
GetImageMatrix  )

Definition at line 4556 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [32/92]

◆ TEST_F() [33/92]

TEST_F ( FPDFEditEmbedderTest ,
GetImageMetadataJpxLzw  )

◆ TEST_F() [34/92]

TEST_F ( FPDFEditEmbedderTest ,
GetImagePixelSize  )

Definition at line 4753 of file fpdf_edit_embeddertest.cpp.

References FPDFImageObj_GetImagePixelSize(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [35/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapBadParams  )

Definition at line 4487 of file fpdf_edit_embeddertest.cpp.

References FPDFImageObj_GetRenderedBitmap(), FPDFPage_GetObject(), and FPDFPageObj_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [36/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapForColorText  )

Definition at line 4967 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [37/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapForHelloWorldText  )

Definition at line 4785 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [38/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapForNewlyCreatedText  )

Definition at line 4989 of file fpdf_edit_embeddertest.cpp.

References CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [39/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapForRotatedText  )

Definition at line 4905 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [40/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapForTextWithBadParameters  )

Definition at line 5018 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), and FPDFTextObj_GetRenderedBitmap().

+ Here is the call graph for this function:

◆ TEST_F() [41/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapHandlesSetMatrix  )

Definition at line 4386 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), FPDFPageObj_SetMatrix(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [42/92]

TEST_F ( FPDFEditEmbedderTest ,
GetRenderedBitmapHandlesSMask  )

Definition at line 4450 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [43/92]

TEST_F ( FPDFEditEmbedderTest ,
GetTextRenderMode  )

Definition at line 2807 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFTextObj_GetTextRenderMode().

+ Here is the call graph for this function:

◆ TEST_F() [44/92]

TEST_F ( FPDFEditEmbedderTest ,
GlyphPaths  )

Definition at line 3078 of file fpdf_edit_embeddertest.cpp.

References FPDFFont_GetGlyphPath(), FPDFGlyphPath_CountGlyphSegments(), FPDFGlyphPath_GetGlyphPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPathSegment_GetType(), and FPDFTextObj_GetFont().

+ Here is the call graph for this function:

◆ TEST_F() [45/92]

Definition at line 3290 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetBlendMode(), FPDFPageObj_SetFillColor(), and FPDFPageObj_SetStrokeColor().

+ Here is the call graph for this function:

◆ TEST_F() [46/92]

TEST_F ( FPDFEditEmbedderTest ,
InsertAndRemoveLargeFile  )

◆ TEST_F() [47/92]

TEST_F ( FPDFEditEmbedderTest ,
InsertPageObjectAndSave  )

Definition at line 2269 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), and FPDFPath_SetDrawMode().

+ Here is the call graph for this function:

◆ TEST_F() [48/92]

TEST_F ( FPDFEditEmbedderTest ,
InsertPageObjectEditAndSave  )

Definition at line 2299 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), and FPDFPath_SetDrawMode().

+ Here is the call graph for this function:

◆ TEST_F() [49/92]

TEST_F ( FPDFEditEmbedderTest ,
LoadCIDType0Font  )

Definition at line 3485 of file fpdf_edit_embeddertest.cpp.

References CPDF_Font::IsCIDFont(), and CPDF_Object::kString.

+ Here is the call graph for this function:

◆ TEST_F() [50/92]

TEST_F ( FPDFEditEmbedderTest ,
LoadCIDType2Font  )

Definition at line 3536 of file fpdf_edit_embeddertest.cpp.

References CPDF_Font::IsCIDFont().

+ Here is the call graph for this function:

◆ TEST_F() [51/92]

TEST_F ( FPDFEditEmbedderTest ,
LoadSimpleTrueTypeFont  )

Definition at line 3456 of file fpdf_edit_embeddertest.cpp.

References CPDF_Font::IsTrueTypeFont().

+ Here is the call graph for this function:

◆ TEST_F() [52/92]

TEST_F ( FPDFEditEmbedderTest ,
LoadSimpleType1Font  )

Definition at line 3426 of file fpdf_edit_embeddertest.cpp.

References CPDF_Font::IsType1Font().

+ Here is the call graph for this function:

◆ TEST_F() [53/92]

TEST_F ( FPDFEditEmbedderTest ,
LoadStandardFonts  )

Definition at line 3249 of file fpdf_edit_embeddertest.cpp.

◆ TEST_F() [54/92]

TEST_F ( FPDFEditEmbedderTest ,
MaintainIndirectMarkedObjects  )

Definition at line 1736 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().

+ Here is the call graph for this function:

◆ TEST_F() [55/92]

TEST_F ( FPDFEditEmbedderTest ,
MaintainMarkedObjects  )

Definition at line 1704 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().

+ Here is the call graph for this function:

◆ TEST_F() [56/92]

TEST_F ( FPDFEditEmbedderTest ,
MarkGetIntParam  )

Definition at line 4092 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamIntValue().

+ Here is the call graph for this function:

◆ TEST_F() [57/92]

TEST_F ( FPDFEditEmbedderTest ,
MarkGetName  )

Definition at line 4019 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetName().

+ Here is the call graph for this function:

◆ TEST_F() [58/92]

TEST_F ( FPDFEditEmbedderTest ,
MarkGetParamKey  )

Definition at line 4052 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamKey().

+ Here is the call graph for this function:

◆ TEST_F() [59/92]

TEST_F ( FPDFEditEmbedderTest ,
MarkGetStringParam  )

Definition at line 4128 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamStringValue().

+ Here is the call graph for this function:

◆ TEST_F() [60/92]

TEST_F ( FPDFEditEmbedderTest ,
ModifyFormObject  )

Definition at line 3167 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [61/92]

TEST_F ( FPDFEditEmbedderTest ,
MultipleGraphicsStates  )

Definition at line 5067 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GenerateContent(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [62/92]

TEST_F ( FPDFEditEmbedderTest ,
NoEmbeddedFontData  )

Definition at line 3039 of file fpdf_edit_embeddertest.cpp.

References FPDFFont_GetIsEmbedded(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFTextObj_GetFont().

+ Here is the call graph for this function:

◆ TEST_F() [63/92]

TEST_F ( FPDFEditEmbedderTest ,
NormalizeNegativeRotation  )

Definition at line 3579 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GetRotation().

+ Here is the call graph for this function:

◆ TEST_F() [64/92]

TEST_F ( FPDFEditEmbedderTest ,
PathOnTopOfText  )

Definition at line 2483 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPath_Close(), FPDFPath_LineTo(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [65/92]

TEST_F ( FPDFEditEmbedderTest ,
PathsPoints  )

Definition at line 2456 of file fpdf_edit_embeddertest.cpp.

References FPDFPageObj_Destroy(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().

+ Here is the call graph for this function:

◆ TEST_F() [66/92]

TEST_F ( FPDFEditEmbedderTest ,
RasterizePDF  )

Definition at line 406 of file fpdf_edit_embeddertest.cpp.

◆ TEST_F() [67/92]

TEST_F ( FPDFEditEmbedderTest ,
ReadMarkedObjectsIndirectDict  )

Definition at line 1424 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts().

+ Here is the call graph for this function:

◆ TEST_F() [68/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveAllFromMultipleStreams  )

Definition at line 2217 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().

+ Here is the call graph for this function:

◆ TEST_F() [69/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveAllFromSingleStream  )

Definition at line 2038 of file fpdf_edit_embeddertest.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CPDF_PageObject::GetContentStream().

+ Here is the call graph for this function:

◆ TEST_F() [70/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveAllFromStream  )

Definition at line 1922 of file fpdf_edit_embeddertest.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), CPDF_PageObject::GetContentStream(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [71/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveExistingPageObject  )

Definition at line 1768 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().

+ Here is the call graph for this function:

◆ TEST_F() [72/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveExistingPageObjectSplitStreamsLonely  )

Definition at line 1855 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [73/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveExistingPageObjectSplitStreamsNotLonely  )

Definition at line 1798 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [74/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveFirstFromSingleStream  )

Definition at line 2092 of file fpdf_edit_embeddertest.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CPDF_PageObject::GetContentStream().

+ Here is the call graph for this function:

◆ TEST_F() [75/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveLastFromSingleStream  )

Definition at line 2154 of file fpdf_edit_embeddertest.cpp.

References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), CPDF_PageObject::GetContentStream(), and pdfium::HelloWorldRemovedChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [76/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveMarkedObjectsPrime  )

Definition at line 1435 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [77/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveMarkParam  )

Definition at line 1619 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), and FPDFPageObjMark_RemoveParam().

+ Here is the call graph for this function:

◆ TEST_F() [78/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveMarks  )

Definition at line 1565 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObj_RemoveMark(), and FPDFPageObjMark_GetName().

+ Here is the call graph for this function:

◆ TEST_F() [79/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveTextObject  )

Definition at line 1092 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [80/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveTextObjectWithTwoPagesSharingContentArrayAndResources  )

Definition at line 1205 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [81/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveTextObjectWithTwoPagesSharingContentStreamAndResources  )

Definition at line 1139 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [82/92]

TEST_F ( FPDFEditEmbedderTest ,
RemoveTextObjectWithTwoPagesSharingResourcesDict  )

Definition at line 1264 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().

+ Here is the call graph for this function:

◆ TEST_F() [83/92]

TEST_F ( FPDFEditEmbedderTest ,
SaveAndRender  )

Definition at line 3727 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_SetFillColor(), FPDFPath_BezierTo(), FPDFPath_Close(), FPDFPath_LineTo(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [84/92]

TEST_F ( FPDFEditEmbedderTest ,
SetCharcodesBadParams  )

Definition at line 845 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), and FPDFPage_GetObject().

+ Here is the call graph for this function:

◆ TEST_F() [85/92]

TEST_F ( FPDFEditEmbedderTest ,
SetMarkParam  )

Definition at line 3843 of file fpdf_edit_embeddertest.cpp.

References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), and FPDFPageObjMark_GetParamStringValue().

+ Here is the call graph for this function:

◆ TEST_F() [86/92]

TEST_F ( FPDFEditEmbedderTest ,
SetText  )

Definition at line 787 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [87/92]

TEST_F ( FPDFEditEmbedderTest ,
SetTextKeepClippingPath  )

Definition at line 864 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [88/92]

TEST_F ( FPDFEditEmbedderTest ,
SetTextRenderMode  )

Definition at line 2825 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFTextObj_GetTextRenderMode(), FPDFTextObj_SetTextRenderMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().

+ Here is the call graph for this function:

◆ TEST_F() [89/92]

TEST_F ( FPDFEditEmbedderTest ,
TextFontProperties  )

Definition at line 2914 of file fpdf_edit_embeddertest.cpp.

References FPDFFont_GetAscent(), FPDFFont_GetDescent(), FPDFFont_GetFlags(), FPDFFont_GetFontName(), FPDFFont_GetGlyphPath(), FPDFFont_GetGlyphWidth(), FPDFFont_GetIsEmbedded(), FPDFFont_GetItalicAngle(), FPDFFont_GetWeight(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFTextObj_GetFont(), and FPDFTextObj_GetFontSize().

+ Here is the call graph for this function:

◆ TEST_F() [90/92]

TEST_F ( FPDFEditEmbedderTest ,
TransformAnnot  )

Definition at line 3645 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_TransformAnnots().

+ Here is the call graph for this function:

◆ TEST_F() [91/92]

TEST_F ( FPDFEditEmbedderTest ,
TraverseMarkedContentID  )

Definition at line 4178 of file fpdf_edit_embeddertest.cpp.

References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObj_GetType(), FPDFPageObjMark_CountParams(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), FPDFPageObjMark_GetParamKey(), and FPDFPageObjMark_GetParamValueType().

+ Here is the call graph for this function:

◆ TEST_F() [92/92]

TEST_F ( FPDFEditMoveEmbedderTest ,
MovePagesTest  )

Definition at line 5119 of file fpdf_edit_embeddertest.cpp.