We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The selected areas of these two functions are incorrect, it seems that they are mirror symmetric
var pdf = new PdfDocument(); var page = pdf.AddPage(); page.AddDocumentLink(new PdfRectangle(new XRect(0, 0, page.Width, 40)), 2); var graphics = XGraphics.FromPdfPage(page); graphics.DrawRectangle(XBrushes.Black, new XRect(0, 0, page.Width, 40)); pdf.Save("D:\\test2.pdf");
The text was updated successfully, but these errors were encountered:
From the source code documentation:
/// <summary> /// Adds an internal document link. /// </summary> /// <param name="rect">The link area in default page coordinates.</param> /// <param name="destinationName">The Named Destination's name.</param> public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string destinationName)
Conversion:
rect = gfx.Transformer.WorldToDefaultPage(new XRect(new XPoint(100, 400), new XSize(350, 150)));
Sorry, something went wrong.
从源代码文档中: /// <summary> /// Adds an internal document link. /// </summary> /// <param name="rect">The link area in default page coordinates.</param> /// <param name="destinationName">The Named Destination's name.</param> public PdfLinkAnnotation AddDocumentLink(PdfRectangle rect, string destinationName) 转换: rect = gfx.Transformer.WorldToDefaultPage(new XRect(new XPoint(100, 400), new XSize(350, 150)));
从源代码文档中:
转换:
nice!!!
No branches or pull requests
Code
The selected areas of these two functions are incorrect, it seems that they are mirror symmetric
The text was updated successfully, but these errors were encountered: