PDF4NET - Support

by O2 Solutions - Product Type: Component / .NET Class / .NET Compact Framework / 100% Managed Code

Support Forum

PDF4NET ndimahf [United Kingdom] 01-Feb-2008 16:54:10

Hi all

I am buiding an application with which a customer can fill an online order PDF document. The Customer has to fill one PDF document for each item. The customer can place orders for sevral items and print the PDF document for all items at the end.

When a customer fills the first PDF item, I store the PDFDocument object in session and then use the AddPage method of the PDFDocument object to append orders of subsequent items to the first PDF document.

When i flush the PDF document to the webpage and try to scroll through it, i get the error "An error exists on this page. Acrobat may not display the page correctly. please contact the person who created the PDF document to correct the problem"

The content on the PDF document is available as required but the above error is a problem to clients.

Please any ideas??????
Reply


PDF4NET warren [South Africa] 12-Oct-2007 09:19:33

Hi,

I am having a problem, when i make a textbox on the PDF form and set it property required=true, create the form (in code) and save it to disk, then edit the form and click the submit form button, it does not ensure that all the required fields are filled in.

However, if the field had text in and i deleted the text, then try and submit the form, then it will say it is required and stop the form submission

This is driving me insane, please help.

Many Thanks
Warren
Reply


PDF4NET aravindkosaraju [Malaysia] 04-Sep-2007 04:21:41

How can i save pdfdocument into stream of bytes.
Note : I am using webservice which calling PDF4NET dll to create PDF document.
Reply


PDF4NET - Resize pdf. cmu [Denmark] 23-Aug-2007 02:19:09

Hi' I've followed your example here (extract from help):

Sample
The following sample shows how to place the content of 4 pages on a single new page:
PDFFile mctiFile = PDFFile.FromFile( "multicolumntextandimages.pdf" );
// extract the content of first 4 pages
PDFImportedContent[] ic = mctiFile.ExtractPagesContent( "0-3" );

// create the new document
PDFDocument doc = new PDFDocument( );
// add a page to it
PDFPage page = doc.AddPage( );
.......................

My question is this: Is it possible to resize a pdf before inserting the extracted content to the final page??

Otherwise, an extremely nice component and easy to use :)

Best regards

Christoffer Munck
2proceed.com
Reply


Templates - can I detect graphics? marl [USA] 21-Aug-2007 08:47:12

I need to create PDF templates (I could use Acrobat for this) but I must be able to programmatically identify the graphics and text within the template using PDF4NET.
Can I do that?
For example, a page has a 300px X 500px graphic at a certain location on the page. Beside it is some text.
Can I locate the exact location and size of each graphic and then replace it with another one?
Reply


PDF4NET rcasanova [Canada] 10-Aug-2007 18:37:10

I created a button print in my Pdf document. I don't want It's possible it by using Print Menu of PopUp Menu . How could I do ?
Reply


PDF4NET rcasanova [Canada] 03-Apr-2007 15:06:37

Hello

I added a button and I would like to know how I can make so that it is not visible when I print the document. Also, I would like to know how I can prevent the popup from posting myself.

thanks
Reply

RE: PDF4NET Adrian Marin 05-Apr-2007 11:36:35

Hello,

You need to set the visibility status on button's normal appearance. Here it is the code:
button.NormalAppearance.VisibilityStatus = FieldVisibilityStatus.VisibleNonPrintable;
Can you please give us more details on this: "Also, I would like to know how I can prevent the popup from posting myself."?
Thank you.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply

RE: RE: PDF4NET rcasanova [Canada] 11-Apr-2007 15:42:42

I meant I want that POPUP menu is disable. How to close the browser after having to print the document ?
Reply

RE: RE: RE: PDF4NET Adrian Marin [Romania] 17-Apr-2007 14:42:13

The popup menu cannot be disabled. Also, the browser window cannot be closed from a PDF file.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply


PDF4NET chris.thomas [United Kingdom] 02-Mar-2007 15:32:11

I want to use another font, Tahoma. How can I use it?
Is anyone out there?
Reply

RE: PDF4NET chris.thomas [United Kingdom] 02-Mar-2007 15:43:28

Ah, no matter:
myFont2 = New O2S.Components.PDF4NET.Graphics.Fonts.TrueTypeFont("Tahoma", 16, True)
Reply


PDF4NET odd behaviour chris.thomas [United Kingdom] 18-Jan-2007 12:03:13

Hi there!

I'm creating several PDFPages in sequence, drawing text lines and some graphics, and saving it to disk. When viewing the pdf in acrobat, on some pages the text appears to be 'bold' and others it appears normal. It seems to be happening on pages where I'm drawing graphics (eg, I'm drawing graphics with page.Canvas.DrawImage on pages 1, 3, 4, and 5, and the text always appears heavy, and no graphics on pages 2 and 6, so the text always appears normal).

When the document is printed, there doesn't seem to be any noticable difference in the font weight, with all text appearing properly, in the normal font weight that I specified.

Is there anything I should be doing differently to prevent my users (and boss!) from thinking that some pages are in bold type? Has anyone else noticed this problem?

Thanks,
Chris.
Reply

RE: PDF4NET odd behaviour chris.thomas [United Kingdom] 23-Mar-2007 15:14:43

Hi. I still would appreciate someone shedding some light on this weird behaviour.
Reply

RE: RE: PDF4NET odd behaviour Adrian Marin 05-Apr-2007 11:40:39

Hello Chris,

The images shoud not affect the way the text is displayed. Can you send us a sample PDF file, so we can take a look at it? I'll be able to offer more information after we investigate the PDF file.
Thank you.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply

RE: RE: RE: PDF4NET odd behaviour chris.thomas [United Kingdom] 05-Apr-2007 13:16:04

Hi Adrian, yes please! What email address should I use?

Chris.
Reply

RE: PDF4NET odd... Adrian Marin 05-Apr-2007 13:19:24

Hello Chris,

Please send the file to techsupport@o2sol.com.
Thank you.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply

RE: RE: PDF4NET odd... bs [Denmark] 13-Jun-2007 21:08:20

Was there a solution to this problem?

I'm having simimlar problems, and I'm looking for a solution. I can't recognize the pattern with rendering images giving the prob, just getting bold fonts where they should be regular.
Reply

RE: RE: RE: PDF4NET odd... Adrian Marin [Romania] 13-Jun-2007 21:19:54

A common cause of this problem, the text appearing to be bold, is because both the pen and the brush are used to draw the text. The pen is used to stroke the text outline and this gives the bold appearance. Just use null (Nothing in VB.NET) for the pen parameter in DrawText/DrawTextBox method and the text will be displayed fine. If this does not solve your problem, please send an email to techsupport@o2sol.com with a sample PDF file that shows the problem you reported and we'll investigate it.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply


PDF4NET eric.girard [France] 12-Oct-2006 11:10:36

Hi,
When opening an existing PDF document, and just "Save As" with a new filename, all the existing javascript (pre-existing - not generated using PDF4Net) seems to be lost.
For example, if my PDF doc has a "Print" button with this code :
var pp = this.getPrintParams();
this.print(pp);

It doesn't work anymore after using pdf4net :

PDFDocument doc = new PDFDocument("Before.pdf");
//nothing else done !
doc.SaveToFile("After.pdf");

The javascript won't work using After.pdf (But it works perfectly using Before.pdf)

(Sorry for my poor english, i'm french)
Reply

RE: PDF4NET Adrian Marin 05-Apr-2007 11:43:52

Hello Eric,

This seems to be a bug in PDF4NET, although PDF4NET is designed to preserve the JavaScript code in the PDF files. Can you send us the Before.pdf file and we'll investigate this problem?
Thank you.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply


PDF4NET - strong name snesbitt [USA] 22-Sep-2006 16:17:33

Is it possible to obtain a strong name version of the PDF4NET dll? We purchased the PDF4NET last year but since then we have upgraded our project to be strong named for security, and now we cannot use PDF4NET.

Can you please assist us?

Thanks

Steve
Reply

RE: PDF4NET - strong name nazareno7 [USA] 26-May-2007 01:43:33

Do you have a copy of the strong named assemblies? Can you email me a copy to nazareno7@lycos.com? Thank you.
Reply

RE: RE: PDF4NET - strong name Adrian Marin [Romania] 28-May-2007 09:10:00

PDF4NET 3.0.1 includes strong named assemblies. Please download the updated library from your support account on O2 Solutions website (send an email to techsupport@o2sol.com if you do not remember the username/password) or from ComponentSource.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply

RE: PDF4NET - strong name kbuchcik [Germany] 29-May-2007 17:19:50

The assembly for the Compact Framework of the evaluation version of PDF4NET 3.0.1 seems not to be strong named - the assembly for the normal Framework is. Could you also provide a strong named assembly for the Compact Framework in the evaluation version?
Reply

RE: RE: PDF4NET - strong name Adrian Marin [Romania] 29-May-2007 17:24:53

Hello,

Please send an email to techsupport@o2sol.com and we'll email you back a strong named assembly for .NetCF.
Thank you.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply


PDF4NET lalit_patel [India] 03-Aug-2005 11:50:36

hi, everybody..
here I would like to know that can I display the dwf Image on PDF Document using PDF4NET?
if yes then how do I do that?

Regards,
Lalit Patel
Reply

RE: PDF4NET O2 Solutions Techsupport 11-Aug-2005 12:49:22

Hi Lalit,

DWF files can not be added to PDF files using PDF4NET.

Kind regards,
Adrian Marin
Technical Support Engineer
O2 Solutions - precisely fit software
Reply


PDF4NET runningnet [USA] 23-Jun-2004 01:08:47

Is there anyway to take a multipage PDF and convert it to single file TIFF's using this. I would like to write a app. to look at my existing PDF files and convert them to single page TIFF's and save them into a SQL DB, so that I can call them from crystal reports.
Reply


PDF4NET dan [USA] 15-Jun-2004 10:18:41

Enhancement request: It would be very helpful to be able to copy a printer canvas to a pdf2net canvas, this way existing code can more easily make use of pdf2net without alot of extra code needing to be written.
Reply


Product Search

Enter search words:

Award Award