This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 7, 2011 4:09:45 AM(UTC)
Groups: Registered
Posts: 5
Hello.
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?
I
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
#2
Posted
:
Thursday, December 8, 2011 7:35:03 AM(UTC)
Groups: Registered
Posts: 256
Wagner,
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
Ok,
thank you very much.
M.Wagner
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.