Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 26th, 2008, 10:31 PM
Registered User
 
Join Date: May 2008
Location: Frankfort, Kentucky, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default PCL to PDF conversion

Hi,

I am developing a program in which i need to convert PCL (Printer Control Language) file to PDF format, I tried to search on the web but was not satisfied with the solutions. Is there a way through which i can do the conversion?

Or

Is there any piece of source code, dll, api, activeX etc. through which i can solve this problem?

I am using VB6.0.

Thanking You.

  #2 (permalink)  
Old May 27th, 2008, 12:55 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I don't think this can be done. PCL is output from a print operation. So is PDF.

So you would need to go back from PCL to the original that led to it, and then go from there to PDF.

Don't you have the source that was turned into this PCL? Is this some old program that you cannot get to behave properly?
  #3 (permalink)  
Old May 28th, 2008, 03:23 AM
Registered User
 
Join Date: May 2008
Location: Frankfort, Kentucky, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks for your reply, I tried to convert the PCL file to PDF with some of the applications available on the internet, but the problem with the applications is the FONT, the fonts are not according to my requirements..
Is there any way to map fonts?
OR
Is there any way in which i can convert the PCL file to some intermediate file which can later be converted to PDF file?

  #4 (permalink)  
Old May 28th, 2008, 10:15 AM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Where is this PCL coming from?
  #5 (permalink)  
Old May 28th, 2008, 11:13 PM
Registered User
 
Join Date: May 2008
Location: Frankfort, Kentucky, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I am creating PCL file through programming.

Thanking You.



  #6 (permalink)  
Old May 29th, 2008, 12:04 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What do you mean? (It is easier to be helpful if yo are a little more forthcoming...)

You have control over this code that is creating the PCL file, and it is VB?

If that is right, then it seems the easiest thing to do is to stop creating PCL.

It is pretty easy to create output in ways that use Windows in a more integrated way. Under that way of doing things, you can create a .pdf pretty easily, by printing to a PDF “printer” driver.

My first choice would be to create an instance of Word, create a document in Word, then use Word’s means of printing, but specify a .pdf cretaor. An couple of added advantages are that you can save the document as a .doc, and that you can print to a real printer to check your output formatting during development.

But you might also be able to create a Rich-Text format textbox (either visible or not), create your output into that box (including font specifications), and use the print method(s) of the box to print to a PDF creator.
  #7 (permalink)  
Old June 2nd, 2008, 12:16 AM
Registered User
 
Join Date: May 2008
Location: Frankfort, Kentucky, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is it possible to create a ps file as output through programming in VB6?


  #8 (permalink)  
Old June 2nd, 2008, 11:56 AM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Ps?
  #9 (permalink)  
Old June 3rd, 2008, 11:37 PM
Registered User
 
Join Date: May 2008
Location: Frankfort, Kentucky, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

PS is a Postscript file.

  #10 (permalink)  
Old June 4th, 2008, 10:38 AM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I believe that you can create anything with VB. With some output, you have to exert more "supervision..."

I believe that creating PS output would be just like creating a .PDF. The machine would have a driver on it for that format, and you would print to the driver.

As I understand it with PCL, you actually need to create the content of the file, sending the strings to print and the embedded codes through literal file input commands. That’s a lot of supervision!

Is there a reason you don’t want to just print to a .PDF driver? It seems like the easiest route, given what you have described so far...




Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to HTML conversion madhukp Classic ASP Basics 11 June 24th, 2013 07:19 PM
PDF to XML conversion bcogney XSLT 7 September 21st, 2011 06:27 AM
html to pdf conversion gaurikhot ASP.NET 2.0 Professional 1 December 8th, 2008 06:57 AM
PDF Conversion to Image bpmills HTML Code Clinic 1 June 21st, 2005 11:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.