Adding page numbers to existing PDF

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers only - Please do not post requests for older versions of PDF-XChange or the PDF-Tools/OFFice2PDF applications here

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
ALDEWACS
User
Posts: 21
Joined: Sat May 05, 2007 3:09 am
Location: Canada

Adding page numbers to existing PDF

Post by ALDEWACS »

When I take an existing PDF that is in landscape format and run it through the PDF-XChange printer to add page number increases in size from 17Kb to 250Kb and the orientation changes to portrait. Question is why does this happen?

Thanks for any help

Below is code used:

pdfPrinter.ResetDefaults
pdfPrinter.Option("Save.File") = m_fname
pdfPrinter.Option("Save.SaveType") = "Save"
pdfPrinter.Option("Save.ShowSaveDialog") = "No"
pdfPrinter.Option("Save.WhenExists") = "Overwrite"

If (m_bUseCompression = True) Then
With pdfPrinter
.Option("Compression.Graphics") = "Yes"
.Option("Compression.Text") = "Yes"
.Option("Compression.ASCII") = "No"
.Option("Compression.Color.Enabled") = "Yes"
.Option("Compression.Color.Method") = "Auto"
.Option("Compression.Indexed.Enabled") = "Yes"
.Option("Compression.Indexed.Method") = "Auto"
.Option("Compression.Mono.Enabled") = "Yes"
.Option("Compression.Mono.Method") = "Auto"
End With
Else
pdfPrinter.Option("Compression.Graphics") = "No"
pdfPrinter.Option("Compression.Text") = "No"
End If


With pdfPrinter
.Option("Fonts.EmbedAll") = IIf(m_bEmbeddFonts = True, 1, 0)
.Option("Save.RunApp") = m_bRun
.Option("Save.RunCustom") = "No"
.Option("Paper.SheetSizeIndex") = -1

.Option("HeadersFooters.Enabled") = True
.Option("HeadersFooters.FirstPageNumber") = intPageNo
.Option("HeadersFooters.OffsetBottom") = 50

.Option("HeadersFooters.Footer.left.Font") = "Arial"
.Option("HeadersFooters.Footer.left.FontBold") = "No"
.Option("HeadersFooters.Footer.left.FontSize") = 80
.Option("HeadersFooters.Footer.left.color") = 0
.Option("HeadersFooters.Footer.left.Value") = "Page %[Page]"
End With

d = ShellExecute(0, "printto", clsP.PDF_filename, pname, vbNull, SW_MINIMIZE)
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Adding page numbers to existing PDF

Post by John - Tracker Supp »

Please supply a sample PDF - before and after. Zipped.

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
ALDEWACS
User
Posts: 21
Joined: Sat May 05, 2007 3:09 am
Location: Canada

Re: Adding page numbers to existing PDF

Post by ALDEWACS »

John,

I've got a solution using another tool. It adds the page numbers and maintains the orientation of the PDF without increasing the result PDF size by such a factor as PDF-XChange does. You may want to research this symptom of your tool.

Thanks
User avatar
Chris - Tracker Supp
Site Admin
Posts: 797
Joined: Tue Apr 14, 2009 11:33 pm

Re: Adding page numbers to existing PDF

Post by Chris - Tracker Supp »

Please zip and attach a sample of the before and after pdfs so we can analyze the reported behaviour. :)

Thanks,
Chris
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.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
ALDEWACS
User
Posts: 21
Joined: Sat May 05, 2007 3:09 am
Location: Canada

Re: Adding page numbers to existing PDF

Post by ALDEWACS »

Chris,

I do not have sample files to provide - I've deleted them since I have a solution that works for me.

Sorry
User avatar
Chris - Tracker Supp
Site Admin
Posts: 797
Joined: Tue Apr 14, 2009 11:33 pm

Re: Adding page numbers to existing PDF

Post by Chris - Tracker Supp »

No Problem
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.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
Post Reply