Search found 56 matches

by Andesdaf
Tue Apr 16, 2024 3:09 pm
Forum: Coding Questions
Topic: date format for SetMailAttribute()?
Replies: 2
Views: 97

Re: date format for SetMailAttribute()?

I'd say it's the format specified in RFC 5322: https://www.rfc-editor.org/rfc/rfc5322.html#section-3.3, so for example: Sat, 13 Apr 2024 11:45:15 +0200
by Andesdaf
Tue Apr 09, 2024 7:05 pm
Forum: Coding Questions
Topic: Vector Drawing
Replies: 6
Views: 371

Re: Vector Drawing

StopVectorDrawing() is needed to finish and display the drawing operation, so maybe moving StartVectorDrawing() and StopVectorDrawing() into the loop helps. MouseButton() and the Mouse library are used on screens, better use the event types the CanvasGadget provides for mouse keys.
by Andesdaf
Sat Apr 06, 2024 9:41 pm
Forum: Bugs - Windows
Topic: PB6.10: Font with #PB_Font_Underline doesn't get underlined using PdfVectorOutput() and SvgVectorOutput()
Replies: 2
Views: 152

PB6.10: Font with #PB_Font_Underline doesn't get underlined using PdfVectorOutput() and SvgVectorOutput()

Define.s zPath = GetTemporaryDirectory() + "test.pdf" If StartVectorDrawing(PdfVectorOutput(zPath, 400, 200)) If LoadFont(0, "Arial", 12, #PB_Font_Underline) VectorFont(FontID(0), 3) DrawVectorText("Test") EndIf StopVectorDrawing() RunProgram(zPath) EndIf Define.s zPat...
by Andesdaf
Wed Apr 03, 2024 10:52 am
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 11
Views: 4694

Re: VecVi - Create and output documents using VectorDrawing lib

Yes, the example linked is also my quick&dirty test code so it could use a rework. Regarding the return values I'm not sure in which cases StartVectorDrawing() returns zero and if it is reliable enough to assume that the file really exists. But I could at least pass trough its return value to ha...
by Andesdaf
Tue Apr 02, 2024 5:40 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 11
Views: 4694

Re: VecVi - Create and output documents using VectorDrawing lib

Thanks to PB 6.10, there is, beginning with v.1.13, direct pdf and svg output support for Windows, too. The PurePDF and pbPDF versions of VecVi won't get updated anymore. ; v.1.11 (2022-10-11) ; - fixed bug with pagebreak and x position reset ; v.1.12 (2023-10-10) ; - fixed bug causing crash when se...
by Andesdaf
Sat Mar 02, 2024 12:12 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 327
Views: 40552

Re: PureBasic 6.10 beta 7 is out !

Thanks Fred :)
by Andesdaf
Tue Jan 09, 2024 9:09 pm
Forum: Off Topic
Topic: .htaccess issue
Replies: 3
Views: 991

Re: .htaccess issue

The rewrite seems to be correct. Maybe a server configuration issue?
by Andesdaf
Thu Jan 04, 2024 9:43 am
Forum: Coding Questions
Topic: SvgVectorOutput Windows, Linux differences significant?
Replies: 1
Views: 298

Re: SvgVectorOutput Windows, Linux differences significant?

Afaik the differences in the generated svg come from the use of different engines, the Windows one written by freak (cf. https://www.purebasic.fr/english/viewtopic.php?p=471767#p471767). On Windows, the svg attributes are used, the linux engine styles the elements with css. If mixed in one object, t...
by Andesdaf
Thu Nov 12, 2020 1:02 pm
Forum: Coding Questions
Topic: How to Insert one or more nodes, on a already composed Map.?
Replies: 3
Views: 1246

Re: How to Insert one or more nodes, on a already composed M

reload the first xml into a map, add the new values and compose it again.
by Andesdaf
Fri Jul 24, 2020 5:21 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 11
Views: 4694

Re: VecVi - Create and output documents using VectorDrawing

Updated to v.1.10, mainly for improving the performance of the print preview with larger data. Now only the elements that need to be displayed will be calculated before. In addition some minor improvements, clarifications and bugfixes. ; v.1.10 (2020-07-24) ; - completely reworked processing and dra...
by Andesdaf
Sat Feb 02, 2019 8:21 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 11
Views: 4694

Re: VecVi - Create and output documents using VectorDrawing

skywalk wrote:Not sure why pdf would not work on Windows?
I use PB's PdfVectorOutput() which is not supported on Windows. On Linux and MacOS,
you can use VecVi::OutputPDF(). For PDF output on Windows, there is the fork with
PurePDF usage mentioned in my previous post.
by Andesdaf
Fri Feb 01, 2019 6:22 pm
Forum: Tricks 'n' Tips
Topic: VecVi - Create and output documents using VectorDrawing lib
Replies: 11
Views: 4694

Re: VecVi - Create and output documents using VectorDrawing

After a long time, I uploaded a new version with some smaller bug fixes and
a new output channel (image on canvas) to improve performance.

I've also written a fork of VecVi that uses PurePDF to create pdf files on windows,
if someone is interested in this, I can publish it, too.
by Andesdaf
Sat Jan 27, 2018 6:36 pm
Forum: Coding Questions
Topic: PurePDF appended font styling
Replies: 0
Views: 761

PurePDF appended font styling

if I use an included font in a PDF created by PurePDF, the styling gets lost: the last line shoudn't be bold, but it is, though. file$=GetTemporaryDirectory() + "fonttest.pdf" #PurePDF_Include=1 XIncludeFile "PurePDF.pb" pdf_Create() pdf_AddPage() pdf_SetFont("Arial",&q...