Crop PDF Page
The Crop Box in PDF terms describes the area of the PDF pages displayed by the PDF Reader or printed by the printer.
Setting a crop box with Aloaha is very easy. Please see the sample code below:
dim pdf
set pdf = createobject("aloahapdf.edit")
if pdf.load_pdf_to_mem(cstr(file_to_load)) = true then
call pdf.set_CropBox(clng(CropPage), clng(cLeft), clng(cTop), clng(cWidth), clng(cHeight))
call pdf.save_pdf_to_file(cstr(TargetFile))
end if
set pdf = nothing
Aloaha Software / Knowledge Base / PDF SDK / Crop PDF Page