I am needing to draw a line on every odd page, and then 2 lines on the last odd page by pdf stamp

I am needing to draw a line on every odd page, and then 2 lines on the last odd page.

Here is where I am at:

C:\Users\Desktop\pdfstamp_cmd\pdfstamp_cmd_v2.5\example\pdfstamp.exe -PDFs "C:\test\test*.pdf" -o "C:\test\out" -SR -S-1 -E-1 -AL -P2 -R90 -LW5 -W20 -AL -P3 -R90 -LW5 -W20

So the above will draw 2 lines on every odd page.  How do I make the last –AL call only draw a line on the last odd page?

I started on a little java project that used:

int total = reader.getNumberOfPages();

//Mark odd pages for collation
for (int i = 1; i <= total; i = i+2) {
canvas = stamper.getOverContent(i);
canvas.setLineWidth(2f);
canvas.moveTo(350, 20);
canvas.lineTo(350, 0);
canvas.stroke();

//Mark the last odd page for insertion
if (i == total || i == total-1){
canvas = stamper.getOverContent(i);
canvas.setLineWidth(2f);
canvas.moveTo(380, 20);
canvas.lineTo(380, 0);
canvas.stroke();
}
}

I am running Window7 SP1 if that matters.

Thanks,
===============================
Thanks for your message, you can separate this one command line into two command lines, one command line will add one text stamp, you can control page range in each command line separately.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!