Fedora has issued an advisory on April 5:
The issue is fixed upstream in 2.10.0.
Fixed upstream in 2.10.0
Done for mga8!
Fixed upstream in 2.10.0 =>
There does not appear to be a PoC for this issue.
Found two simple examples of its use. Note that only python3 is supported.
Remove last page from a document.
$ cat test.py
with pikepdf.open( 'input.pdf' ) as pdf:
num_pages = len( pdf.pages )
pdf.save( 'output.pdf' )
Ran this against a local PDF file and checked output.pdf in okular to see that the last page was removed.
Rotate all pages of a document by 180°.
$ cat rotate.py
# Rotate all pages in a file by 180 degrees
my_pdf = pikepdf.Pdf.open( 'test.pdf' )
for page in my_pdf.pages:
page.Rotate = 180
my_pdf.save( 'test-rotated.pdf' )
Ran this and sure enough all 28 pages appeared upside-down in the output.
pikepdf has a lot more capabilities but this shows that it is functional.
Waiting for the advisory in case something has been missed.
Assigning OK for mga8.