PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 10:16 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Mar 05, 2013 4:36 pm 
Offline

Joined: Tue Mar 05, 2013 4:28 pm
Posts: 5
PDFsharp makes the document PDF, but it does not open CorelDraw.

Message "Corrupt File ..."

What should I add to the formation of PDF?


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 05, 2013 5:59 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
More information would help, e.g. the complete error message.
Is it this one: "Unexpected token in PDF file. The PDF file may be corrupt. If it is not, please send us the file for service."?

See also:
viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 05, 2013 6:49 pm 
Offline

Joined: Tue Mar 05, 2013 4:28 pm
Posts: 5
CorelDraw X6 (and X4,X5) reports:

Import error.
"The file is corrupted"

My files and the files of the examples ( ... Watermark.pdf, etc.) also give this error.
In attach my file Proba11.pdf (zip).

Lev.


Attachments:
Proba11.zip [220.64 KiB]
Downloaded 325 times
Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 06, 2013 9:23 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi, Lev!
aklev wrote:
CorelDraw X6 (and X4,X5) reports:
Import error.
"The file is corrupted"
The file was created by "WinCSD" and later processed with a DEBUG build of PDFsharp.
Can CorelDraw open the original file from WinCSD?
Have you tried a RELEASE build of PDFsharp?

aklev wrote:
My files and the files of the examples ( ... Watermark.pdf, etc.) also give this error.
Are there any files that CorelDraw can read?`
Maybe the files are OK, but the PDF reader in CorelDraw could be "corrupt" rejecting valid PDF files ...

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 06, 2013 9:39 am 
Offline

Joined: Tue Mar 05, 2013 4:28 pm
Posts: 5
I made a PDF file "ab inicio" using PDFsharp. WinCSD - the name of my software module.

Files Adobe Acrobat, PDFeditor other ... etc, CorelDraw takes good ...

Lev.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 07, 2013 11:41 am 
Offline

Joined: Tue Mar 05, 2013 4:28 pm
Posts: 5
CorelDraw not accept files that contain fonts of PDFsharp !

Possible errors in the description line Font:

/LastChar 255 (may be /LastChar 0 and change the width and other parms?)

This can be specified in the properties?

Lev.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 07, 2013 1:08 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Change your program to use Unicode and /LastChar will not be used.
Or disable font embedding for a test.

See also:
http://www.pdfsharp.net/wiki/Unicode-sample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 53 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group