PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 1:28 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Nov 15, 2007 4:11 pm 
Offline

Joined: Thu Nov 15, 2007 2:58 pm
Posts: 3
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 15, 2007 4:23 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Watermark
PostPosted: Fri Nov 16, 2007 8:43 am 
Offline

Joined: Thu Nov 15, 2007 2:58 pm
Posts: 3
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 19, 2007 9:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Watermark problem
PostPosted: Thu Nov 22, 2007 11:16 am 
Offline

Joined: Thu Nov 15, 2007 2:58 pm
Posts: 3
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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 147 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