Custom PDF size - jxbrowser

I have a webpage that is 3000px wide and sometimes 3000px tall. When I save it as a PDF, it formats the pdf as 8.5 x 11 and all of my webpage is missing. Is there a way that I can make the pdf 3000px x 3000px and allow my clients to scale the pdf to what ever paper size they have?
Thanks in advance!

Right now JxBrowser allows saving web page as PDF document with A4 paper size only. Functionality that allows customizing paper size when saving web page as PDF will be added in one of the next versions.

Related

CFDocument cuts off images

In Railo, when I create PDF document from images, using cfdocument, it cuts off the images in the PDF document. It does not create a horizontal scroll or adjust images according to size. How can this issue be addressed ?

How do I use markdown to generate a PDF will full background-color/image bleed?

I have a simple markdown document that has either a background color or background image defined in the stylesheet I'm using to render it. When I export to PDF (using marked.app, mou.app, markdown pro, Multimarkdown Composer etC), I'd like that background to be full-bleed on the page with no margin or padding (i.e. no surrounding whitespace), much like something you'd create in illustrator.
Here is an example. (Reference the cover page). This will be used solely for on-screen consumption so I'm not worried about printing.
Can anyone suggest how to do this or a mac app that can do this?
Thanks!

Resizing images via css

If an image is 200px by 200px and you give that image a class in css with the same dimensions, will the browser still resize that image via css?
Ive been looking frequently into reducing page load time and one of the things that comes up is resizing via css slowing down page load time.
If you apply a class to your image with some fixed dimensions, then it will stuck to the defined dimensions.
Unless you define "max/min-width" and "max/min-height" instead of width and height.
The loading time is not about the dimension of the image but more about the size (octets) of the file (here an image). The performance are poorly influenced by the dimension of it.
No, because image will be same size (as downloaded from server). Also, since width/height of class is same as image, image will not be resized. And I don't think that resizing such images has any impact on page load times.
We can resize image propertionally from css but can't reduce load time from css
Full optimization of images can be quite an art to perfect as there are such a wide variety of images you might be dealing with. Here are the most common ways to optimize your images for the web.
Use proper file formats. If you have icons, bullets or any graphics that don't have too many colours use a format such as GIF and save the file with lower amounts of colours. If you have more detailed graphics then use JPG file format to save your images and reduce the quality.
Save your images in the proper dimensions. If you are having to use HTML or CSS to resize your images, stop right there. Save the image in the desired size to reduce the file size.
To resize your images you will have to use some form of program. For basic compression you can use a simple editing program such as GIMP. For more advanced optimization you will have to save specific files in Photoshop, Illustrator or Fireworks.
Source Link
Edit:
Check this link to get more idea about speeding up page loading time

Resizing an ASP.Net image to scale in Visual Studio

I am working on a Visual Studio master page, and trying to add the company logo.
I have imported the JPEG into my project, added an Image control and have set the ImageUrl property to my JPEG.
The problem is my image is massive! I am trying to resize it to scale, by holding down shift (which works in other MS products) but it's not working properly, and when trying to resize manually, I just can't get it to look right.
So my question is, how do I resize an image to scale in ASP.Net using Visual Studio 2010?
Visual studio is not for image scaling. You can scale the image on design view. After spefying image url for image you can re-size it as you do in powerpoint. But this is not a good practice as this will add height and width tag with specific value in your html for image.
So re-size the image using any tool as per your need and use it as this will make the page lighter.
If I'm understanding correctly, you want to change the dimensions of an image in Visual Studio.
Changing the dimensions of the image will just make the image appear smaller; it won't actually resample it and reduce its size in bytes. For both these reasons, take the extra minute or two to use another program to properly resize the image.
Resampling: smooths the image according to an algorithm and properly handles things like edges
Reducing size in bytes: this one is obvious. Your post is tagged with ASP.Net; you don't want a "massize" image being sent over the network.

Preview a PDF inside your AIR application inside transparent and custom window

I have a transparent windows (skinnable).
Inside, I'd like to preview some pdf file.
BUT, in the only a black screen appear, can you help me?
Thanks
The only solution I found is to have a window with no tranparence option
Thanks
Please provide more details. If you embed the respective component inside a standard window, does it show the PDF as expected?
Additionally, these links might be of interest:
http://cookbooks.adobe.com/post_How_do_I_display_a_PDF_file_in_an_AIR_desktop_appl-19323.html
http://cookbooks.adobe.com/post_Preview_a_PDF_inside_your_AIR_application-10183.html
Are you using an HTML component? If so, it's impossible to show PDF if your window is transparent. Here's the note from the Adobe documentation. I highlighted the interesting part. (source : http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.html)
Note: When displayed in a transparent window, SWF content embedded in
an HTML page must be embedded using either the transparent or opaque
wmode. The default value for wmode is window, so if you do not specify
a value, SWF content may not be displayed. On Windows and Linux, SWF
content always appears on top of other content when wmode is set to
window or opaque. PDF content cannot be displayed in a transparent
window no matter which wmode setting is used.
You could show the PDF inside another window perhaps ? If you can't maybe you can find a way to open an invisible window, load the PDF there, draw it into a BitmapData oject then display the snapshot instead. Off course, this means no user interaction with the PDF whatsoever.

Resources