![]() ![]() NewPDF.Pages(0).Merge2(jobPDF.Pages(0),(newRect.right-(jobRect.right*scaling))/2,(newRect.top-(jobRect. Merge existing page onto new page, scaling and offsetting accordingly If Auto Size is on, dragging the page edge turns it off. ![]() To rotate the page, move the pointer a little outside the corner of the page until it turns into the rotation cursor, then click and drag the page. Var scaling = Math.min(widthScaling, heightScaling) If you drag the corner of a page, it adjusts the page size in both dimensions. Choose from the most used aspect ratios for PDF documents like DIN A4, A5. Var heightScaling = newRect.top/jobRect.top Change-pdf-page-size - Upload your PDF file and resize it online and for free. Var widthScaling = newRect.right/jobRect.right ![]() JobPDF.Open(Watch.GetJobFileName(),false) Var jobRect = new ActiveXObject("AlambicEdit.PdfRect") Var newRect = new ActiveXObject("AlambicEdit.PdfRect") Still, it should help get you started if you want to implement this with Workflow: var newPDF = Watch.GetPDFEditObject() In this example, it maps the current job file (which is presumed to be a PDF) onto a newly created A3 page. The following code does that, but be advised that it’s just something I had in my collection of scripts and that it may not do exactly what you want. Not sure about creating page sizes dynamically (I will leave that part to Design experts), but in Workflow you can script a method that scales and centers a page onto a different media. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |