Bookmark control for PDF Editor

If you are a Delphi developer and have any questions about using our products from Delphi here is the place to post them.
Post Reply
dbourni
Posts: 1
Joined: Tue Nov 22 2005

Bookmark control for PDF Editor

Post by dbourni »

Hi,
Where is this control ?
After installation I have only the PDFCreativeX control...
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

When installing the PDF Creator you get 3 dlls:
PDFCreactiveX.dll
acPDFCrExt.dll
acPDFCrDB.dll

The bookmarks control can't be added as a visual control to the form, it can be used programmatically only to add bookmarks to a pdf file.

Hope this helps.
asuwandarathne
Posts: 4
Joined: Mon Feb 22 2010

Re: Bookmark control for PDF Editor

Post by asuwandarathne »

Hi anyone,

Please help me on inserting the bookmark to my pdf.
I was suffering from this issue and tries several ways but still anything ddnt work for me.
:? :? :? :? :?

I have used following method: ple help me on that

private void button1_Click(object sender, EventArgs e)
{
acPDFCreatorLib.Initialize();
// set license key
acPDFCreatorLib.SetLicenseKey("", "");
System.IO.FileStream file1 = new System.IO.FileStream("Html.pdf", System.IO.FileMode.Open);
IacDocument document = new IacDocument();
document.Open(file1, "");
int intTotalPages = document.PageCount;
Amyuni.PDFCreator.IacBookmark root = document.RootBookmark;
//Create New Bookmarks
Amyuni.PDFCreator.IacBookmark child = root.InsertChild(0, "Page [1]", "");
//root.InsertChild Index, Title, Object, BookMark
//Index: 0 based index where the child bookmark should be inserted
//Title: bookmark title
//Object: reference of the object where the bookmark should point
//if no object is selected, it will point to the top of the current page.
for (int intCtr = intTotalPages; intCtr >= 2; intCtr = intCtr - 2)
{
// Move to next page.
document.CurrentPage = document.GetPage(intCtr);
//insert child bookmarks, one per page with hidden ID (see next page)
root.InsertChild(1, "Page [" + intCtr + "]", "");
}
//Delete the bookmarks
child.Dispose();
root.Dispose();
//save the pdf file
System.IO.FileStream file2 = new System.IO.FileStream("Bookmarked.pdf", System.IO.FileMode.Create);
document.Save(file2, Amyuni.PDFCreator.IacFileSaveOption.acFileSaveAll);
//Delete the document object
document.Dispose();
}

that is taken from the following link: https://www.amyuni.com/downloads/Amyuni ... 20.NET.pdf (page 138)


Anyone please raise a hand for this..
i am in a deep trouble :?: :?:
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: Bookmark control for PDF Editor

Post by Jose »

Hi,

We also provide a number of different technical notes that can assist the developer in using our product. These technical notes are written with different programming languages and are available from our website. I have included a link below:
http://www.amyuni.com/en/resources/technicalnotes/

I suggest that you look at Technical note TN07. This technical note is written in Delphi and includes the examples you need.

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite
Post Reply