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



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 7, 2011 4:09:45 AM(UTC)

Groups: Registered
Posts: 5


I´m working on a project and I´m using the PDFFile-Class to work with PDF-Files.
I extract pages respectivley I merge different documents to a single file.

Now its also necessary that I write a text respectivley draw lines on this PDF.
What is the best way doing so?
know how to do this with a rasterImage, but in this case I had to convert the PDFFile-object to a
rasterImage and lateron convert the
rasterImage back to a PDFFile, which would mean a loss of data, wouldnt it?
Are there other ways doing so?

I´m using .Net, C#, Leadtools 17.5

Many thanks
M. Wagner

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 : Thursday, December 8, 2011 7:35:03 AM(UTC)


Groups: Registered
Posts: 256

As you already found out, there are 2 ways of loading PDF files in LEADTOOLS:
1) Either as a raster (bitmap) image, which converts the entire contents (text, images, etc.) of each PDF page to one bitmap page. We call this process 'rasterizing' the PDF pages.
2) Or using the PDFFile or PDFDocument class to parse a PDF file and extract information and objects from it such as text (without invoking OCR), images, hyperlinks, internal links and bookmarks.

Although the second approach does not convert the image to raster, it also does not guarantee that all objects on the PDF page get returned to you. This means you might not end up with the full contents of the page. So it is not a practical approach to use this method to load, edit then save the PDF.
In other words, PDFFile and PDFDocument classes allow you to get useful information from PDF files, but cannot be directly used to create a PDF editor.

#3 Posted : Thursday, December 8, 2011 10:20:07 PM(UTC)

Groups: Registered
Posts: 5

thank you very much.

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-2024, Yet Another Forum.NET
This page was generated in 0.071 seconds.