Code: Select all
LoadFont(0, "Times New Roman", 20)
If StartVectorDrawing(SvgVectorOutput(GetUserDirectory(#PB_Directory_Desktop)+"test.svg", 595, 842))
VectorFont(FontID(0), 25)
MovePathCursor(20, 20)
DrawVectorText("Hello")
StopVectorDrawing() ; svg
EndIf
RunProgram(GetUserDirectory(#PB_Directory_Desktop)+"test.svg")
If StartVectorDrawing(PdfVectorOutput(GetUserDirectory(#PB_Directory_Desktop)+"test.pdf", 595, 842))
VectorFont(FontID(0), 25)
MovePathCursor(20, 20)
DrawVectorText("Hello")
StopVectorDrawing() ; pdf
EndIf
RunProgram(GetUserDirectory(#PB_Directory_Desktop)+"test.pdf")
Then (after commenting the first svg part) there's another error at:If StartVectorDrawing(SvgVectorOutput(GetUserDirectory(#PB_Directory_Desktop)+"test.svg", 595, 842))
StopVectorDrawing() ; pdf



