I'm signing PDFs using iText.
And I include a graphic representation of the signature in the document.
This works, but the green checkmark (or yellow question mark) that shows when the document is verified interferes with the graphic I inserted, making the end result look ugly.
Is there a way to manage the size of the green checkbox?
Are there any properties, fonts, image scale, etc that dictate the size of this green check mark?
The checkmark is rendered by the PDF reader. Please see How to generate a signed PDF w/o green checkmark for more information.
Related
I am putting together a simple form for a friend and they want when a button is selected to change from amber, too green.
I have attached PDF to give an idea of what I am looking for. Much like a data validation on excel, but for the life of me I cannot figure out how to do it.
Default: Amber
when clicked: Green
It is certainly possible with PDFs to do that since the appearance of a form field is defined by arbitrary drawing instructions.
However, whether you can do that with a PDF editor wholely depends on the capabilities of the PDF editor.
We are now working on upload word document on Google Docs by .NET. We have an template which contains tables, we set border style of tables to none, then all the borders are invisible. But after we uploaded it on Google Docs, the borders appears in black. We tried upload the template to Google Docs manually, the borders appear too. So I think our code is correct, does the Google Docs API allow us to change the style of table border after convert .docx to Google Doc? Or any solution to keep the borders invisible?
I've tried to make the table border to white (the paper color), then the borders is hidden while I upload it to Google Docs without conversion. But while I try to edit it, the table border appears again. I guess that's because Google viewer convert the .docx to GDoc while I try to edit the .docx document.
I've tried to set table border to none in Word, but the borders still appears after conversion. Is this a bug of Google document conversion? It should set the border to zero while the table border was set to none in Word, but it doesn't do that. Is there anybody can help me on this issue? Many thanks.
To answer your first question, there is no way of modifying the document content after uploading. You may, however find better fidelity by converting to HTML or PDF and uploading those formats.
Otherwise, you should raise a bug report on the issue tracker, so that the conversion can be improved.
This is not an answer to your problem, but it's a work around that I'm using currently, by setting the border colour to white it no longer displays the black borders.
How can I enter RGB or Hex color values for backgrounds in Interface Builder? I can select predefined colors but I would like to manually enter in RGB values. Where can I do this?
Click on the color slider icon, and then choose "RGB Sliders" from the drop-down list.
You can also use the magnifying-glass as a color picker to pick up an exact color from anywhere on the screen; also see #ken's excellent comment below clarifying how colorspaces work with the magnifying glass.
Although Tyler's response answers the question, you may encounter issues using the picker because it uses the display's colorspace (as clarified by Ken).
If you want to match RGB values between Photoshop and Xcode exactly (without conversion between colorspaces) then you need to save your images in generic RGB and enter any dropper values using the generic RGB colorspace.
When you choose "Save for Web & Devices" from Photoshop, uncheck the "Convert to sRGB" box.
In Xcode, click the colorspace popup in the color picker and choose "Generic RGB", then enter the red, green and blue values from Photoshop, NOT THE HEX VALUE as this reverts back to the sRGB colorspace for some reason (be careful not to tab to the hex field either, as that also changes the colorspace to sRGB).
More info here, including how to match screenshots.
It sounds like you're unfamiliar with the Mac OS X color panel. Click the tabs along the top of the color panel window to choose other pickers. Pickers are also plugins, so it's possible to add new UI for color selection. See, for example, developer color picker.
I know this is an old question, but I needed to find out the answer to this very same question today and it got me on the right track. The color picker from panic.com did install correctly but the hexadecimal option from the drop down menu in the color picker always sets it to RGB. So no good. Instead I found this:
http://wafflesoftware.net/hexpicker/
That shows the hexadecimal value and it works fully on Xcode 5.0.1 and Mavericks.
Check the above snap, in that go to Colors Tray, select the second button(RGB sliders(rectangle image) - which is placed next to circle on the top of the tray). In that you can enter RGB values.
I want to write an application to validate a PDF file. The validation that is required is to verify that all the text and images in the PDF should start after 0.5" margin from left and 0.5" margin from the right. If any of the text is going outside this margin then application should be able to catch this.
I tried to search this into iText but couldn't get anything usefull that can solve my purpose.
Can somebody help me out in writing this code in .net csharp.
Thanks,
Praveen
In addition to R Ubben's answer : reader.getPageSize(pageNumber) is exactly the same as reader.getBoxSize(pageNumber,"media").
That's how it's implemented in iTextSharp. You can see it in source code.
Extract:
public Rectangle GetPageSize(PdfDictionary page) {
PdfArray mediaBox = page.GetAsArray(PdfName.MEDIABOX);
return GetNormalizedRectangle(mediaBox);
}
use SetMarginMirroring(true)
The PDF standard doesn't really have the concept of margins, since a PDF is supposed to be device independent. What it can have is five boxes designed to constrain output: media box, crop box, bleed box, art box, and trim box. Usually the other four boxes are the same size or smaller than the media box.
If a mediabox is present in your pdfs, you could retrieve it and check to see that it is 0.5" smaller on each side than the page. Try comparing the results of reader.getPageSize(pageNumber) and reader.getBoxSize(pageNumber,"media"). Very likely they will be the same.
What you can do is rewrite the pdfs to make sure there are 1/2 inch margins. The easiest way to this is shrink the page.
Is it really true that Crystal Reports does not support images that have transparency?
We are using it at work and the guy that does Crystal Reports told me it doesn't support transparency. I couldn't believe it so I've spent the last 20 minutes googling and think he might be right. This seems absolutely incredible in this day and age.
Can anyone please confirm whether or not CR supports transparency, and if so how you do it (we are not limited by the type of image to insert - png, gif etc).
For the record we are using CR version that comes with VS 2008 (version 10.5).
CR doesn't support transparency but you can use a wmf image to solve your problem.
I'm using CR 12 (2008), i need to put an image as signature (as a watermark) on another image.
Example:
Background_image.jpg
Signature_image.jpg
Convert Signature_image.jpg into a wmf file using "Inkscape" (freeware).
In the report, we have "Background_image.jpg" and over it the "Signature_image.wmf" image,
it works great!
Just reached over here while searching for same problem. Unfortunately this is true till this date :(
Answering this question for users who may visit again here.
Transparent background of image is not retained when adding it to Crystal Reports
I achived solution following way.
Painted transperent area with printing page color i.e. white in my case.
I would like to put image in page header and some text over it.
In CR design mode.
right click in page header section -> select section expert
select page header -> click insert
In page header a check "Underlay following sections" -> click ok.
back in design, in section "page header a" include image.
In section "page header b" include text which I would like to show over image (i.e. I am expecting to be transparent).
Hope this helps for future visitors.
There is another work around I tried and was successful. If you want the image as a watermark in your report, use your report as a sub report in the detail section of the main report and keep the image in a main report page header and use the option 'Underlay Following Sections' in the Section Expert. All the lines and texts will appear properly on top of the image.
As AR_Italy said, confirmed that wmf files are the way to go, even though SAP site says transparent images are not supported, so thank you to AR_Italy.
The only thing I would add is that these can be Exported from Adobe Illustrator as well (make sure your image has a transparent background first).
If your Image has a white background AND your lazy just check this out:
Rightclick on your report, select Report and Report options and Check "Retain Original Image Color Depth