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.

Bookmark control for PDF Editor

Postby dbourni on Tue Nov 22 2005

Hi,
Where is this control ?
After installation I have only the PDFCreativeX control...
dbourni
 
Posts: 1
Joined: Tue Nov 22 2005

Postby Joan on Mon Nov 28 2005

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.
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Re: Bookmark control for PDF Editor

Postby asuwandarathne on Tue Feb 23 2010

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: [url]https://www.amyuni.com/downloads/Amyuni%20PDF%20Creator%20.NET.pdf[/url] (page 138)


Anyone please raise a hand for this..
i am in a deep trouble :?: :?:
asuwandarathne
 
Posts: 4
Joined: Mon Feb 22 2010

Re: Bookmark control for PDF Editor

Postby Jose on Fri Nov 28 2014

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:
[url]http://www.amyuni.com/en/resources/technicalnotes/[/url]

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 - [color=#0040FF]www.amyuni.com/pdfsuite [/color]
Jose
Amyuni Team
 
Posts: 544
Joined: Tue Oct 01 2002


Return to Delphi Community

Who is online

Users browsing this forum: No registered users and 1 guest