PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

document PDF of PDFsharp and CorelDraw
http://forum.pdfsharp.de/viewtopic.php?f=2&t=2354
Page 1 of 1

Author:  aklev [ Tue Mar 05, 2013 4:36 pm ]
Post subject:  document PDF of PDFsharp and CorelDraw

PDFsharp makes the document PDF, but it does not open CorelDraw.

Message "Corrupt File ..."

What should I add to the formation of PDF?

Author:  Thomas Hoevel [ Tue Mar 05, 2013 5:59 pm ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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

Author:  aklev [ Tue Mar 05, 2013 6:49 pm ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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

Author:  Thomas Hoevel [ Wed Mar 06, 2013 9:23 am ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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 ...

Author:  aklev [ Wed Mar 06, 2013 9:39 am ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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.

Author:  aklev [ Thu Mar 07, 2013 11:41 am ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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.

Author:  Thomas Hoevel [ Thu Mar 07, 2013 1:08 pm ]
Post subject:  Re: document PDF of PDFsharp and CorelDraw

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

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