Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Printing two pages in one |
Post Reply |
Author | |
ggirarde
Beginner Joined: 30 Jun 14 Location: Milan Italy Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 30 Jun 14 at 6:08PM |
Since many printers directly support the 2 pages in 1 and 4 pages in 1 printing, I tought it were a simple thing to get this done with QuickPdf Library on the right printer but, after some search about SetupCustomPrinter, PrintOptions and GetPrinterBins, I feel lost.
Is there any way to do it? Ty in advance. |
|
Paul
Moderator Group Joined: 25 Jun 14 Location: Slovakia Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Debenu Quick PDF Library does not have this option yet. This could be a good feature. Try to send it via this form: http://www.debenu.com/support/contact/
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
did you look at this:
http://www.debenu.com/docs/pdf_library_reference/DrawCapturedPage.php cheers mLipok
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
I think I can create an example in this weekend.
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
The only way to do this is via CapturePage and DrawCapturedPage. Andrew. Andrew.
|
|
ggirarde
Beginner Joined: 30 Jun 14 Location: Milan Italy Status: Offline Points: 3 |
Post Options
Thanks(0)
|
CapturePage and DrawCapturedPage ... very interesting suggestion.
Ty a lot for your response :) |
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Finally I have time to finish it.
Func _QP_Page_2in1(ByRef $oQP, $bAddSplitter = False) Local $iOrginalPageCount = $oQP.PageCount() Local $iNewPageCounter = 0 Local $bNewPageHaveDrawedTopOfPage = False ; 1 = true , 0 = false Local $iID_CapturedPage If $iOrginalPageCount > 1 Then For $iCurrentPage = 1 To $iOrginalPageCount If Not $bNewPageHaveDrawedTopOfPage Then $oQP.NewPage() $iNewPageCounter += 1 $oQP.MovePage($iNewPageCounter) $oQP.SetPageSize('A4') If $bAddSplitter Then $oQP.SetLineWidth(1) $oQP.SetLineColor(1, 0, 0) $oQP.SetMeasurementUnits($__eQPDF_MUNITS_Milimeters) $oQP.DrawLine(0, $__eQPDF_A4_HeightInMM / 2, $__eQPDF_A4_WidthInMM, $__eQPDF_A4_HeightInMM / 2) EndIf EndIf $iID_CapturedPage = $oQP.CapturePage($iNewPageCounter + 1) ; select Page to which you want Insert content - Draw Captutred Page $oQP.SelectPage($iNewPageCounter) If Not $bNewPageHaveDrawedTopOfPage Then ; draw on top of page $oQP.DrawRotatedCapturedPage($iID_CapturedPage, 0, _ $__eQPDF_A4_HeightInMM, _ $__eQPDF_A4_HeightInMM / 2, $__eQPDF_A4_WidthInMM, 270) $bNewPageHaveDrawedTopOfPage = True Else ; draw on bottom of page $oQP.DrawRotatedCapturedPage($iID_CapturedPage, 0, _ $__eQPDF_A4_HeightInMM / 2, _ $__eQPDF_A4_HeightInMM / 2, $__eQPDF_A4_WidthInMM, 270) $bNewPageHaveDrawedTopOfPage = False EndIf Next EndIf EndFunc ;==>_QP_Page_2in1 Edit: Typo
Edited by mLipok - 27 Oct 14 at 8:43PM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store