Page 1 of 1

Simple Text File to PDF File Conversion using SDK Libraries?

Posted: Tue Jun 16, 2009 4:49 pm
by gregv
I would like to use VS C# to convert an existing text file to pdf format.
Do you have any C# examples the show how to do this using the SDK (Tools or XC)?
The reason for using code is that we need some kind of audit trail for the conversion.
A simple failed, succeeded from the return of of a method call would suffice.

Thanks in advance,

Greg Venable

Re: Simple Text File to PDF File Conversion using SDK Libraries?

Posted: Wed Jun 17, 2009 8:58 am
by John - Tracker Supp
Hi Greg,

its a while since I had Version 3 installed here now - but certainly there is an example using the pxclib40 library in version 4 and that should not be so different - you can download V4 here :

http://www.tracker-software.com/downloads/dev/

PDF-Tools SDK

HTH

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 3:12 pm
by syedrehman
Hi..
I am trying to convert simple text to pdf . I am facing the same problem. could any one help me out in getting the appropriate library.
so that i can start coding.

Is pxclib40 is the only library required to convert word to pdf ? or other libraries does it require.


Thanks in advance

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 3:29 pm
by Tracker Supp-Stefan
Hello syedrehman,

Is it "simple text" - like a .txt file, or an actual doc/docx file that you want to convert to PDF?
As there would be quite some differences for one and the other.
If your files are plain text ones - take a look at
C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\SDKExamples\<<YOUR PREFERRED PROGRAMMING LANGUAGE>>\PDFXCDemo

If it's conversion of .doc files to PDF - check my reply in your other topic.

Regards,
Stefan

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 3:34 pm
by syedrehman
Thank you my friend for your quick responce. I will check it

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 3:37 pm
by Tracker Supp-Stefan
Glad to help syedrehman!

Cheers,
Stefan

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 3:42 pm
by syedrehman
I just went to
C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\SDKExamples\<<YOUR PREFERRED PROGRAMMING LANGUAGE>>\PDFXCDemo
and open the application.
I guess this application is manupulation the pdf files(like water marking,document outlines etc).
Does it converting text file to pdf?If yes could you please guide me as I am very new to this.

Thaks


Regards
Syed

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 4:45 pm
by Tracker Supp-Stefan
Hello Syed,

Please take some time to review the project.
It shows you how you can do various things with the PDF Tools SDK - it does create new PDF files from scratch. With the correct radio button option selected this sample project takes text from ..\TestFiles\ex_text.txt - and adds it to the generated PDF page. This should be a good starting point for you.

Regards,
Stefan

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 5:11 pm
by syedrehman
Thank you my friend ..I am getting it slowly. :)

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Wed Jun 10, 2015 6:10 pm
by Will - Tracker Supp
:)

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Thu Jun 11, 2015 1:49 pm
by syedrehman
Unable to load DLL 'pxclib40': The specified module could not be found. (Exception from HRESULT: 0x8007007E).

The above error is showing when I try to open the application .exe file of PDFXC Application

I tried to solve . Unfortunately I could not get it. Can any one help me

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Thu Jun 11, 2015 4:10 pm
by Tracker Supp-Stefan
Hello Syed,

I believe we resolved this over e-mails?

Cheers,
Stefan

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Thu Jun 11, 2015 6:06 pm
by syedrehman
Thank you.. Yes I am working on this.

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Thu Jun 11, 2015 6:46 pm
by Will - Tracker Supp
:)

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 15, 2015 7:01 pm
by syedrehman
I would like to convert simple text file to pdf format(Not Word to Pdf) . Could you please tell me what is the best way to start by using pdf SDK tool dlls. . I would like to develop using windows from (using Visual Studio C# language).
Do I need to use WORD API in this case?
I already went to C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\SDKExamples\<<YOUR PREFERRED PROGRAMMING LANGUAGE>>\PDFXCDemo . Unfortunately It is taking the file in pdf format.

I want to develop a functionality where it reads text file(simple txt file ) and the convert it into PDF format. I will be very thank ful if anyone help me in some step by step procedure.

Regards
Syed

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 15, 2015 7:36 pm
by Will - Tracker Supp
Hi Syed,

Please do take a look at the samples - as John mentioned above, there should be an example that covers this. Also, please do take a look at our online help:
http://help.tracker-software.com/DEV/de ... _tools4sdk

Thanks,

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 15, 2015 8:02 pm
by syedrehman
Yes My friend . I have already used the example which you'r saying .The Problem what I am facing is that When I hit browse button. It Is reading only pdf format file.
My requirement is to read simple text file first and then convert pdf file. Hope you understand Sir

I am sorry for having many queries. Will be very thank full if you guys can help me in this issue


Regards
Syed

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 15, 2015 9:04 pm
by Will - Tracker Supp
Hi Syed,

I'm not a Developer, but I don't believe that use of the Word API should be necessary to convert *.txt files. Please see here for the specific function:
http://help.tracker-software.com/DEV/de ... rawtextexw
The Problem what I am facing is that When I hit browse button. It Is reading only pdf format file.
I believe that you may be looking at the wrong example here, as the Dev. Team have pointed me to this example:
C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\Bin\CExamp.exe

Please check that example and the link above.

Thanks,

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Fri Jun 19, 2015 7:32 pm
by syedrehman
Hello

Can any know help me out in portrait landscape for a pdf file using pdf SDK tool method dynamically.

Thank you

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Fri Jun 19, 2015 8:04 pm
by Will - Tracker Supp
Hi Syed,

I'm not sure that I understand the question, can you please elaborate on what you're trying to do?

Thanks,

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 22, 2015 12:49 pm
by syedrehman
Hello

I am able to convert simple text file to pdf using pdf SDK tool dlls(C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\SDKExamples\<<YOUR PREFERRED PROGRAMMING LANGUAGE>>\PDFXCDemo) Now, I would like to work on page orientation . I.e Rotate a page to landscape or portrait orientation.


Secondly, when I want to convert 2 or more word file to pdf . All the text is getting printed only in one pdf page and text is overlapping .

Could any any help me out in this.
Regards
Syed

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 22, 2015 2:00 pm
by syedrehman
I would like to rotate the page using Height and width of a page. I dont want to use PXC_setPage Rotate() Method..

Thank you
Syed

Re: Simple Text File to PDF File Conversion using SDK Librar

Posted: Mon Jun 22, 2015 2:47 pm
by Tracker Supp-Stefan
Hello Syed,

Do you want to rotate an existing page? Or just want to be able to create new pages with portrait and landscape orientation and then fill them with content?

If you want to create new pages - take a look here:
http://help.tracker-software.com/DEV/de ... xc_addpage

Regards,
Stefan