Print Page | Close Window

A3 to A4

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1711
Printed Date: 29 Apr 25 at 9:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: A3 to A4
Posted By: darkv
Subject: A3 to A4
Date Posted: 17 Jan 11 at 2:18PM
Happy New Year to all of you

Does anyone try to split an A3 page to A4 pages.

Page contains roughly 10 images, so could not use the graphics facility to split pages.
So any help/advice will be welcome

Thks in advance

Rgds
Eric






Replies:
Posted By: Ingo
Date Posted: 17 Jan 11 at 3:37PM
Hi!

Copy the A3-page to an A4-page.
Rotate the A3-page with 180 degree.
Copy the A3-page to another A4-page.
Rotate the other A4-page with 180 degree.
...It's only from my mind... should work ;-)

More details... here's the online-reference:
http://www.quickpdflibrary.com/help/quickpdf/FunctionGroups.php

Cheers and welcome here,
Ingo




Posted By: darkv
Date Posted: 18 Jan 11 at 9:54AM
Ingo,

Thanks for you reply & your welcome message.

Copypageranges does not work (documentation is very poor abour this function, especially using .net) , may be due to usage of DAFileOpen.

I found some differences depending on using DA or "normal" functions. Is there any datasheet on impact when using one or the other, and when to choose DA functions or "normal"

Still investigating ;-)

Rgds
Eric


Posted By: Ingo
Date Posted: 18 Jan 11 at 12:19PM
Hi Eric!

The MOST important thing:
Don't (NEVER) mix DA-functions with non-DA-functions!

Cheers, Ingo



Posted By: darkv
Date Posted: 18 Jan 11 at 1:15PM
Ingo,

Thanks for your advice, i will ;-)

Till now, i forgot CopyPage which does not work, and use Extractfile (which allows also to make a work copy more safe)

Then i used your rotation advice, it works for the left page but not for the right one (it stilll got the left page)

Please find below an code extraction (i'm convinced this is an obvious but looking for too long)

Feel free if u see where i'm wrong

Thks in advance
Rgds
Eric

        zPdf.LoadFromFile("c:\temp.dir\blank_pp1.pdf")
        lRtn = zPdf.RotatePage(90)
        lRtn = zPdf.SetPageSize("A4 Landscape")
        lRtn = zPdf.SaveToFile("c:\temp.dir\blank_pt1.pdf")    >>> Left page is ok
        '
        zPdf.LoadFromFile("c:\temp.dir\blank_pp1.pdf")
        lRtn = zPdf.RotatePage(180)
        lRtn = zPdf.SaveToFile("c:\temp.dir\blank_pp2.pdf") >>>> right page is at the bottom

        zPdf.LoadFromFile("c:\temp.dir\blank_pp2.pdf")
        lRtn = zPdf.RotatePage(270)
        lRtn = zPdf.SetPageSize("A4 Landscape")   
        lRtn = zPdf.SaveToFile("c:\temp.dir\blank_pt2.pdf") >>>>> left page but inversed




Posted By: darkv
Date Posted: 19 Jan 11 at 12:05PM
Ingo,

I solved it using graphics function (renderpagetoDC) and then using .net image manipulations.

It seems that using the rotatepages function keeps height and width to the original values (before rotation) .... easy to fix, but little bit boring ...

thks for your help

Rgds
Eric

Ps : how to close this post



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk