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!
Assemble multi PDF files in one Page |
Post Reply |
Author | |
JMLM
Team Player Joined: 26 Mar 13 Status: Offline Points: 40 |
Post Options
Thanks(0)
Posted: 26 Mar 13 at 4:23PM |
Hello (I new in this forum ) How can I assemble multi PDF files in one page (one on the top, one in the midlle, and a footer for exemple ) and write text on it ? Thanks Jm
Edited by JMLM - 26 Mar 13 at 4:25PM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Jim!
We don't have a guid here for things like this. What you'll need is the functionality to save the single pages as images. In a second run you should shrink the dimensions of each image with ratio 3. In a third run you should paste these smaller images three per page on new pages. In a fourth run you can write on these pages with the drawing functionalities. More detailed you can read about the functions for the single steps in the developer guide and the reference. Cheers and welcome here, Ingo |
|
JMLM
Team Player Joined: 26 Mar 13 Status: Offline Points: 40 |
Post Options
Thanks(0)
|
I'm on mac : does RenderDocumentToFile function works ?
I tried it but images are empty.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Yes. It works and it's easy to handle.
Better is RenderDocumentToStream (faster). If you can post your code here (without key!) perhaps there's anybody who can correct your code. You should be patient 'cause the mac-version is pretty "fresh" on the market ;-) Try the guides and search here in the samples- section with RenderDocumentTo. Cheers, Ingo Edited by Ingo - 26 Mar 13 at 7:36PM |
|
JMLM
Team Player Joined: 26 Mar 13 Status: Offline Points: 40 |
Post Options
Thanks(0)
|
Nice, thanks.
|
|
JMLM
Team Player Joined: 26 Mar 13 Status: Offline Points: 40 |
Post Options
Thanks(0)
|
Hi
RenderDocumentToStream is not listed in mac documentation and not listed in Xcode I tried these lines : http://www.debenu.com/kb/render-a-pdf-as-an-image-with-an-asymmetrical-dpi/ [DQPL LoadFromFile:@"/Users/JMLM/Desktop/advil.pdf" :@""] ; [DQPL RenderPageToFile:72: 1 : 5:@"/Users/JMLM/Desktop/testImg/test.png"];
// Get the original size of the page double OriginalWidth = [DQPL PageWidth]; double OriginalHeight = [DQPL PageHeight];
// Add a new page [DQPL NewPage];
// Work out the asymmetrical scaling double NewWidth = OriginalWidth; double NewHeight = OriginalHeight * 196 / 204;
// Set the dimensions of the new page [DQPL SetPageDimensions :NewWidth : NewHeight];
// Capture the original page (it will be removed // from the document automatically) int CaptureID = [DQPL CapturePage : 1];
// Set the original to the top-left corner [DQPL SetOrigin : 1];
// Draw the captured page onto the new page [DQPL DrawCapturedPage :CaptureID: 0: 0: NewWidth: NewHeight];
// Render the page [DQPL RenderPageToFile : 204: 1: 5: @"/Users/JMLM/Desktop/testImg/test-2.png" ]; and I tried these lines : int pageCount = [DQPL PageCount]; [DQPL LoadFromFile:@"/Users/JMLM/Desktop/test.pdf" :@""] ;
[DQPL RenderDocumentToFile:72: 0: pageCount: 5: @"/Users/JMLM/Desktop/testImg/test.png"]; Images are created but all are empty. Edited by JMLM - 27 Mar 13 at 11:52AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Perhaps you should try to "combine the layers" first. Cheers, Ingo
|
|
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