PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 30, 2024 10:43 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 17, 2024 10:37 pm 
Offline

Joined: Wed Apr 17, 2024 10:28 pm
Posts: 2
I've created an Excel file (XLSX) with OpenXML.
At this stylesheet I have several settings: fonts (color, size, name), borders, fills, alignments and others.

I've created an initial PDF with the data at each cell.
How can I add those styles?
Is this possible with SharpPDF?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 18, 2024 6:50 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 917
Location: CCAA
fabr83 wrote:
Is this possible with SharpPDF?
Feel free to try SharpPDF.
This is the PDFsharp forum.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 18, 2024 11:43 pm 
Offline

Joined: Wed Apr 17, 2024 10:28 pm
Posts: 2
TH-Soft wrote:
fabr83 wrote:
Is this possible with SharpPDF?
Feel free to try SharpPDF.
This is the PDFsharp forum.


Sorry for the mispelling.

I've made some attempts but could not see where to catch those styles.
The PDF I've achieved was like a TXT from notepad being print...
Then I wondered that maybe was not feasible to create from a XML reference.

Can you please provide some insights on how to achieve this?


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 19, 2024 8:22 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 917
Location: CCAA
fabr83 wrote:
Can you please provide some insights on how to achieve this?
With PDFsharp you can draw text in any colour you like.
I cannot tell you how to get that colour information from OpenXML.
Maybe a library like NPOI can be helpful.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 90 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group