Does anyone have sample code to accurately space Avery 5160 / 5162 labels using ASPose.PDF?
I’m having numerous issues with margins on the page and aligning eaching row of labels to print on the label in the same spot.
Reading other posts, I have created two additional columns in my labels for spacing. In that colum I’ve created a graph with a line of 72 high, thinking it would space the labels 1" apart. Unfortunately it doesn’t and they slowly creep onto other labels.
Additionally, printer margins automatically throw alignment off:
oPDF.PageSetup.PageWidth = 612
oPDF.PageSetup.PageHeight = 792
oPDF.PageSetup.Margin.Left = 2
oPDF.PageSetup.Margin.Right = 0
oPDF.PageSetup.Margin.Top = 25
oPDF.PageSetup.Margin.Bottom = 0
It was my understanding everything was based on 72 “units” per inch therefore a .5" margin at the top should be 37.5. If I change it to 37.5 then it appears to add this margin to that of the printer’s margin and pushes the labels down even further. The same is true for the left margin.