Transparent background for whole pdf

View: New views
6 Messages — Rating Filter:   Alert me  

Transparent background for whole pdf

by irashkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Maybe this is something obvious that I am overlooking, or maybe not possible – is there a way to set the pdf file’s background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency.

Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice?

 

Thanks,

Ian

 

 


------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Transparent background for whole pdf

by Leonard Rosenthol-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Re: [iText-questions] Transparent background for whole pdf Any area of a PDF that does not have content on it is “transparent” - there is no “background color”.

And since iText doesn’t actually render anything, I am not sure where the issue is.

Leonard


On 7/1/09 1:41 PM, "Ian Rashkin" <irashkin@...> wrote:

Maybe this is something obvious that I am overlooking, or maybe not possible – is there a way to set the pdf file’s background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency.
Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice?
 
Thanks,
Ian




--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Transparent background for whole pdf

by irashkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Re: [iText-questions] Transparent background for whole pdf

Thanks – that’s intuitively clear to me and judging by your email address I’m guessing you know of what you speak. So probably I am asking the wrong question.

Basically, I am using PDFTron’s PDF2Image to “convert” the pdf doc to an image (my app needs the pdf for the print-ready, final document, but I need a jpg for a quick web/email preview). Now, I’ve got a need to convert not to a jpg but to a png – Pdf2Image will do that, and according to PDFTron’s documentation it is possible to preserve the transparency. They explain what to do if you are using their pdf library, but I’m not, I’m already vested in using iText.  So, something they are doing in their library makes the pdf carry some information that will then tell the image converter to maintain transparency, but I don’t know what that is, was hoping that was something basic to pdf. I will contact them (PDFTron) as well, and see if they can help.

 

Thanks again,

Ian

 


From: Leonard Rosenthol [mailto:lrosenth@...]
Sent: July 01, 2009 3:43 PM
To: Ian Rashkin; Post all your questions about iText here
Subject: Re: [iText-questions] Transparent background for whole pdf

 

Any area of a PDF that does not have content on it is “transparent” - there is no “background color”.

And since iText doesn’t actually render anything, I am not sure where the issue is.

Leonard


On 7/1/09 1:41 PM, "Ian Rashkin" <irashkin@...> wrote:

Maybe this is something obvious that I am overlooking, or maybe not possible – is there a way to set the pdf file’s background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency.
Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice?
 
Thanks,
Ian

 


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated


------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Transparent background for whole pdf

by Mike Marchywka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


________________________

> From:
> To: lrosenth@...; itext-questions@...
> Date: Thu, 2 Jul 2009 07:09:07 -0400
> Subject: Re: [iText-questions] Transparent background for whole pdf
>
> Thanks – that’s intuitively clear to me
> and judging by your email address I’m guessing you know of what you speak. So
> probably I am asking the wrong question.
>
>
>
> Basically, I am using PDFTron’s PDF2Image
> to “convert” the pdf doc to an image (my app needs the pdf for the print-ready,
> final document, but I need a jpg for a quick web/email preview). Now, I’ve got
> a need to convert not to a jpg but to a png – Pdf2Image will do that, and according
> to PDFTron’s documentation it is possible to preserve the transparency. They explain
> what to do if you are using their pdf library, but I’m not, I’m already vested
> in using iText. So, something they are doing in their library makes the pdf
> carry some information that will then tell the image converter to maintain
> transparency, but I don’t know what that is, was hoping that was something basic
> to pdf. I will contact them (PDFTron) as well, and see if they can help.
>
>
>
I missed the earlier posts but in response to this,
I would just reiterate that if you go get pdfrenderer the open source java app,
not only do you get a usable opensource viewwer, it is trivial to rwrite
a command line app to dump your pdf as a series of images or do whatever else
you can do in JAI etc. If you are really stuck and need something which can render
pdf that is more suited to your needs, at least for the front end. When
you want to author a pdf in an automated way ( talk about an oxymoron LOL),
that seems to be better suited to itext.


_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Transparent background for whole pdf

by Leonard Rosenthol-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Re: [iText-questions] Transparent background for whole pdf Yup – check with the folks at PDFTron, they are good folks!  (and say “Hi” to them from me)

Leonard


On 7/2/09 7:09 AM, "Ian Rashkin" <irashkin@...> wrote:

Thanks – that’s intuitively clear to me and judging by your email address I’m guessing you know of what you speak. So probably I am asking the wrong question.
Basically, I am using PDFTron’s PDF2Image to “convert” the pdf doc to an image (my app needs the pdf for the print-ready, final document, but I need a jpg for a quick web/email preview). Now, I’ve got a need to convert not to a jpg but to a png – Pdf2Image will do that, and according to PDFTron’s documentation it is possible to preserve the transparency. They explain what to do if you are using their pdf library, but I’m not, I’m already vested in using iText.  So, something they are doing in their library makes the pdf carry some information that will then tell the image converter to maintain transparency, but I don’t know what that is, was hoping that was something basic to pdf. I will contact them (PDFTron) as well, and see if they can help.
 
Thanks again,
Ian
 


From: Leonard Rosenthol [lrosenth@...]
Sent: July 01, 2009 3:43 PM
To: Ian Rashkin; Post all your questions about iText here
Subject: Re: [iText-questions] Transparent background for whole pdf

Any area of a PDF that does not have content on it is “transparent” - there is no “background color”.

And since iText doesn’t actually render anything, I am not sure where the issue is.

Leonard


On 7/1/09 1:41 PM, "Ian Rashkin" <irashkin@...> wrote:
Maybe this is something obvious that I am overlooking, or maybe not possible – is there a way to set the pdf file’s background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency.
Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice?
 
Thanks,
Ian



--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Transparent background for whole pdf

by irashkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

In case anyone needs the same info: I found the answer from PDFTron, and had nothing to do with iText – just a setting in the pdf-to-image conversion command (“--transparent_page”, for those in similar need).

 

Thanks to all who helped.

 

-Ian


From: Ian Rashkin [mailto:irashkin@...]
Sent: July 01, 2009 1:41 PM
To: itext-questions@...
Subject: [iText-questions] Transparent background for whole pdf

 

Maybe this is something obvious that I am overlooking, or maybe not possible – is there a way to set the pdf file’s background to be transparent? IT is white be default, as far as I can tell. I use a component by PDFTron to render the pdf out to an image, and I want to be able to render to a PNG with transparency.

Apparently their PDFNet SDK has such an option, which makes me think it must be possible, but I am using iText (well, iTextSharp) and not sure how to do this. Any advice?

 

Thanks,

Ian

 

 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/