Great, now the JPEG appears! And I can use this matrix to show it full-page:
Matrix(pageWidth.toFloat(), pageHeight.toFloat(), 0f, 0f)
Can I also use the matrix to rotate the image? I'm using this matrix to rotate annotations 90 degrees:
Matrix(0f, 1f, -1f, 0f, pageHeight.toFloat(), 0f)
But when I use that in the content.GSSetMatrix function above, the image doesn't appear. Even with this default matrix that doesn't do any rotation, the image doesn't appear:
Matrix(1f, 0f, 0f, 1f, 0f, 0f)
How do you recommend adding rotation to the code above?