Problems merging 2 landscape PDFs

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Problems merging 2 landscape PDFs

Post by Compunited » Mon Dec 03, 2007 2:11 pm

Hi,
I'm trying to merge two PDFs in landscape format. As a result I correctly get a PDF in landscape format but the second document is merged in portrait format into it.
I haven't found a parameter for setting portrait/landscape
I read the document like this
res = PXCp_ReadDocumentW(PDF, StrConv(strNavigationTemplate, vbUnicode), 0)

Dim objContentPlaceInfo As PXCp_ContentPlaceInfo


objContentPlaceInfo.Alignment = CPA_HorLeft
objContentPlaceInfo.DestPage = 0
objContentPlaceInfo.SrcPage = 0


and merge it like this
res = PXCp_PlaceContents(PDF1, PDF2, 1, objContentPlaceInfo, 0)

What's wrong?

Michael

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Mon Dec 03, 2007 2:56 pm

Can you provide us with PDFs which cause the trouble ?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Tue Dec 04, 2007 12:05 pm

Here are the two files
Attachments
Landscape_problems.zip
(7.77 KiB) Downloaded 207 times

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Wed Dec 05, 2007 8:46 am

Trouble reproduced. We are working on the fix. Thanks for your patience.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Wed Dec 05, 2007 10:02 am

Thanks.
btw there also seems to be a memory leek in the merging funktion. After round about 2000 PDFs excel fails with not enough memory and it's impossible to save anything.

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Wed Dec 05, 2007 10:50 am

I'm afraid I will need your code which calls PXCp_XXX function for checking memory leaks if they are.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Mon Dec 10, 2007 9:24 am

Do you have any news concerning the document merging question? My customer is very impatient.

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Mon Dec 10, 2007 10:23 am

Troubles with merging landscape oriented documents are solved. New build with included this fix will be available in days.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

New binary?

Post by Compunited » Fri Dec 14, 2007 11:45 am

Hi
Is the new binary ready and where can i get it. We have acceptance procedure today.

Regards

Michael

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Dec 14, 2007 12:35 pm

Hi,

We will begin uploading in approx 1 hour - so I suggest you wait approx 4 hours as the whole process is quite lengthy due to the number of differing installation files for differing purposes we must upload

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Dec 14, 2007 3:39 pm

Build 3.60128 now available

Download latest Releases
http://www.tracker-software.com/downloads/

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Problem not solved

Post by Compunited » Mon Dec 17, 2007 7:14 am

Hi,

i've uninstalled the previous sdk, deleted the folde tracker software and installed the new sdk.
The problem is still there.

regards
Michael

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Dec 17, 2007 7:23 am

Hi Michael,

Could you please zip and send the file generated by the new build.

Many thanks.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Mon Dec 17, 2007 3:22 pm

Here is the sample
Attachments
MergeError.zip
(7.01 KiB) Downloaded 211 times

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Mon Dec 17, 2007 5:57 pm

Sorry, but attached file was not created by PDF-XChange.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Tue Dec 18, 2007 7:13 am

It was actually created with pdf-xchange. Only the template which is merged to the other page was created with Adobe Acrobat because of the Buttons.
I can send you the Excel VBA code to create this file yourself .

Regards

Michael

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Tue Dec 18, 2007 8:47 am

Yes, please send this code, and original PDFs.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Tue Dec 18, 2007 2:00 pm

Just extract everything to c:\tracker open the excel sheet and hit create pdf
Attachments
Tracker.zip
(110.4 KiB) Downloaded 202 times

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Wed Dec 19, 2007 8:51 am

The problem is you have more than one copies of the PDF-XChange DLLs -- the file you sent (error.pdf) was created by build 0124, but not the build 0128 where this trouble was fixed. So, just check all places where DLLs are located (Excel uses PATH environment to find DLLs) and replace them with latest build you have.

Attached file is the file created by 0128 build.
Attachments
error.zip
(8.63 KiB) Downloaded 206 times
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Compunited
User
Posts: 15
Joined: Mon Dec 03, 2007 1:40 pm

Post by Compunited » Wed Dec 19, 2007 1:03 pm

Thanks.
Dll was copied into the system32 directory by the user.

Regards

Michael

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Dec 19, 2007 3:11 pm

Pleased all is well.

If this ever happens in the future - you might find this tool useful.

http://www.tracker-software.com/forum/v ... php?t=1545
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply