PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Rounded Rectangle horizontal rule in migradoc
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2000
Page 1 of 1

Author:  aktxyz [ Sun Apr 29, 2012 1:27 am ]
Post subject:  Rounded Rectangle horizontal rule in migradoc

I saw the pdfsharp + migradoc sample, but could not figure out if it is possible to use pdfsharp graphics in the "flow" of a migradoc document.

Basically I have a document that needs some "pretty" horizontal rules between tables like this:

Intro info
-- pretty horizontal rule --
Table of good stuff
-- pretty horizontal rule --
Table of good stuff
-- pretty horizontal rule --
Table of good stuff

I am currently using a border on a text frame as my horizontal rule, but my client is fussing about wanted something slicker.

So I am hoping to be able to use pdfsharp graphics in the flow of the migradoc document.

If there is a better way, I am all ears. Another option is a decent resolution graphic for the horizontal rule, but hoping for something vector.

-- Thanks

Author:  () => true [ Mon Apr 30, 2012 2:57 pm ]
Post subject:  Re: Rounded Rectangle horizontal rule in migradoc

Hi!

MigraDoc can use PDF files like images. And PDF pages can have any size.
So if you can create a PDF page with a slick vector graphic, that would be a simple solution.

Slightly more complicated would be the "Mix PDFsharp and MigraDoc" approach using DIY placeholders in MigraDoc.
Add an empty paragraph with a tag to MigraDoc, later use PDFsharp to draw the line (after querying the position of the paragraph).
See also:
viewtopic.php?p=1960#p1960

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/