Solutionunvalidated
There is a cross-platform multi-language PDF API (C, C#, CSS, Python, JavaScript, but not yet Java ?) that is well suited to this task. — Here I am simply using OS command lines with the prebuilt binary. Tension: Unlike many other methods the output PDF file size should be only slightly larger than the input PDF. Outcome: cpdf -chop-v 866 in.pdf -o 2bits.pdf & cpdf -chop-v 2598 2bits.pdf 2 -o 3bits.pdf.
4b703c7d-8a45-479d-9035-ef8bcc06567a
There is a cross-platform multi-language PDF API (C, C#, CSS, Python, JavaScript, but not yet Java ?) that is well suited to this task. — Here I am simply using OS command lines with the prebuilt binary. Tension: Unlike many other methods the output PDF file size should be only slightly larger than the input PDF. Outcome: cpdf -chop-v 866 in.pdf -o 2bits.pdf & cpdf -chop-v 2598 2bits.pdf 2 -o 3bits.pdf.