Comments on: Generating a PDF-document with some plsql: as_pdf_mini => as_pdf3 https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/ Friends of Oracle and Java Wed, 24 Jun 2015 09:59:44 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8211 Thu, 21 May 2015 20:49:51 +0000 http://technology.amis.nl/?p=17718#comment-8211 @Naga
Not with as_pdf3

]]>
By: naga https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8210 Thu, 21 May 2015 14:57:58 +0000 http://technology.amis.nl/?p=17718#comment-8210 Hi Anton,

is there a way to add bookmarks to pdf using oracle pl/sql?

Thanks.

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8189 Mon, 27 Apr 2015 11:47:05 +0000 http://technology.amis.nl/?p=17718#comment-8189 There’s no support for SVG.

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8188 Mon, 27 Apr 2015 11:46:06 +0000 http://technology.amis.nl/?p=17718#comment-8188 I can’t add support for RTL because I don’t have any RTL-fonts and I can’t understand/read any RTL language

]]>
By: Zouhaier https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8187 Mon, 27 Apr 2015 10:38:45 +0000 http://technology.amis.nl/?p=17718#comment-8187 Hi ANTON,
Thank you for the useful script,
can I embed SVG using as_pdf3 ?

]]>
By: Saeed https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8184 Sat, 25 Apr 2015 11:36:47 +0000 http://technology.amis.nl/?p=17718#comment-8184 Dear,

Thank you for sharing your code.
Could you add to support right to left direction(e.g Arabic or Persian Languages)?

Regards,
Saeed.

]]>
By: michelle https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8136 Fri, 13 Mar 2015 15:46:49 +0000 http://technology.amis.nl/?p=17718#comment-8136 Hi Anton,

I have resolved my resolution issues – it was indeed the image.

I have another question now – I am using this package to create a pdf which then I in a brower using wpg_docload.downloadfile().

I call finish_pdf (changed it to public) to create the temp lob and then I call a procedure I wrote to display to pdf to the browser:

here are the guts:

owa_util.mime_header( nvl(v_mime,’application/octet’), FALSE );
htp.p(‘Content-Length: ‘ || DBMS_LOB.GETLENGTH(g_pdf_doc));
htp.p(‘Content-Transfer-Encoding: binary’);
–File that will be used by the broswer is the users does a “Save as”
htp.p(‘Content-Disposition: inline; filename=’ || p_filename );
owa_util.http_header_close;
WPG_DOCLOAD.DOWNLOAD_FILE(g_pdf_doc);

After calling wpg_docload.downloadfile, I check V$TEMPORARY_LOBS and I see that the cache_lobs column is increasing in number – that is, the session is generating this temp lob is not being released.

I only have this issue when I call wpg_docload.downloadfile(). If I don’t call this then the temp lob (s) are being released and cache_lobs = 0.

I have tried calling dbms_lob.freetemporary(g_pdf_doc) after downloading the file but it doesn’t change anything.

Is is possible that wpg_docload.downloadfile is creating the temp lob and not freeing it??

Any suggestions?

Thanks,
Michelle

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8097 Wed, 18 Feb 2015 20:27:17 +0000 http://technology.amis.nl/?p=17718#comment-8097 @Alan. Sorry I can’t help you with that.

]]>
By: Alan Lawlor https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8096 Wed, 18 Feb 2015 17:06:38 +0000 http://technology.amis.nl/?p=17718#comment-8096 Anton

Many thanks for a wonderful piece of code. I am attempting to design some code which creates a PDF document from data in our database (this is no problem) and also outputs a PNG image embedded in a BLOB in a database table. The PNG image happens to be a captured signature.

When I output it, the PNG image is output 3 times side-by-side, each copy being a part of the image with white lines interlaced.

When I use a simple PNG image, it displays fine. The problem only occurs when using a PNG image captured by the signature software.
I compared a working PNG image with a non-working PNG image and the first different I found was in IHDR image header in the PNG file. The color type in a working PNG image is 02 (an RGB triple) and the non-working one is 06 (RGB followed by alpha sample).
From my research of this, it seems to indicate that this means it is a PNG with transparency, which is only supported in later versions of the PDF specification.
I see that yours is based on the PDF-1.3 specification and that the parse_png function only really seems to cater for color types 00-04, and has a simple “else” for others.

My question is, given your knowledge of translation of PNG attributes at the start of the file to object/image attributes required to describe the image encoding in PDF, what attributes might require changing to match the format of a transparent PNG? If the answer is too complex to outline/answer here, can you direct me to some web sources which might help with this translation ?

Thanks !
Alan

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8092 Mon, 16 Feb 2015 12:16:36 +0000 http://technology.amis.nl/?p=17718#comment-8092 This package doesn’t do any resolution conversions. But maybe the problem is in the image format itself, and reads the package the format for high resolution images not correctly.

]]>
By: Michelle https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8091 Sat, 14 Feb 2015 18:47:32 +0000 http://technology.amis.nl/?p=17718#comment-8091 Hi Anton, Great package, works great! I have a question about preserving image resolution for images with 300 ppi or more. It seems if I use an image with 72 ppi or less, the image is small enough to be scaled properly wheb using the put_image procedure parameters. If I use an image with >72 ppi it becomes distorted and grainy – is there any way to control the resolution of the images? Or is a 300 ppi image too ‘big’ to use?

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8073 Wed, 04 Feb 2015 13:40:45 +0000 http://technology.amis.nl/?p=17718#comment-8073 I have no barcodefonts, so I’ve never tried it myself.

]]>
By: Miki https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-8072 Mon, 02 Feb 2015 18:40:33 +0000 http://technology.amis.nl/?p=17718#comment-8072 Hi Anton
Can I create a barcode in the reports?
I tried with some fonts but without success.

]]>
By: Anton Scheffer https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-7992 Fri, 05 Dec 2014 08:43:58 +0000 http://technology.amis.nl/?p=17718#comment-7992 @Hojjat
as_pdf3 can be used with windows-1256 character set, but I don’t know if that character set supports Arabic characters.
But you have to use a font which supports that character set.
But it doesn’t support right to left direction.

]]>
By: Hojjat https://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/#comment-7991 Fri, 05 Dec 2014 03:34:50 +0000 http://technology.amis.nl/?p=17718#comment-7991 Tanks for your script;
can i used for Arabic language with windows-1256 charset?

]]>