Reformat radial shading pixel tests.

Fix invalid /Length entries along the way.

Change-Id: I3c41639a8915cbc9303e2bf3b1d697b56cf53fc3
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/60993
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/radial_shading_point_at_border.in b/testing/resources/pixel/radial_shading_point_at_border.in
index ccb4cce..498c04e 100644
--- a/testing/resources/pixel/radial_shading_point_at_border.in
+++ b/testing/resources/pixel/radial_shading_point_at_border.in
@@ -1,43 +1,45 @@
 {{header}}
-
-{{object 1 0}}
-<< /Pages 2 0 R >>
+{{object 1 0}} <<
+  /Pages 2 0 R
+>>
 endobj
-
-{{object 2 0}}
-<< /Type /Pages /Count 1 /Kids [ 3 0 R ] >>
+{{object 2 0}} <<
+  /Type /Pages
+  /Count 1
+  /Kids [3 0 R]
+>>
 endobj
-
-{{object 3 0}}
-<<
+{{object 3 0}} <<
   /Type /Page
   /Parent 2 0 R
   /MediaBox [0 0 300 400]
   /Contents 4 0 R
-  /Resources << /Shading << /R9 5 0 R >> >>>>
+  /Resources <<
+    /Shading <<
+      /R9 5 0 R
+    >>
+  >>
+>>
 endobj
-
-{{object 4 0}}
-<< /Length 5 0 R >>
+{{object 4 0}} <<
+  {{streamlen}}
+>>
 stream
 50 0 0 50 150 100 cm
 10 10 280 380 re f
 /R9 sh
 endstream
 endobj
-
-{{object 5 0}}
-<<
+{{object 5 0}} <<
   /ShadingType 3
   /ColorSpace /DeviceRGB
-  /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0] % Start is a point on the border of end
+  % Start is a point on the border of end
+  /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0]
   /Function 6 0 R
   /Extend [true true]
  >>
 endobj
-
-{{object 6 0}}
-<<
+{{object 6 0}} <<
   /FunctionType 2
   /Domain [0.0 1.0]
   /C0 [0.1 0.2 0.8]
@@ -45,7 +47,6 @@
   /N 1
 >>
 endobj
-
 {{xref}}
 {{trailer}}
 {{startxref}}
diff --git a/testing/resources/pixel/radial_shading_point_at_border_no_extend.in b/testing/resources/pixel/radial_shading_point_at_border_no_extend.in
index ce98dd8..f41a72e 100644
--- a/testing/resources/pixel/radial_shading_point_at_border_no_extend.in
+++ b/testing/resources/pixel/radial_shading_point_at_border_no_extend.in
@@ -1,43 +1,45 @@
 {{header}}
-
-{{object 1 0}}
-<< /Pages 2 0 R >>
+{{object 1 0}} <<
+  /Pages 2 0 R
+>>
 endobj
-
-{{object 2 0}}
-<< /Type /Pages /Count 1 /Kids [ 3 0 R ] >>
+{{object 2 0}} <<
+  /Type /Pages
+  /Count 1
+  /Kids [3 0 R]
+>>
 endobj
-
-{{object 3 0}}
-<<
+{{object 3 0}} <<
   /Type /Page
   /Parent 2 0 R
   /MediaBox [0 0 300 400]
   /Contents 4 0 R
-  /Resources << /Shading << /R9 5 0 R >> >>>>
+  /Resources <<
+    /Shading <<
+      /R9 5 0 R
+    >>
+  >>
+>>
 endobj
-
-{{object 4 0}}
-<< /Length 5 0 R >>
+{{object 4 0}} <<
+  {{streamlen}}
+>>
 stream
 50 0 0 50 150 100 cm
 10 10 280 380 re f
 /R9 sh
 endstream
 endobj
-
-{{object 5 0}}
-<<
+{{object 5 0}} <<
   /ShadingType 3
   /ColorSpace /DeviceRGB
-  /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0] % Start is a point on the border of end
+  % Start is a point on the border of end
+  /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0]
   /Function 6 0 R
   /Extend [false false]
  >>
 endobj
-
-{{object 6 0}}
-<<
+{{object 6 0}} <<
   /FunctionType 2
   /Domain [0.0 1.0]
   /C0 [0.1 0.2 0.8]
@@ -45,7 +47,6 @@
   /N 1
 >>
 endobj
-
 {{xref}}
 {{trailer}}
 {{startxref}}
diff --git a/testing/resources/pixel/radial_shading_point_at_center.in b/testing/resources/pixel/radial_shading_point_at_center.in
index bc56cec..d584a41 100644
--- a/testing/resources/pixel/radial_shading_point_at_center.in
+++ b/testing/resources/pixel/radial_shading_point_at_center.in
@@ -1,33 +1,36 @@
 {{header}}
-
-{{object 1 0}}
-<< /Pages 2 0 R >>
+{{object 1 0}} <<
+  /Pages 2 0 R
+>>
 endobj
-
-{{object 2 0}}
-<< /Type /Pages /Count 1 /Kids [ 3 0 R ] >>
+{{object 2 0}} <<
+  /Type /Pages
+  /Count 1
+  /Kids [3 0 R]
+>>
 endobj
-
-{{object 3 0}}
-<<
+{{object 3 0}} <<
   /Type /Page
   /Parent 2 0 R
   /MediaBox [0 0 300 400]
   /Contents 4 0 R
-  /Resources << /Shading << /R9 5 0 R >> >>>>
+  /Resources <<
+    /Shading <<
+      /R9 5 0 R
+    >>
+  >>
+>>
 endobj
-
-{{object 4 0}}
-<< /Length 5 0 R >>
+{{object 4 0}} <<
+  {{streamlen}}
+>>
 stream
 50000 0 0 50000 150 100 cm
 10 10 280 380 re f
 /R9 sh
 endstream
 endobj
-
-{{object 5 0}}
-<<
+{{object 5 0}} <<
   /ShadingType 3
   /ColorSpace /DeviceRGB
   /Coords [0.0 0.0 0.0 0.0 0.0 0.005] % Concentric circles
@@ -35,9 +38,7 @@
   /Extend [true true]
  >>
 endobj
-
-{{object 6 0}}
-<<
+{{object 6 0}} <<
   /FunctionType 2
   /Domain [0.0 1.0]
   /C0 [0.8 0.1 0.2]
@@ -45,7 +46,6 @@
   /N 1
 >>
 endobj
-
 {{xref}}
 {{trailer}}
 {{startxref}}