Print Page | Close Window

Custom page size

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=470
Printed Date: 18 May 24 at 10:20PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Custom page size
Posted By: Hopeful
Subject: Custom page size
Date Posted: 19 Jul 06 at 4:58AM
I want to use QuickPDF to generate a receipt on a POS printer which uses continuous paper. I could still treat this as a page (rather than continuous), it would just be a really long page, e.g. 16". Any suggestions?



Replies:
Posted By: ukobsa
Date Posted: 19 Jul 06 at 6:40AM
Hm, do you think that this is a good idea? Is there a reason that you cannot use POS printers language to print the receipt?

greetings,
Ulrich


Posted By: Hopeful
Date Posted: 19 Jul 06 at 6:57AM
I think it's an excellent idea  I would rather not be tied to a particular manufacturer or model of receipt printer and also be forced to use fixed-pitch fonts to allow me to justify columns in the receipt.


Posted By: chicks
Date Posted: 19 Jul 06 at 12:08PM
I work with Ithaca, Epson, Star and Citizen receipt printers, and wouldn't even think of using PDF with them.

I developed a custom print engine in Java and a markup language which can interface generically with all of them, but there are a couple of standards (OPOS, JavaPOS) that can also be used.


Posted By: Hopeful
Date Posted: 19 Jul 06 at 12:13PM

Originally posted by chicks chicks wrote:

I work with Ithaca, Epson, Star and Citizen receipt printers, and wouldn't even think of using PDF with them.

I developed a custom print engine in Java and a markup language which can interface generically with all of them, but there are a couple of standards (OPOS, JavaPOS) that can also be used.

Do tell, why wouldn't you even think of using PDF? The printer I'm considering scales down A4 web pages to print out. What's the big problem with printing a PDF file to it?



Posted By: chicks
Date Posted: 19 Jul 06 at 12:43PM
Should have qualified a bit - I'm still working with a number of impact and inkjet POS printers, which would be agonizingly slow printing PDF through a printer driver, since everything would have to be printed as an image. They are more than adequately fast in their native language, however.

If you're using one of the high-end thermal recepit printers specifically meant for page printing, like the Star TSP-700, PDF will print just fine.


Posted By: Hopeful
Date Posted: 19 Jul 06 at 1:34PM
That's good. Any ideas regarding the custom page length though?


Posted By: chicks
Date Posted: 19 Jul 06 at 2:03PM
SetPageDimensions

Description
Set the size of the selected page. By default, the parameters should specify the width and height of the page in
points. Use the SetMeasurementUnits function to change the units to millimetres or inches.

Definition
function SetPageDimensions(NewPageWidth As Double,
NewPageHeight As Double) As Long

Parameters
NewPageWidth The new width of the page.
NewPageHeight The new height of the page.

Returns
0 The page size could not be set. This should never occur.
1 The page was resized successfully.



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