.TH "PdfLinks" 3 "Version 0.200.1-dev" "QElectroTech" \" -*- nroff -*-
.ad l
.nh
.SH NAME
PdfLinks
.SH SYNOPSIS
.br
.PP
.SS "Classes"

.in +1c
.ti -1c
.RI "struct \fBPageGeometry\fP"
.br
.ti -1c
.RI "struct \fBComponentInfo\fP"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "void \fBinjectCrossRefLinks\fP (QPdfEngine *engine, \fBDiagram\fP *diagram, const \fBPageGeometry\fP &geom, const QMap< \fBDiagram\fP *, int > &pageMap, const QString &outputFileName)"
.br
.ti -1c
.RI "void \fBconvertUriToGoTo\fP (const QString &pdfPath)"
.br
.ti -1c
.RI "void \fBconvertComponentInfoAnnotations\fP (const QString &pdfPath, const QList< \fBComponentInfo\fP > &annotations)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Shared helper that turns a project's cross-references and folio reports into clickable internal hyperlinks in a Qt-generated PDF\&. Used by both the GUI print path (\fBProjectPrintWindow\fP) and the headless CLI export, each of which builds its own page geometry and passes it in — this code never computes the scene-to-page mapping itself\&. 
.SH "Function Documentation"
.PP 
.SS "void PdfLinks::convertComponentInfoAnnotations (const QString & pdfPath, const QList< \fBComponentInfo\fP > & annotations)"
Post-process a Qt-generated PDF file: convert component-info placeholder link annotations (http://componentinfo.local/<N>) into invisible text annotations with the actual component info as /Contents\&. 
.SS "void PdfLinks::convertUriToGoTo (const QString & pdfPath)"
Post-process a Qt-generated PDF file: rewrite every "/S /URI" link annotation into a native internal "/S /GoTo" action (page + /FitR or /Fit destination) and rebuild the xref table\&. No-op if the file has no such annotations\&. 
.SS "void PdfLinks::injectCrossRefLinks (QPdfEngine * engine, \fBDiagram\fP * diagram, const \fBPageGeometry\fP & geom, const QMap< \fBDiagram\fP *, int > & pageMap, const QString & outputFileName)"
Inject clickable cross-reference / folio-report hyperlinks for \fRdiagram\fP into the current page of \fRengine\fP\&. Each link is emitted as a URI annotation encoding the target page and a /FitR rectangle; \fBconvertUriToGoTo()\fP then rewrites those into native internal GoTo actions\&. 
.SH "Author"
.PP 
Generated automatically by Doxygen for QElectroTech from the source code\&.
