Creating a pdf with text from a .txt file
-
- Posts: 3
- Joined: Tue Aug 20, 2013 12:08 am
Creating a pdf with text from a .txt file
We have a purchased license of Gdpicture pdf plugin
I am looking to convert a txt file to pdf using this. I tried using
DrawText
but have to set DstX and DstY. I basically just want to keep adding these lines to the new pdf created.
what would be a good way to do this?
Thanks,
Kulsum
I am looking to convert a txt file to pdf using this. I tried using
DrawText
but have to set DstX and DstY. I basically just want to keep adding these lines to the new pdf created.
what would be a good way to do this?
Thanks,
Kulsum
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Creating a pdf with text from a .txt file
Hi,
We will include a Text File to PDF sample demo in V10. It still uses the DrawText function, but it will show you how to accomplish this task very simply.
Best,
Sami
We will include a Text File to PDF sample demo in V10. It still uses the DrawText function, but it will show you how to accomplish this task very simply.
Best,
Sami
-
- Posts: 3
- Joined: Tue Aug 20, 2013 12:08 am
Re: Creating a pdf with text from a .txt file
We purchased your 9.3 version. Any way you could send me a sample for this please?
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Creating a pdf with text from a .txt file
Hi,
A tutorial based on the demo will be added to a knowledge base we are working on and should be available within three weeks time (early to mid September 2013).
Best,
Sami
A tutorial based on the demo will be added to a knowledge base we are working on and should be available within three weeks time (early to mid September 2013).
Best,
Sami
-
- Posts: 3
- Joined: Tue Aug 20, 2013 12:08 am
Re: Creating a pdf with text from a .txt file
Sami,
Is there any way you could get me the snippet. Three weeks might not work with the deadline I have.
I really appreciate anything you could do to help me.
Is there any way you could get me the snippet. Three weeks might not work with the deadline I have.
I really appreciate anything you could do to help me.
Re: Creating a pdf with text from a .txt file
Where is the sample for converting txt file to pdf? also, is there a way to convert any stream (Stream can be from a doc file or a html file or a outlook msg file) to PDF? Currently I can create PDF only from a pdf stream...any sample on this will be really helpful.
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Creating a pdf with text from a .txt file
Hi,
>>Where is the sample for converting txt file to pdf?
It was added to the C# and VB.NET demos available in the Samples folder of the GdPicture10 directory. It was too big and detailed to be included as a simple tutorial.
>>also, is there a way to convert any stream (Stream can be from a doc file or a html file or a outlook msg file) to PDF? Currently I can create PDF only from a pdf stream...any sample on this will be really helpful.
No, unfortunately that is not possible.
Best,
Sami
>>Where is the sample for converting txt file to pdf?
It was added to the C# and VB.NET demos available in the Samples folder of the GdPicture10 directory. It was too big and detailed to be included as a simple tutorial.
>>also, is there a way to convert any stream (Stream can be from a doc file or a html file or a outlook msg file) to PDF? Currently I can create PDF only from a pdf stream...any sample on this will be really helpful.
No, unfortunately that is not possible.
Best,
Sami
Re: Creating a pdf with text from a .txt file
Hello there,
Small correction: GdPicturePDF like other GdPicture classes can deal with any inherited Stream object.
Kind regards,
Loïc
Small correction: GdPicturePDF like other GdPicture classes can deal with any inherited Stream object.
Kind regards,
Loïc
Re: Creating a pdf with text from a .txt file
Hello,
Now you can convert your text file to PDF document using the GdPictureDocumentConverter class, which is very simple and straightforward:
https://www.gdpicture.com/guides/gdpicture/web ... erter.html
Now you can convert your text file to PDF document using the GdPictureDocumentConverter class, which is very simple and straightforward:
https://www.gdpicture.com/guides/gdpicture/web ... erter.html
Who is online
Users browsing this forum: Bing [Bot] and 1 guest