Add pdf output to hyperlinks

This commit is contained in:
Roberto Fernandez Bautista
2022-08-27 19:17:42 +01:00
committed by Jeff Young
parent 366b0ab08b
commit f788945cf4
3 changed files with 85 additions and 10 deletions
+3
View File
@@ -352,6 +352,8 @@ public:
KIFONT::FONT* aFont = nullptr,
void* aData = nullptr ) override;
virtual void HyperlinkBoxURL( const BOX2I& aBox, const wxString& aDestinationURL ) override;
/**
* PDF images are handles as inline, not XObject streams...
*/
@@ -414,6 +416,7 @@ protected:
wxString m_workFilename;
FILE* m_workFile; ///< Temporary file to construct the stream before zipping
std::vector<long> m_xrefTable; ///< The PDF xref offset table
std::vector<std::pair<BOX2I, wxString>> m_urlHyperlinks; ///< List of loaded URLs so far
};