THotPDF.RegisterNamedDestination

THotPDF

 

Genel bakış

Catalog /Names /Dests ad ağacında sembolik bir hedef kaydeder (ISO 32000-1 §12.3.2.3). GoTo / GoToR eylemleri ve outline /Dest girdileri bundan sonra sayfa numaralarını sabit kodlamak yerine hedefe adla başvurabilir; böylece sayfa ekleme / silme / yeniden sıralama sırasında çapraz başvurular kararlı kalır

 

Delphi sözdizimi:

procedure RegisterNamedDestination(const Name: AnsiString; PageIndex: Integer; FitMode: THPDFDestinationFitMode = dfmFit; Left, Top, Right, Bottom, Zoom: Single = 0);

 

Parametreler

Name benzersiz ad ağacı anahtarıdır (büyük/küçük harfe duyarlıdır). PageIndex 0 tabanlıdır ve daha önce oluşturulmuş bir sayfayı göstermelidir (BeginDoc sayfa 0'ı oluşturur; AddPage sayfa N'yi ekler)

FitMode selects the destination shape per Table 151:

   dfmFit — [page /Fit] (whole page)
   dfmFitH — [page /FitH top] (uses Top)
   dfmFitV — [page /FitV left] (uses Left)
   dfmFitR — [page /FitR llx lly urx ury] — HotPDF reorders parameters as Left, Bottom, Right, Top
   dfmFitB — [page /FitB] (PDF 1.1, fit bounding box)
   dfmFitBH — [page /FitBH top] (PDF 1.1)
   dfmFitBV — [page /FitBV left] (PDF 1.1)
   dfmXYZ — [page /XYZ left top zoom] (zero=inherit)

 

Uyumluluk

PDF/A / PDF/X kısıtı yoktur – gezinme yardımcıları tüm uyumluluk profillerinde spesifikasyon tarafından izinlidir. En az PDF 1.2 gerekir; StrictVersionLock ayarlı değilse belge Version'ı otomatik olarak yükseltir

 

Örnek

PDF := THotPDF.Create(nil);
PDF.FileName := 'manual.pdf';
PDF.BeginDoc;
PDF.AddPage;
PDF.AddPage;
PDF.RegisterNamedDestination('Chapter1', 0, dfmFit);
PDF.RegisterNamedDestination('Chapter2', 1, dfmFitH, 0, 500);
PDF.RegisterNamedDestination('FAQTop', 2, dfmXYZ, 100, 200, 0, 0, 1.5);
PDF.EndDoc;

 

Kullanılabilirlik

HotPDF v2.119.17.