Does Aspose.PDF have an interface for interacting with measuring viewports? I can’t find anything under the name viewport in the API documentation. Specifically I would like to delete them.
I attached a pdf with two viewports in it, as well as a screenshot of how the viewports show up in the measurements menu of Bluebeam Revu.
BlankPageWithViewports.pdf (2.6 KB)
Screenshot 2024-01-08 110111.PNG.jpg (39.2 KB)
This is the main piece of the object encoding in the pdf:
9 0 obj[10 0 R 12 0 R]
endobj
10 0 obj<</Type/Viewport/BBox[239.1167 400.6904 939.9897 481.0964]/Name(Viewport1)/Measure 11 0 R/NM(FHHMPMPLUDUKEFBF)>>
endobj
11 0 obj<</Type/Measure/Subtype/RL/R(0.25 in = 1 ft’ in")/X[<</Type/NumberFormat/U(‘)/C 0.05555556/F/F/D 4/FD true/SS()>>]/D[<</Type/NumberFormat/U(’)/C 1/F/F/D 4/FD true/PS()/SS(-)>><</Type/NumberFormat/U(“)/C 12/F/F/D 4/FD true/PS()/SS()>>]/A[<</Type/NumberFormat/U(sq in)/C 144/D 100/FD true/SS()>>]/T[<</Type/NumberFormat/U(\260)/C 1/D 100/FD true/PS()/SS()>>]/V[<</Type/NumberFormat/U(cu in)/C 1728/D 100/FD true/SS()>>]/TargetUnitConversion 0.001157407>>
endobj
12 0 obj<</Type/Viewport/BBox[108.4568 212.4061 625.7358 634.5381]/Name(Viewport2)/Measure 13 0 R/NM(WXMTZOQMKATFBHAT)>>
endobj
13 0 obj<</Type/Measure/Subtype/RL/R(0.375 in = 1 ft’ in”)/X[<</Type/NumberFormat/U(‘)/C 0.03703704/F/F/D 4/FD true/SS()>>]/D[<</Type/NumberFormat/U(’)/C 1/F/F/D 4/FD true/PS()/SS(-)>><</Type/NumberFormat/U(")/C 12/F/F/D 4/FD true/PS()/SS()>>]/A[<</Type/NumberFormat/U(sq in)/C 144/D 100/FD true/SS()>>]/T[<</Type/NumberFormat/U(\260)/C 1/D 100/FD true/PS()/SS()>>]/V[<</Type/NumberFormat/U(cu in)/C 1728/D 100/FD true/SS()>>]/TargetUnitConversion 0.001157407>>
endobj