link shows page in 6400% zoom

In PDFLib, when I use addgoto then the page I go to is displayed in a 6400% zoom view. How can I make the link will show in pagesize ?

Can you add the code you use?

I noticed that it happens when I open the resulting file in Adobe Acrobat. When I click on a link that brings up page 4, then page 4 is zoomed to 6400%. Annoying.

Maybe important in this is that when I use the AddGoTo procedure, the target page (doelpagina) does not exist yet.

  for i := 0 to doelen.count-1 do
  begin
    doel := doelen[i];

    p.Graphics.AddGoTo(doel, inttostr(doelpagina), RectF(50, regely+6, 300, regely+12));
    regely := regely + GoalsSettings.LineSpace;
    inc(doelpagina);
  end;

There are currently some shortcomings to handle this. We have added an overload

TMSFNCPDFLib1.Graphics.AddGoTo('', 1, '', RectF(10, 400, 100, 500));

Adds a rectangle without text, navigating to page 2 (index = 1). If you want to control zooming, we have added an options parameter:

TMSFNCPDFLib1.Graphics.AddGoTo('', 1, '/Fit', RectF(10, 400, 100, 500));

Next version of TMS FNC Core will address this.

[page /Fit] Display the page designated by page, with its contents magnified just enough
to fit the entire page within the window both horizontally and vertically. If
the required horizontal and vertical magnification factors are different, use
the smaller of the two, centering the page within the window in the other
dimension.

For a complete list of options, I refer to this this document, page 582 (table 8.2)