fpvectorial: Raise exception when pdfvectorialwriter is requested to save a vectorial (non-text) page. Issue #40858.

This commit is contained in:
wp_xyz 2024-03-21 19:00:50 +01:00
parent 2b58463b83
commit e8c9f1f61e

View File

@ -846,6 +846,8 @@ begin
for i := 0 to AData.GetPageCount - 1 do // iterate through pages
begin
TextPage := AData.GetPageAsText(i);
if TextPage = nil then
raise Exception.Create('No text page found.');
Empty := AddPage(TextPage);
for j := 0 to TextPage.GetEntitiesCount - 1 do // iterate through entities
begin