I use PDFViewer.JQPDFViewerOptions.PDFFileName as a variable to check if i have to render or not my page , so if you set JQPDFViewerOptions.PDFFileName:='' and exception is fired due to CGRemoveSlash.
Could you please change CGRemoveSlash from
- Code: Select all
function CGRemoveSlash(const Link: string): string;
begin
Result:= Link;
if (Result[1] = '/') then
System.Delete(Result,1,1);
end;
to
- Code: Select all
function CGRemoveSlash(const Link: string): string;
begin
Result:= Link;
if (Length(Result)>0) and (Result[1] = '/') then
System.Delete(Result,1,1);
end;
thanks