Set background of the PDF - pdf-generation

I generated an PDF from PHP TCPDF. Is it possible to set the background color outside of the generated PDF?
By default its gray. I would like it to be black.

I see you're using the PDF Viewer on Chrome right?
After searches, I think it's not possible to change the background of the pdf viewer (maybe with chrome extensions?) because the background is not part of the PDF himself.
The only solution that I find which can maybe change the background was to change the PDF Viewer (there is an example with Google Reader to Acrobat : Change PDF Viewer on Chrome.)

Related

Unable to bring transparent background in image using adobe photoshop cs5,

I am creating .gif progress bar using Adobe Photoshop CS5. My client asked to keep progress bar like below.
I tried in Adobe and got below .gif image. But problem is I am unable to bring transparent background. I reduced opacity % in Photoshop it displaying correctly in Photoshop.
But when I saved as .gif then image background loss is transparent and I getting image like below.
I tried lot but unable to meet my client expectation.
Did you use the option "Save for web & devices"? If so, you should be presented with alot of options (amongst those, transparency).
tutorial: http://www.webdesign.org/photoshop/photoshop-basics/transparent-gifs-in-photoshop.8923.html
Use Save for web option
Alt+Shift+Ctrl+S
and select GIF, then enable transparency checkbox.
If the above method doesnt work, use this website
loading.io

How to create custom vector icons to use in Xcode application

I'm currently trying to figure out how I can make those glyph/vector icons appear like the default ones that you get with Xcode (e.g. NSActionTemplate). I researched and saw that they were saved in Illustrator to PDFs.
When I did the same trick (I managed to find the original Illustrator files for the icons by Apple) and saved it as an PDF, imported it into my project and dragged the icon onto a textured button it appeared plain black. It did however clear the white background so I thought it might be the white background that was visible in the preview that caused it to not style the button like the originals.
So basically what I'm asking is how I manage to make a icon appear like the default. I don't really wan't to make multiple files and/or code the behavior, since it should be quite easy to just drag and drop the image onto a button and apply the style itself.
-- EDIT --
OK, so I found the solution — By appending the text "Template" to the filename it will do this. But I still can't figure out why my transparent PDF - exported from Illustrator as AI and EPS - it still have a white background, which Xcode uses - so it will be a rectangular with the effect I want, instead of the circle.
Anyone that have an idea on how to remove the white background from the PDF so it will work in Xcode. It bugs me that it shows it is transparent (when seeing transparent grid in the PDF and Illustrator) and it still have a white background.
The white background in the PDF (and you should always use PDF over EPS—they "play nice" with OS X) has to do with the PDF format originally being oriented toward printed content. The white background you see in Preview and Xcode is the "page" area. Fortunately, this usually goes away / gets ignored when you load the PDF into an NSImage, as happens when you put it on a button.
If I'm understanding correctly, the problem you're having is you place a PDF with no background on a button, and in Xcode's Interface Builder it displays as if there were a background? I was able to reproduce this behavior, and I'm not sure what caused it. But I built and ran a test app with the very same Template file and errantly-displayed NIB. And in the actual, running Cocoa app, the graphic displayed correctly.
Sometimes Interface Builder just previews wrongly. I suspect the problem is merely cosmetic in preparing the interface.

Create transparent background image by slicing in Adobe Illustrator

I have been trying to slice a tansparent background image from a .AI (Adobe illustrator) file. But haven't got any solution yet.
Can somebody please guide me on this? Or providing a tutorial link will be helpful.
Just wanted to tell you tha my concern is Adobe Illustrator (.AI) file. I know how to do the same in Adobe Photoshop. I also know that how to slice images in Adobe Illustrator, The only thing I am looking for is how to slice them with transparent background.
After slicing, go to File >> Save For Web & Devices.
Select PNG-24 in the Preset drop-down.
Check the Transparent check-box ON.
Save
It should give your sliced images as transparent .PNG files.

RDLC Embedded Image Distorted In PDF

I have a very simple RDLC report I've built with a PNG image in the header. After many trials we could not get external images to work with the report in staging and production.
I then embedded the image in the RDLC and deployed the updated file. The image displays in the ReportViewer control fine. However, when using the export functionality of the viewer to get a PDF the image comes out garbled and distorted. It basically looks as if the image was like the Star Wars intro text but repeated vertically till it disappears. This happens both on my test machine and in stage/production.
Is there something I'm not doing correctly with embedding the image? I've thought about seeing if I could MIME encode the image another way and then insert that into the RDLC. Seems stretched to work though.
Figured this out.
It does have to do with the encoding, in a way. It appears that the PNG encoding is doing weird things. I tried JPEG and GIF encodings and both work in the ReportViewer and PDF export. I tried changing to different PNGs (transparency and non-transparent) and had various distortion issues.
It is my suggestion that if using an embedded image with the ReportViewer that will be exported to PDF that you should use GIFs or JPEGs for embedding in your RDLC.
I just encountered this issue. For me, the PDF you can generate from the SSRS preview showed the PNG just fine. But when i published the report to SharePoint and then managed email subscriptions to send a PDF, that PDF showed the image all screwy (basically tilted image and then repeated vertically). In my case, I was using a PNG file that had a resolution of greater than 4000 x 4000. I resized it to something more like 1200 x 1200 and the PDF from the subscription showed the PNG just fine.

Why doesn't my image color match background color in FireFox?

I think I could be doing something wrong in photoshop. I'm trying to create a banner for my website.
I created a new image in photoshop, then filled the background with a color I picked #E06205
I then saved the image as a jpeg.
On my webpage, I created a div and gave it a background color
background-color:#E05206;
When I open the page in Safari and Chrome it's beautiful. Matches perfectly.
However, when I open the page in FireFox, the colors don't match. I can't figure out why that is.
By the way, this is definitely a problem with the image I created. When I compare the same image side by side, Firefox gives me the 'wrong' color
Your issue is in the color profile you are using for the image. Make sure when you save the image you use Save for Web & Devices…
To read more if you want you could travel to this website:
http://css-tricks.com/color-rendering-difference-firefox-vs-safari/
You should save your images with "Save for Web & Devices" option of "File" menu in Photoshop. You can get many options and image types in this option as per your requirement.

Resources