on ‎2009 Sep 22 3:17 PM
Hello,
I'm looking for documentation about creating PDF file with PDF Action Block.
I've already installaed all third parties libraries and everything works fine.
I've just found some discussion in the forum about a particular issue but no wiki, no blogs, no articles that explain how to create a PDF from scratch.
Another question about Barcode, I've seen there is the opportunity to create barcode with a PDF action block but it seems only "static" value are printable and not variables. Do you confirm that?
Thanks a lot,
Roberto
Request clarification before answering.
hi,
now I've just managed to create a PDF an send it to the client browser.
Thanks a lot to everybody for your suggestion!
roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I did something wrong but i don't understand what...
With EncodedImage you mean to add an "Image Saver" action?
This is what I did:
First Sequence:
PdfDocument ( with all properties defined ) and in outgoing properties I linked a transaction element ( type string output ) to the PDFDocument Output
Image Saver: in the incoming properties I linked the EncodedImage Properties to transaction output properties
Second Sequence:
A simple PDF Text Block linked to the PDFDocument.
What's wrong? Is there an example to follow?
Regards,
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roberto,
I get the output when trying the following:
- create PDF document using the PDF document action
- fill PDF with all elements needed (text, images, tables etc.)
- finally assign the PDF document output property to a transaction output property (e.g. "Output")
In the Web, I called a URL like this:
http://<server>:<port>/XMII/Runner?Transaction=<tran path and name>&OutputParameter=Output&isBinary=true&Content-type=application/pdf
Then the browser displays the output correctly as PDF. Could you try this?
Michael
Hi,
I've already seen that thread but probably I made some mistake in my transaction...this is what I did:
1) PDF Action Block: PDF Document..in the Outgoing I've created a link between the PDF Output Parameter and a transaction output parameter
2) I added a new sequence below.. with just a PDF Text linked to the previous document with an hardcoded text.
Then I called the URL with all parameters and what I got is an empy PDF..what's wrong?
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it's seem that could solve my issue, I'll give a try today..
As far as I know you're a kind of PDF expert.. I would like to stream PDF on client browser and not saving it on a server directory, have you an idea to do it?
Thanks a lot,
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roberto,
have a look at the following thread:
[http://forums.sdn.sap.com/click.jspa?searchID=32010972&messageID=7286357]
You can call a MII transaction that creates a PDF with a URL. If the transaction fills an output parameter with the PDF data, the browser will display it as PDF without you having to save a file first. Do not forget the "isBinary=true" and "Content-Type=application/pdf" in the URL.
Michael
Hi,
I've seen there is the opportunity to create barcode with a PDF action block but it seems only "static" value are printable and not variables. Do you confirm that?
I guess when you say static values means hard-coding the input values to Barcode, well in that case its not true you can pass values as parameters to Barcode Action block via its Links and set the properties like Barcode text, Barcode Type etc you can find more when you check the links.
Regards,
Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Steps to create a simple pdf which contains a chart
1) Add a PDF Document action block and go to configure to provide necessary detials like Header, Footer, Subject etc or use links to dynamically set the values at runtime.
2) Add a Chart Action and configure it with respective Query and display template
3) Add a PDF Image Action block and configure it with PDF Document added in step 1
4) In the links of PDF Image Action map Encoded Image property with Encoded Image property of Chart added in Step 2 and provide any other attributes like scaled height, width etc if needed.
5) Add a PDF Horizontal Line action to separate the Chart with Text(if needed) and configure it with PDF Document added in Step 1.
6) Add a PDF Text action( if you want write some text in pdf below the chart) and configure it with PDF Document added in step 1 and you can provide Text using links through Text property or using configure section
7) Add an Image Saver Action and in the links map the Encoded Image property with PDF Document output and also provide the File path where PDF needs to be saved.
I hope these steps will provide you some ideas to create PDF.
Regards,
Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.