Welcome to Pintexx Forum Sign in | Join | Faq

pinPDF

Started by cvansant at 08-04-2008 10:42 . Topic has 5 replies.

Print Search
Sort Posts:    
   08-04-2008, 10:42
cvansant is not online. Last active: 06.10.2008 15:08:56 cvansant

Top 200 Posts
Joined on 07-31-2008
Posts 3
Random name generation for PDF generated by editor
Reply Quote
I'm testing out scenarios using the 6.1.1029 evaluation of pinEdit and pinPDF 2.0. I'm trying to generate a PDF from the text currently displayed in the editor, using the PDF button on the toolbar.

I have set the PdfOutputUrl, PdfOutputPath and PdfOutputFileName. But when the pages opens to display the PDF, it is trying to open a randomly generated pdf file name (like 05063380.pdf) and which doesn't exist in my path, so I get a "Page cnnot be found" message.

Any idea why it's not using my output file name and path? BTW- I can't find the randomly generated file anywhere on my system, so I'm not sure that it's even creating the pdf, but the original editor window does display a message that the pdf was generated successfully.

Chris
   Report 
   08-05-2008, 10:15
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: Random name generation for PDF generated by editor
Reply Quote
Hello Chris,

when using pinPDF inside pinEdit then you have to different web systems.

If pinPDF web is properly installed then you have a web application that acts like a web service.

Therefore you have to set
pe.(set)PDFPage("http://pdf.pintexx.com/pdf.aspx");

--> Points to the pdf.xxx file in pinPDF web service that generates the PDF.

pe.(set)PDFOutputPath("c:/inetpub/www_root/pinEditPDF/pdf/");
--> Here the PDF is generated

pe.(set)PDFOutputUrl("http://pdf.pintexx.com/pdf/");
--> This is required to display the PDF after creation.

If no PDFFileName is specified then pinEdit generates a random name.

We had a bug here that the PDFFilename was not properly set.

Just send me en email to support@pintexx.com and I can send you the fix.

Regards,
Hans-Peter

   Report 
   08-05-2008, 7:56
cvansant is not online. Last active: 06.10.2008 15:08:56 cvansant

Top 200 Posts
Joined on 07-31-2008
Posts 3
Re: Random name generation for PDF generated by editor
Reply Quote
Hans-Peter,

Ok. I've seen some of your examples of this (simple.aspx, header.aspx), but they all seem to generate the pdf by setting the html value to a static string in the web service (aspx code).

Is there an example of how to pass/use the unknown, dynamic, user-generated text in the pinedit page to the pinpdf web service and create the pdf from that?

Thanks,
Chris

   Report 
   08-06-2008, 9:20
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: Random name generation for PDF generated by editor
Reply Quote
Chris,

there might be a misunderstanding.

We have 2 versions of the PDF converter.
The version which is included is pinEditPDF and can be downloaded under "pinEdit Add-ins" --> pinEditPDF.zip.

This is the web service for pinEdit.
This web service contains a file pdf.xxx which is the page for converting the current content of pinEdit to PDF.
I think that's what you need.

If you download pinPDF.zip then you have the stand alone version of the PDF tool.

Regards,
Hans-Peter
   Report 
   08-06-2008, 5:59
cvansant is not online. Last active: 06.10.2008 15:08:56 cvansant

Top 200 Posts
Joined on 07-31-2008
Posts 3
Re: Random name generation for PDF generated by editor
Reply Quote
Great! That was my problem. It is now working to create a PDF from the pinEdit contents. However, it is still generating a random file name for the PDF file, despite the fact that I've got the filename specified:

pinEdit1.PdfPage = "http://localhost/PinEditPdf/pdf.aspx"
pinEdit1.PdfOutputUrl = "http://localhost/PinEditTest/data/"
pinEdit1.PdfOutputPath = "P:/Doc/Visual Studio 2008/WebSites/PinEditTest/data/"
pinEdit1.PdfOutputFileName = "test.pdf"

Also, I set the webservice URL with the PDFPage property, not PDFServiceURL - that property was not available - do I still have something misconfigured?

Lastly, my footer is not showing up - only the pinEditPDF footer - "Created with pinEditPDF (Professional) evaluation 1.1.1103" - is this because I am using the evalutation copy? My code is:
pinEdit1.PdfHeaderHeight = 10
pinEdit1.PdfFooterHeight = 10
pinEdit1.PdfHeader = "This is header page &p"
pinEdit1.PdfFooter = "this is the footer"

The header shows up, but not the footer.

Chris
   Report 
   08-07-2008, 10:20
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
Re: Random name generation for PDF generated by editor
Reply Quote
Chris,

I have send the fix for using the specified file name to your email address.

In evaluation the footer is used for displaying the evaluation message.
If you set the license key you can use the footer like the header.

Regards,
Hans-Peter
   Report 
Pintexx Forum » Developer Produ... » pinPDF » Random name generation for PDF generated by editor