Johan,
you are using a DEBUG build (if you open that PDF file with WordPad you'll see "% PDFsharp Version 1.2.1269.0 (verbose mode)").
A RELEASE build uses the non-verbose mode automatically - and filesize should fall to 25% through 50% or so (depending on the file).
Your file really contains a lot of objects.
MigraDoc is my area of expertise - and a 50 page document created with QBX 2008 and MigraDoc contains 563 objects in the PDF file (avg. of 11 objects per page).
Your document with 34 pages has 37974 objects ...
The file contains many empty objects.
And in verbose mode this looks like:
Code:
%--------------------------------------------------------------------------------------------------
37861 0 obj % PdfSharp.Pdf.Advanced.PdfContent
<<
/Length 0
>>
stream
endstream
endobj
%--------------------------------------------------------------------------------------------------
Maybe they come from drawing spaces ...
Here's the code that draws "is":
Code:
37862 0 obj % PdfSharp.Pdf.Advanced.PdfContent
<<
/Length 86
>>
stream
q
1 0 0 -1 0 792 cm -100 Tz
q
BT
/GS0 gs
/F0 -10 Tf
493.49 456.8561 Td (is) Tj
ET
Q
Q
endstream
endobj
You guessed it: drawing more text with identical font settings should reduce the file size.
But try a RELEASE build first - just to see how much smaller files will be.
Then stop drawing spaces - this should also save a few bytes.