#1 2014-04-01 15:41:16

andreas
Member
Registered: 2014-04-01
Posts: 3

EMF picture leads to syntax error: invalid content stream state

If I try to render a simple EMF vector graphic (using PdfDocument.Canvas.RenderMetaFile) I get a pdf with an "invalid content stream state" (by Acrobat Preflight PDF syntax check).

After some testing I found out that this happens when the operator rg (set in TPdfCanvas.SetRGBFillColor) or the operator d (set in TPdfCanvas.SetDash) is included. When I generate the pdf without these operators no syntax errors are reported.

Any ideas how to fix (or avoid) these syntax errors?

Offline

Board footer

Powered by FluxBB