- Posts: 51
- Thank you received: 0
- Forum
- CodeTyphon Studio
- CodeTyphon Studio Components and Libraries
- Documents Development
- Some additions to the package fpvectorial
×
Components and Libraries for Documents Development, discussions, problems and suggestions
Important Some additions to the package fpvectorial
- Roman
- Topic Author
- Offline
- Junior Member
-
Less
More
6 months 1 week ago - 6 months 1 week ago #16274
by Roman
Some additions to the package fpvectorial was created by Roman
I made small changes to the package for generating documents in the DOCX format:

My code is messy too...
The changes affected only two files:
fpvectorial.pas
docxvectorialwriter.pas
Simple example:
- Added Images partially support (only from file, only from PNG, only to Paragraph, no positioning, no effects and scale, cannot add two or more identical image files)
- Added support Images in Header/Footer
- Fixed the text of the first tag of the document <w:document xmlns:r= ....
- Minor additions to paragraph styles, etc.

My code is messy too...
The changes affected only two files:
fpvectorial.pas
docxvectorialwriter.pas
Simple example:
with TvVectorialDocument.Create do begin
with AddTextPageSequence do begin
with Header.AddParagraph do begin
AddPngImage.FileName := 'test1.png';
AddText('Header text');
end;
with Footer.AddParagraph do begin
AddPngImage.FileName := 'test2.png';
AddText('Footer text');
end;
AddParagraph.AddText('Body text.');
end;
WriteToFile('demo.docx', vfDOCX);
Free;
end;
Attachments:
Last edit: 6 months 1 week ago by Roman.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
6 months 1 week ago #16275
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Some additions to the package fpvectorial
Thanks Sir
We will test and add to LAB CT your code
We will test and add to LAB CT your code
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.