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

Problem several files for add watermark
https://forum.pdfsharp.net/viewtopic.php?f=2&t=262
Page 1 of 1

Author:  Yolanda [ Thu Nov 15, 2007 4:11 pm ]
Post subject:  Problem several files for add watermark

I I have a problem with some files to try to add watermark but only tish some files. Can be for the version of Adobe file, or by some element within each file?

Someone had to know this problem or a solution
Thanks in advance

Author:  Thomas Hoevel [ Thu Nov 15, 2007 4:23 pm ]
Post subject: 

A more specific error description could help ...

I remember one problem we fixed last month (not yet included with PDFsharp) - look here.

If you have a different problem then we'll need a PDF file for further examination.

Author:  Yolanda [ Fri Nov 16, 2007 8:43 am ]
Post subject:  Watermark

The component does not cause mistake, but with trace we know that exist a bug in
XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Prepend);

The parameter that gets passed (Prepend / Append, according want to get an effect or otherwise) instructs you to preserve the original content of the page before use, but in the case of document at hand, the simple call to this according produces a severe alteration in the original document.

But the only thing is that when open PDF, Adobe said that might exist any problems into the file

I send you this file if you want,
Thanks again

Author:  Thomas Hoevel [ Mon Nov 19, 2007 9:16 am ]
Post subject: 

If you really expect help you'd better quote the traces, quote the Adobe Reader messages (and Reader version), and quote useful snippets from your code.

The Watermark sample creates a new PDF file based on pages from on "old" PDF file.
The new PDF file will have the PDF version you specify. If it's too low, transparency won't work; if it's too high, you'll get warning messages from older Adobe Reader versions.

You say you know there's a bug in XGraphics.FromPdfPage.
Share your knowledge with us if you want to have the bug resolved.

Author:  Yolanda [ Thu Nov 22, 2007 11:16 am ]
Post subject:  Watermark problem

I think that exist un bug but i don't Know certainly.
I think that the component decodes, write the watermark and generates a new PDF, it is not codified.

I thing that Adobe If PDF is encoded and I think that makes a Standardization and displays PDF, but the file generated is not codified and Adobe didn´t standardizes. In my pdf, Adbobe fails because there are some text in the file decode that has no blank spaces and if they are removed adbo already looks good.
I don´t know how do standarization IIdo not know whether Adobe format.


And if I try to put in realese code to compile and I can hang

I do not know if you can help me and if I explain.
Thank again

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