pdfium/testing/resources/clip_path.in
Miklos Vajna 45501f3d1e Add FPDFPageObj_GetClipPath() API
This adds an API to expose the data inside CPDF_ClipPath.

Next to the initial getter, this also adds:

- FPDFClipPath_CountPaths() to get number of paths inside the clip path
- FPDFClipPath_CountPathSegments() to get the number of segments inside
  one specific path
- FPDFClipPath_GetPathSegment() to get a FPDF_PATHSEGMENT, which can be
  already analyzed using the existing FPDFPathSegment_*() APIs.

Bug: pdfium:1332
Change-Id: I6a8d99fd80d1df2c3e1c1406757f20d9f9873f0d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/58310
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2019-07-30 07:41:02 +00:00

40 lines
415 B
Plaintext

{{header}}
{{object 1 0}} <<
/Type /Catalog
/Pages 2 0 R
>>
endobj
{{object 2 0}} <<
/Type /Pages
/Kids [3 0 R]
/MediaBox [0 0 100 50]
/Count 1
>>
endobj
{{object 3 0}} <<
/Type /Page
/Contents 4 0 R
/Parent 2 0 R
>>
endobj
{{object 4 0}} <<
{{streamlen}}
>>
stream
10 15 m
40 15 l
40 35 l
10 35 l
W n
0 0 1 RG
10 10 m
25 40 l
40 10 l
s
endstream
endobj
{{xref}}
{{trailer}}
{{startxref}}
%%EOF