Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, February 9, 2020 4:27:40 PM(UTC)

Groups: Registered
Posts: 26

Thanks: 3 times

I need to create a PDF from a simple text document. I was trying to make the sample from this post work - https://www.leadtools.co...port/forum/posts/t11330-

Where do I find a reference to DocumentSvgPage()?

Getting an error on this line -

var page = new DocumentSvgPage();

Error - The type or namespace name 'DocumentSvgPage' could not be found (are you missing a using directive or an assembly reference?)

Or, is there a simpler example you could give me to create a .pdf from a .txt?

Edited by moderator Monday, February 24, 2020 10:36:30 AM(UTC)  | Reason: Removed fullstop, which was breaking the link


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, February 10, 2020 12:29:30 PM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 153

Was thanked: 9 time(s) in 9 post(s)


Note the scope of this project is to create an output PDF which contains the input text file as selectable text and the specified image as an overlay for it. If you just want to perform basic TXT->PDF conversion, our DocumentConverter is likely sufficient for your use case.

We include the DocumentConverterDemo in your installation folder as well.
C:\LEADTOOLS 20\Shortcuts\Document Converter\.NET Framework Class Libraries

If you'd prefer to use the sample project in the forum post, note this specific project has build architectures for both v19 and v20 of the SDK, and has symbols for the version of the SDK being targeted. In the project properties for the v20 configurations in the Build tab, you'll need to include these compilation symbols: LEADTOOLS_V19_OR_LATER;LTV20_CONFIG;LEADTOOLS_V20_OR_LATER;

Note DocumentSvgPage is a v19 implementation and has been superseded in v20 by DocumentWriterSvgPage.
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.054 seconds.